From 8b98fd0dc512aa9de59e28672d4f19d71a5177cf Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 28 Nov 2022 13:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=B3=BB=E7=BB=9F=E5=85=AC?= =?UTF-8?q?=E5=91=8A=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/json/game_chatsystem.json | 292 ++++++++++++++++++- sys/configure/structs/game.chatSystemData.go | 2 + 2 files changed, 278 insertions(+), 16 deletions(-) diff --git a/bin/json/game_chatsystem.json b/bin/json/game_chatsystem.json index bb4bc43e8..bc5f644c1 100644 --- a/bin/json/game_chatsystem.json +++ b/bin/json/game_chatsystem.json @@ -1,13 +1,14 @@ [ { - "key": 10001, + "key": 1, "display": false, "type": 1, "text": { - "key": "chat_text_10001", + "key": "chat_text_1", "text": "【system】 Good afternoon !" }, "data": 0, + "data2": 0, "week": [ 1, 2, @@ -21,14 +22,15 @@ "time_m": 57 }, { - "key": 10002, + "key": 2, "display": false, "type": 1, "text": { - "key": "chat_text_10002", + "key": "chat_text_2", "text": "【system】 Good afternoon !" }, "data": 0, + "data2": 0, "week": [ 1, 2, @@ -40,14 +42,15 @@ "time_m": 58 }, { - "key": 10003, + "key": 3, "display": false, "type": 1, "text": { - "key": "chat_text_10003", + "key": "chat_text_3", "text": "【system】 Good afternoon !" }, "data": 0, + "data2": 0, "week": [ 1, 2, @@ -59,66 +62,323 @@ "time_m": 59 }, { - "key": 20001, + "key": 4, "display": false, "type": 2, "text": { - "key": "chat_text_20001", + "key": "chat_text_4", "text": "【system】 Welcome Dream Works !" }, "data": 0, + "data2": 0, "week": [], "time_h": 0, "time_m": 0 }, { - "key": 30002, + "key": 5, "display": true, "type": 3, "text": { - "key": "chat_text_30002", + "key": "chat_text_5", "text": "【hearsay】%v through unremitting efforts, the %vhas been strengthened to level 13!" }, "data": 13, + "data2": 0, "week": [], "time_h": 0, "time_m": 0 }, { - "key": 30003, + "key": 6, "display": true, "type": 3, "text": { - "key": "chat_text_30003", + "key": "chat_text_6", "text": "【hearsay】%v through unremitting efforts, the %vhas been strengthened to level 14!" }, "data": 14, + "data2": 0, "week": [], "time_h": 0, "time_m": 0 }, { - "key": 30004, + "key": 7, "display": true, "type": 3, "text": { - "key": "chat_text_30004", + "key": "chat_text_7", "text": "【hearsay】%v through unremitting efforts, the %vhas been strengthened to level 15!" }, "data": 15, + "data2": 0, "week": [], "time_h": 0, "time_m": 0 }, { - "key": 40001, + "key": 8, "display": false, "type": 4, "text": { - "key": "chat_text_40001", + "key": "chat_text_8", "text": "【hearsay】%v breakthrough 100 floors of the tower!" }, "data": 100, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 9, + "display": true, + "type": 5, + "text": { + "key": "chat_text_9", + "text": "服务器即将维护,请及时下线避免数据丢失!" + }, + "data": 5, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 10, + "display": true, + "type": 6, + "text": { + "key": "chat_text_10", + "text": "【传闻】%v通关了赛季塔50层!" + }, + "data": 50, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 11, + "display": true, + "type": 7, + "text": { + "key": "chat_text_11", + "text": "【传闻】%v已经%v培养至60级!" + }, + "data": 60, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 12, + "display": true, + "type": 8, + "text": { + "key": "chat_text_12", + "text": "【传闻】%v已经%v培养至6星!" + }, + "data": 5, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 13, + "display": true, + "type": 9, + "text": { + "key": "chat_text_13", + "text": "【传闻】%v已经%v技能培养至满级!" + }, + "data": 5, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 14, + "display": true, + "type": 10, + "text": { + "key": "chat_text_14", + "text": "【传闻】%v已经%v共鸣至满级!" + }, + "data": 5, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 15, + "display": true, + "type": 11, + "text": { + "key": "chat_text_15", + "text": "【传闻】%v已经%v觉醒至满级!" + }, + "data": 5, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 16, + "display": true, + "type": 12, + "text": { + "key": "chat_text_16", + "text": "【传闻】%v已经达到了60级!" + }, + "data": 60, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 17, + "display": true, + "type": 13, + "text": { + "key": "chat_text_17", + "text": "【传闻】%v在招募中获得了v%!" + }, + "data": 5, + "data2": 0, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 18, + "display": true, + "type": 14, + "text": { + "key": "chat_text_18", + "text": "【传闻】%v通关了维京远征火焰泰坦难度10!" + }, + "data": 10, + "data2": 1, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 19, + "display": true, + "type": 14, + "text": { + "key": "chat_text_19", + "text": "【传闻】%v通关了维京远征冰霜泰坦难度10!" + }, + "data": 10, + "data2": 2, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 20, + "display": true, + "type": 14, + "text": { + "key": "chat_text_20", + "text": "【传闻】%v通关了维京远征森林泰坦难度10!" + }, + "data": 10, + "data2": 3, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 21, + "display": true, + "type": 14, + "text": { + "key": "chat_text_21", + "text": "【传闻】%v通关了维京远征冰霜泰坦(武器)难度10!" + }, + "data": 10, + "data2": 11, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 22, + "display": true, + "type": 14, + "text": { + "key": "chat_text_22", + "text": "【传闻】%v通关了维京远征森林泰坦(饰品)难度10!" + }, + "data": 10, + "data2": 12, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 23, + "display": true, + "type": 15, + "text": { + "key": "chat_text_23", + "text": "【传闻】%v通关了狩猎巨型猩猩难度10!" + }, + "data": 10, + "data2": 1, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 24, + "display": true, + "type": 15, + "text": { + "key": "chat_text_24", + "text": "【传闻】%v通关了狩猎火龙难度10!" + }, + "data": 10, + "data2": 2, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 25, + "display": true, + "type": 15, + "text": { + "key": "chat_text_25", + "text": "【传闻】%v通关了狩猎大厨难度10!" + }, + "data": 10, + "data2": 3, + "week": [], + "time_h": 0, + "time_m": 0 + }, + { + "key": 26, + "display": true, + "type": 15, + "text": { + "key": "chat_text_26", + "text": "【传闻】%v通关了狩猎太空海星难度10!" + }, + "data": 10, + "data2": 4, "week": [], "time_h": 0, "time_m": 0 diff --git a/sys/configure/structs/game.chatSystemData.go b/sys/configure/structs/game.chatSystemData.go index 506822736..05d8d02fa 100644 --- a/sys/configure/structs/game.chatSystemData.go +++ b/sys/configure/structs/game.chatSystemData.go @@ -16,6 +16,7 @@ type GameChatSystemData struct { Type int32 Text string Data int32 + Data2 int32 Week []int32 TimeH int32 TimeM int32 @@ -33,6 +34,7 @@ func (_v *GameChatSystemData)Deserialize(_buf map[string]interface{}) (err error { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) } {var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["text"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Text error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Text, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["data"].(float64); !_ok_ { err = errors.New("data error"); return }; _v.Data = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["data2"].(float64); !_ok_ { err = errors.New("data2 error"); return }; _v.Data2 = int32(_tempNum_) } { var _arr_ []interface{} var _ok_ bool