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.
69 lines
1.4 KiB
69 lines
1.4 KiB
using Sog;
|
|
using ProtoCSStruct;
|
|
|
|
namespace Game
|
|
{
|
|
/// <summary>
|
|
/// cache数据,
|
|
///
|
|
/// </summary>
|
|
public static class GameStructDef
|
|
{
|
|
//排行榜最大数量
|
|
public const int MaxGameListCount = 50;
|
|
}
|
|
public struct GameOneDataCacheStruct : IStructObject
|
|
{
|
|
public int m_objectID;
|
|
public int GetObjectID()
|
|
{
|
|
return m_objectID;
|
|
}
|
|
public void SetObjectID(int id)
|
|
{
|
|
m_objectID = id;
|
|
}
|
|
public bool IsNull()
|
|
{
|
|
return m_objectID == -1;
|
|
}
|
|
public bool NeedSave;
|
|
public void setNeedSave(bool b)
|
|
{
|
|
NeedSave = b;
|
|
}
|
|
public bool getNeedSave()
|
|
{
|
|
return NeedSave;
|
|
}
|
|
public long Uid; //RoleID
|
|
public long RankID; //排行榜排名
|
|
}
|
|
|
|
public struct BattleReplayRecordingOneCacheStruct : IStructObject
|
|
{
|
|
public int m_objectID;
|
|
public int GetObjectID()
|
|
{
|
|
return m_objectID;
|
|
}
|
|
public void SetObjectID(int id)
|
|
{
|
|
m_objectID = id;
|
|
}
|
|
public bool IsNull()
|
|
{
|
|
return m_objectID == -1;
|
|
}
|
|
public bool NeedSave;
|
|
public void setNeedSave(bool b)
|
|
{
|
|
NeedSave = b;
|
|
}
|
|
public bool getNeedSave()
|
|
{
|
|
return NeedSave;
|
|
}
|
|
|
|
}
|
|
}
|
|
|