diff --git a/bin/json/game_worldtask.json b/bin/json/game_worldtask.json index 48c666bc1..e241ac42a 100644 --- a/bin/json/game_worldtask.json +++ b/bin/json/game_worldtask.json @@ -32,6 +32,13 @@ "t": "25001", "n": 1 } + ], + "day": [ + "day|night" + ], + "weather": [ + 2, + 1 ] }, { @@ -62,7 +69,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10102, @@ -92,7 +101,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10103, @@ -122,7 +133,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10104, @@ -157,7 +170,9 @@ "t": "30001", "n": 10 } - ] + ], + "day": [], + "weather": [] }, { "key": 10105, @@ -187,7 +202,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10106, @@ -217,7 +234,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10107, @@ -247,7 +266,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10108, @@ -277,7 +298,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10109, @@ -307,7 +330,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10110, @@ -337,7 +362,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10111, @@ -367,7 +394,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10112, @@ -397,7 +426,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10113, @@ -427,7 +458,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10114, @@ -457,7 +490,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10115, @@ -487,7 +522,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10116, @@ -517,7 +554,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10117, @@ -547,7 +586,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10118, @@ -577,7 +618,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10119, @@ -607,7 +650,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10120, @@ -637,7 +682,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10121, @@ -667,7 +714,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10122, @@ -697,7 +746,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10123, @@ -727,7 +778,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10124, @@ -757,7 +810,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10125, @@ -787,7 +842,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10126, @@ -817,7 +874,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10127, @@ -847,7 +906,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10128, @@ -877,7 +938,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10129, @@ -907,7 +970,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10130, @@ -937,7 +1002,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10131, @@ -967,7 +1034,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10132, @@ -997,7 +1066,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10133, @@ -1027,7 +1098,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10134, @@ -1057,7 +1130,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10135, @@ -1087,7 +1162,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10136, @@ -1117,7 +1194,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10137, @@ -1147,7 +1226,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10138, @@ -1177,7 +1258,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10139, @@ -1207,7 +1290,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10140, @@ -1237,7 +1322,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10141, @@ -1267,7 +1354,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10142, @@ -1297,7 +1386,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10143, @@ -1327,7 +1418,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10144, @@ -1357,7 +1450,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10145, @@ -1387,7 +1482,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10146, @@ -1417,7 +1514,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10147, @@ -1447,7 +1546,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10148, @@ -1477,7 +1578,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10149, @@ -1506,7 +1609,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10150, @@ -1535,7 +1640,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10151, @@ -1564,7 +1671,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10152, @@ -1593,7 +1702,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10153, @@ -1622,7 +1733,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10154, @@ -1651,7 +1764,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10155, @@ -1680,7 +1795,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10156, @@ -1709,7 +1826,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10157, @@ -1738,7 +1857,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10158, @@ -1767,7 +1888,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10159, @@ -1796,7 +1919,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10160, @@ -1825,7 +1950,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10161, @@ -1854,7 +1981,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10162, @@ -1883,7 +2012,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10163, @@ -1912,7 +2043,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10164, @@ -1941,7 +2074,9 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] }, { "key": 10165, @@ -1970,6 +2105,8 @@ "t": "diamond", "n": 100 } - ] + ], + "day": [], + "weather": [] } ] \ No newline at end of file diff --git a/sys/configure/structs/Game.WorldTaskData.go b/sys/configure/structs/Game.WorldTaskData.go index e92b469cb..de79b13f6 100644 --- a/sys/configure/structs/Game.WorldTaskData.go +++ b/sys/configure/structs/Game.WorldTaskData.go @@ -26,6 +26,8 @@ type GameWorldTaskData struct { AutoAccept int32 Overtips int32 Reword []*Gameatn + Day []string + Weather []int32 } const TypeId_GameWorldTaskData = -1059668091 @@ -89,6 +91,34 @@ func (_v *GameWorldTaskData)Deserialize(_buf map[string]interface{}) (err error) } } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["day"].([]interface{}); !_ok_ { err = errors.New("day error"); return } + + _v.Day = make([]string, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ string + { if _list_v_, _ok_ = _e_.(string); !_ok_ { err = errors.New("_list_v_ error"); return } } + _v.Day = append(_v.Day, _list_v_) + } + } + + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["weather"].([]interface{}); !_ok_ { err = errors.New("weather error"); return } + + _v.Weather = make([]int32, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ int32 + { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } + _v.Weather = append(_v.Weather, _list_v_) + } + } + return }