fix: 누락된 메시지 def 수정
This commit is contained in:
@@ -31,6 +31,7 @@ export type MsgItem = {
|
|||||||
overwrite?: number[];
|
overwrite?: number[];
|
||||||
hide?: boolean;
|
hide?: boolean;
|
||||||
silence?: boolean;
|
silence?: boolean;
|
||||||
|
delete?: number;
|
||||||
};
|
};
|
||||||
time: string;
|
time: string;
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-20
@@ -16,6 +16,7 @@ import { unwrap_any } from '@util/unwrap_any';
|
|||||||
import { setAxiosXMLHttpRequest } from '@util/setAxiosXMLHttpRequest';
|
import { setAxiosXMLHttpRequest } from '@util/setAxiosXMLHttpRequest';
|
||||||
import { exportWindow } from '@util/exportWindow';
|
import { exportWindow } from '@util/exportWindow';
|
||||||
import { SammoAPI } from './SammoAPI';
|
import { SammoAPI } from './SammoAPI';
|
||||||
|
import type { MsgItem, MsgResponse } from './defs/API/Message';
|
||||||
|
|
||||||
const messageTemplate = `<div
|
const messageTemplate = `<div
|
||||||
class="msg_plate msg_plate_<%msgType%> msg_plate_<%nationType%>"
|
class="msg_plate msg_plate_<%msgType%> msg_plate_<%nationType%>"
|
||||||
@@ -94,16 +95,6 @@ type MsgTarget = {
|
|||||||
icon: string;
|
icon: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
type MsgItem = {
|
|
||||||
id: number,
|
|
||||||
msgType: MsgType;
|
|
||||||
src: MsgTarget;
|
|
||||||
dest?: MsgTarget;
|
|
||||||
text: string,
|
|
||||||
option: Record<string, string | number>;
|
|
||||||
time: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
type MsgPrintItem = MsgItem & {
|
type MsgPrintItem = MsgItem & {
|
||||||
generalName: string;
|
generalName: string;
|
||||||
nationID: number;
|
nationID: number;
|
||||||
@@ -119,16 +110,6 @@ type MsgPrintItem = MsgItem & {
|
|||||||
defaultIcon: string,
|
defaultIcon: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
type MsgResponse = {
|
|
||||||
[v in MsgType]: MsgItem[];
|
|
||||||
} & {
|
|
||||||
result: true;
|
|
||||||
keepRecent: boolean;
|
|
||||||
nationID: number;
|
|
||||||
generalName: string;
|
|
||||||
sequence: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
type BasicGeneralTarget = {
|
type BasicGeneralTarget = {
|
||||||
id: number,
|
id: number,
|
||||||
textName: string,
|
textName: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user