1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2025-01-19 19:58:44 +01:00

add notices

This commit is contained in:
Rin 2022-07-17 15:01:48 +01:00
parent 8dcc10452e
commit cdf7f51ea1
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,7 @@ export interface ConfigFile {
serverIp?: string;
gameOptions: GameOptions;
unix?: UnixOptions;
notices?: string[];
}
export interface UnixOptions {

View File

@ -288,10 +288,12 @@ export default class GameModule extends Module {
category: x.category
}
});
let notice = (Config.getConfig().notices || []);
let noticeWindows = notice.map(a => wm.wm.protobuf.NoticeEntry.NOTICE_UNUSED_1);
let msg = {
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
noticeWindow: [],
noticeWindowMessage: [],
noticeWindow: noticeWindows,
noticeWindowMessage: notice,
transferNotice: {
needToSeeTransferred: false,
totalMaxiGold: 0,