Esempio n. 1
0
        public Arena(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
        {
            StartDelayTimes[BattlegroundConst.EventIdFirst]  = BattlegroundStartTimeIntervals.Delay1m;
            StartDelayTimes[BattlegroundConst.EventIdSecond] = BattlegroundStartTimeIntervals.Delay30s;
            StartDelayTimes[BattlegroundConst.EventIdThird]  = BattlegroundStartTimeIntervals.Delay15s;
            StartDelayTimes[BattlegroundConst.EventIdFourth] = BattlegroundStartTimeIntervals.None;

            StartMessageIds[BattlegroundConst.EventIdFirst]  = ArenaBroadcastTexts.OneMinute;
            StartMessageIds[BattlegroundConst.EventIdSecond] = ArenaBroadcastTexts.ThirtySeconds;
            StartMessageIds[BattlegroundConst.EventIdThird]  = ArenaBroadcastTexts.FifteenSeconds;
            StartMessageIds[BattlegroundConst.EventIdFourth] = ArenaBroadcastTexts.HasBegun;
        }
Esempio n. 2
0
        public static void HandleBattlefieldList(IRealmClient client, RealmPacketIn packet)
        {
            BattlegroundId bgid = (BattlegroundId)packet.ReadUInt32();

            packet.ReadBoolean();
            int num = packet.ReadByte();
            BattlegroundTemplate template        = BattlegroundMgr.GetTemplate(bgid);
            Character            activeCharacter = client.ActiveCharacter;

            if (template == null)
            {
                return;
            }
            GlobalBattlegroundQueue queue = template.GetQueue(activeCharacter.Level);

            if (queue == null)
            {
                return;
            }
            SendBattlefieldList(activeCharacter, queue);
        }
Esempio n. 3
0
 public DalaranSewersArena(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
 {
     _events = new EventMap();
 }
Esempio n. 4
0
 public RuinsofLordaeronArena(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
 {
 }
Esempio n. 5
0
 public NagrandArena(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
 {
 }
Esempio n. 6
0
 public BladesEdgeArena(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
 {
 }
Esempio n. 7
0
 public RingofValorArena(BattlegroundTemplate battlegroundTemplate) : base(battlegroundTemplate)
 {
     _events = new EventMap();
 }