예제 #1
0
        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;
        }
예제 #2
0
        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);
        }