using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using ProtoCSStruct; using Sog; namespace World { public class WorldGlobalDataOne { public WorldGlobalDataType dataType; public int globalId; public int dataVer; public IStructMessage protoData; //附加数据 public bool needSaveDB; public bool needBroadcast;//要广播给所有玩家 } public class WorldGlobalData : IServerDataObj { public override int GetDataType() { return WorldDataObjType.WorldGlobalData; } //记录数据类型 dataType|globalId|dataVer public Dictionary allData = new Dictionary(); } }