public DungeonInfo(LuaTable dungeonInfoLuaTable) { this.id = dungeonInfoLuaTable["id"].ToString().ToInt32(); this.dungeonData = DungeonData.GetDungeonDataByID(this.id); this.isLock = dungeonInfoLuaTable["isLock"].ToString().ToBoolean(); this.star = dungeonInfoLuaTable["star"].ToString().ToInt32(); this.todayChallengedTimes = dungeonInfoLuaTable["todayChallengedTimes"].ToString().ToInt32(); this.dayRefreshTimes = dungeonInfoLuaTable["dayRefreshTimes"].ToString().ToInt32(); }
public DungeonInfo(int dungeonDataID, int star) { this.id = dungeonDataID; this.dungeonData = DungeonData.GetDungeonDataByID(dungeonDataID); this.star = star; }