public BattlegroundMap GenerateBattlegroundMap(int mapId) { Contract.Requires(mapId >= 0); var instanceId = (long)_instanceIdGenerator.GenerateId(); // TODO: Proper typing and initialization of IDGenerator var bgm = new BattlegroundMap(mapId, instanceId); _instanceMaps.Add(instanceId, bgm); return bgm; }
public BattlegroundMap GenerateBattlegroundMap(int mapId) { Contract.Requires(mapId >= 0); var instanceId = (long)_instanceIdGenerator.GenerateId(); // TODO: Proper typing and initialization of IDGenerator var bgm = new BattlegroundMap(mapId, instanceId); _instanceMaps.Add(instanceId, bgm); return(bgm); }