mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2025-01-19 22:42:44 +01:00
add notices
This commit is contained in:
parent
8dcc10452e
commit
cdf7f51ea1
@ -7,6 +7,7 @@ export interface ConfigFile {
|
|||||||
serverIp?: string;
|
serverIp?: string;
|
||||||
gameOptions: GameOptions;
|
gameOptions: GameOptions;
|
||||||
unix?: UnixOptions;
|
unix?: UnixOptions;
|
||||||
|
notices?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UnixOptions {
|
export interface UnixOptions {
|
||||||
|
@ -288,10 +288,12 @@ export default class GameModule extends Module {
|
|||||||
category: x.category
|
category: x.category
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
let notice = (Config.getConfig().notices || []);
|
||||||
|
let noticeWindows = notice.map(a => wm.wm.protobuf.NoticeEntry.NOTICE_UNUSED_1);
|
||||||
let msg = {
|
let msg = {
|
||||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||||
noticeWindow: [],
|
noticeWindow: noticeWindows,
|
||||||
noticeWindowMessage: [],
|
noticeWindowMessage: notice,
|
||||||
transferNotice: {
|
transferNotice: {
|
||||||
needToSeeTransferred: false,
|
needToSeeTransferred: false,
|
||||||
totalMaxiGold: 0,
|
totalMaxiGold: 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user