IMessage
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
import type { GeneralID, GeneralName, MessageType, NationID, NationName } from "@/defs.js";
|
||||||
|
|
||||||
|
export interface MessageTarget {
|
||||||
|
mailbox: number;
|
||||||
|
generalID: GeneralID;
|
||||||
|
generalName: GeneralName;
|
||||||
|
nationID: NationID;
|
||||||
|
nationName: NationName;
|
||||||
|
icon: string;
|
||||||
|
color: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IMessage{
|
||||||
|
_id: string;
|
||||||
|
|
||||||
|
mailbox: number;
|
||||||
|
|
||||||
|
state: 'unread' | 'read' | 'deleted';
|
||||||
|
|
||||||
|
type: MessageType;
|
||||||
|
|
||||||
|
src: MessageTarget;
|
||||||
|
dest: MessageTarget;
|
||||||
|
|
||||||
|
createdAt: Date;
|
||||||
|
|
||||||
|
text: string;
|
||||||
|
|
||||||
|
action?: {
|
||||||
|
validUntil?: Date;
|
||||||
|
used: boolean;
|
||||||
|
action: string;
|
||||||
|
arg: Record<string, unknown>;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -247,6 +247,10 @@ export interface ReservedTurn {
|
|||||||
brief: string;
|
brief: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type LogType = 'action' | 'battleBrief' | 'battle' | 'history';
|
||||||
|
export type MessageType = 'private' | 'national' | 'public' | 'diplomacy' | 'system';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//특수 숫자 정의
|
//특수 숫자 정의
|
||||||
//연 * 12 + 월
|
//연 * 12 + 월
|
||||||
|
|||||||
Reference in New Issue
Block a user