Exemplo n.º 1
0
        protected World()
        {
            Players = new ConcurrentDictionary<int, Player>();
            Enemies = new ConcurrentDictionary<int, Enemy>();
            Projectiles = new ConcurrentDictionary<Tuple<int, byte>, Projectile>();
            StaticObjects = new ConcurrentDictionary<int, StaticObject>();
            Timers = new List<WorldTimer>();
            EnemiesCollision = new SpatialStorage();
            PlayersCollision = new SpatialStorage();
            ClientXML = ExtraXML = Empty<string>.Array;
            Map = new Wmap();
            AllowTeleport = true;
            ShowDisplays = true;

            ExtraXML = new string[] { XmlDatas.AdditionXml };
        }
Exemplo n.º 2
0
        protected World()
        {
            Players          = new ConcurrentDictionary <int, Player>();
            Enemies          = new ConcurrentDictionary <int, Enemy>();
            Projectiles      = new ConcurrentDictionary <Tuple <int, byte>, Projectile>();
            StaticObjects    = new ConcurrentDictionary <int, StaticObject>();
            Timers           = new List <WorldTimer>();
            EnemiesCollision = new SpatialStorage();
            PlayersCollision = new SpatialStorage();
            ClientXML        = ExtraXML = Empty <string> .Array;
            Map           = new Wmap();
            AllowTeleport = true;
            ShowDisplays  = true;

            ExtraXML = new string[] { XmlDatas.AdditionXml };
        }