You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
804 B
31 lines
804 B
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<string, WorldGlobalDataOne> allData = new Dictionary<string, WorldGlobalDataOne>();
|
|
}
|
|
}
|
|
|