private static void ReloadTable(IEvent ievent) { var v = ievent as ReloadTableEvent; if (v == null) { return; } if (v.tableName == "ServerName") { eActivityState state = eActivityState.WaitNext; foreach (var val in WorldBossManager.Boss) { state = val.Value.State; break; } Table.ForeachServerName(record => { var id = record.LogicID; if (!WorldBossManager.Boss.ContainsKey(id)) { WorldBossManager.Boss.Add(id, new WorldBoss(id, state)); } return(true); }); } }
public WorldBoss(int serverId, eActivityState state) { mImpl.Construct(this, serverId, state); }
public void Construct(WorldBoss _this, int serverId, eActivityState state) { _this.ServerId = serverId; _this.State = state; GetDbBossLevel(_this); }