天气、随机气象功能初步完成

This commit is contained in:
unkown committed 2023-09-29 06:14:41 +08:00
1 parent 0cab0d95c2
commit ed3ec3710f
11 files changed
+398 -132

No files matched your search

+7 -1
View File
@@ -106,7 +106,13 @@ func (c *CmdProtoMap) registerMessage() {
c.regMsg(PlayerGameTimeNotify, func() any { return new(proto.PlayerGameTimeNotify) }) // 玩家游戏内时间通知
c.regMsg(SceneEntityAppearNotify, func() any { return new(proto.SceneEntityAppearNotify) }) // 场景实体出现通知
c.regMsg(SceneEntityDisappearNotify, func() any { return new(proto.SceneEntityDisappearNotify) }) // 场景实体消失通知
c.regMsg(SceneAreaWeatherNotify, func() any { return new(proto.SceneAreaWeatherNotify) }) // 场景区域天气通知
c.regMsg(SceneAreaWeatherNotify, func() any { return new(proto.SceneAreaWeatherNotify) }) // 场景地区天气通知
c.regMsg(EnterSceneWeatherAreaNotify, func() any { return new(proto.EnterSceneWeatherAreaNotify) }) // 进入场景天气地区通知
c.regMsg(ExitSceneWeatherAreaNotify, func() any { return new(proto.ExitSceneWeatherAreaNotify) }) // 离开场景天气地区通知
c.regMsg(SetSceneWeatherAreaReq, func() any { return new(proto.SetSceneWeatherAreaReq) }) // 设置场景天气地区请求
c.regMsg(SetSceneWeatherAreaRsp, func() any { return new(proto.SetSceneWeatherAreaRsp) }) // 设置场景天气地区响应
c.regMsg(SceneWeatherForecastReq, func() any { return new(proto.SceneWeatherForecastReq) }) // 场景天气预测请求
c.regMsg(SceneWeatherForecastRsp, func() any { return new(proto.SceneWeatherForecastRsp) }) // 场景天气预测响应
c.regMsg(WorldPlayerLocationNotify, func() any { return new(proto.WorldPlayerLocationNotify) }) // 世界玩家位置通知
c.regMsg(ScenePlayerLocationNotify, func() any { return new(proto.ScenePlayerLocationNotify) }) // 场景玩家位置通知
c.regMsg(SceneForceUnlockNotify, func() any { return new(proto.SceneForceUnlockNotify) }) // 场景强制解锁通知
+2 -2
View File
@@ -1582,7 +1582,7 @@ message UnlockTransPointRsp {
int32 retcode = 12;
}
message SceneWeatherForcastReq {
message SceneWeatherForecastReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
@@ -1595,7 +1595,7 @@ message SceneWeatherForcastReq {
uint32 weather_area_id = 15;
}
message SceneWeatherForcastRsp {
message SceneWeatherForecastRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;