Пример #1
0
        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);
                });
            }
        }
Пример #2
0
 public WorldBoss(int serverId, eActivityState state)
 {
     mImpl.Construct(this, serverId, state);
 }
Пример #3
0
 public void Construct(WorldBoss _this, int serverId, eActivityState state)
 {
     _this.ServerId = serverId;
     _this.State    = state;
     GetDbBossLevel(_this);
 }