This commit is contained in:
2024-03-12 16:18:36 +00:00
parent dd9b236547
commit e7b751c3f1
2 changed files with 41 additions and 0 deletions
+37
View File
@@ -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>;
}
}
+4
View File
@@ -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 + 월