Added AlteracValley Battleground
Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
@@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
using Framework.Constants;
|
using Framework.Constants;
|
||||||
using Framework.Database;
|
using Framework.Database;
|
||||||
using Game.Arenas;
|
using Game.BattleGrounds.Zones;
|
||||||
|
using Game.BattleGrounds.Zones.AlteracValley;
|
||||||
|
using Game.BattleGrounds.Zones.EyeofStorm;
|
||||||
using Game.DataStorage;
|
using Game.DataStorage;
|
||||||
using Game.Entities;
|
using Game.Entities;
|
||||||
using Game.Networking.Packets;
|
using Game.Networking.Packets;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Game.BattleGrounds.Zones;
|
|
||||||
using Game.BattleGrounds.Zones.EyeofStorm;
|
|
||||||
|
|
||||||
namespace Game.BattleGrounds
|
namespace Game.BattleGrounds
|
||||||
{
|
{
|
||||||
@@ -25,7 +25,7 @@ namespace Game.BattleGrounds
|
|||||||
public void DeleteAllBattlegrounds()
|
public void DeleteAllBattlegrounds()
|
||||||
{
|
{
|
||||||
foreach (var data in bgDataStore.Values.ToList())
|
foreach (var data in bgDataStore.Values.ToList())
|
||||||
while(!data.m_Battlegrounds.Empty())
|
while (!data.m_Battlegrounds.Empty())
|
||||||
data.m_Battlegrounds.First().Value.Dispose();
|
data.m_Battlegrounds.First().Value.Dispose();
|
||||||
|
|
||||||
bgDataStore.Clear();
|
bgDataStore.Clear();
|
||||||
@@ -244,7 +244,7 @@ namespace Game.BattleGrounds
|
|||||||
Log.outError(LogFilter.Battleground, $"Battleground: CreateNewBattleground: bg bracket entry not found for map {bg_template.BattlemasterEntry.MapId[0]} bracket id {bracketId}");
|
Log.outError(LogFilter.Battleground, $"Battleground: CreateNewBattleground: bg bracket entry not found for map {bg_template.BattlemasterEntry.MapId[0]} bracket id {bracketId}");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Battleground bg = null;
|
Battleground bg = null;
|
||||||
// create a copy of the BG template
|
// create a copy of the BG template
|
||||||
switch (bgTypeId)
|
switch (bgTypeId)
|
||||||
@@ -686,7 +686,7 @@ namespace Game.BattleGrounds
|
|||||||
bgDataStore[bgTypeId].m_Battlegrounds.Remove(instanceId);
|
bgDataStore[bgTypeId].m_Battlegrounds.Remove(instanceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BattlegroundQueue GetBattlegroundQueue(BattlegroundQueueTypeId bgQueueTypeId)
|
public BattlegroundQueue GetBattlegroundQueue(BattlegroundQueueTypeId bgQueueTypeId)
|
||||||
{
|
{
|
||||||
if (!m_BattlegroundQueues.ContainsKey(bgQueueTypeId))
|
if (!m_BattlegroundQueues.ContainsKey(bgQueueTypeId))
|
||||||
m_BattlegroundQueues[bgQueueTypeId] = new BattlegroundQueue(bgQueueTypeId);
|
m_BattlegroundQueues[bgQueueTypeId] = new BattlegroundQueue(bgQueueTypeId);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user