using System.Collections.Generic; using Sog; namespace Battle { public class MainlandBattleInfo { public int mainlandScene; public long lastReqTime; // 同一个mainland id生成的battleInfo public List battleList = new List(); } public class BattleInfoCache { public long uid; public int mainlandId; // 一个mainland记录一个battleInfo的list, 最多同时不超过n个mainland, 超过移除最早的一组 // mainland -> List public List mainlandBattle = new List(); } public class BattleTable : IServerDataObj { // uid -> battleInfoCache public Dictionary m_battleTable; // uid -> BattleInfoAll 只记录自动挑战 public Dictionary m_autoChallenge_battleTable; public BattleTable() { m_battleTable = new Dictionary(); m_autoChallenge_battleTable = new Dictionary(); } public override int GetDataType() { return BattleDataObjType.BattleTable; } } }