Ejemplo n.º 1
0
 public GameWorld(int mapId, string name, bool oryxPresent)
 {
     Name       = name;
     Background = 0;
     SetMusic("Overworld");
     base.FromWorldMap(
         typeof(RealmManager).Assembly.GetManifestResourceStream("wServer.realm.worlds.world" + mapId + ".wmap"));
     SetPieces.ApplySetPieces(this);
     if (oryxPresent)
     {
         Overseer  = new Oryx(this);
         OverseerS = new Oryx(this);
         OverseerT = new Oryx(this);
         OverseerF = new Oryx(this);
         Overseer.Init();
         OverseerS.Init();
         OverseerT.Init();
         OverseerF.Init();
     }
     else
     {
         Overseer  = null;
         OverseerS = null;
         OverseerT = null;
         OverseerF = null;
     }
 }
Ejemplo n.º 2
0
        protected override void Init()
        {
            FromWorldMap(new MemoryStream(Manager.Resources.Worlds["Realm"].wmap[_mapId - 1]));
            SetPieces.ApplySetPieces(this);

            if (_oryxPresent)
            {
                _overseer = new Oryx(this);
                _overseer.Init();
            }
        }
Ejemplo n.º 3
0
 protected override void Init()
 {
     LoadMap("world" + mapId, MapType.Wmap);
     SetPieces.ApplySetPieces(this);
     if (oryxPresent)
     {
         Overseer = new Realm(this);
     }
     else
     {
         Overseer = null;
     }
 }
Ejemplo n.º 4
0
        protected override void Init()
        {
            Log.InfoFormat("Initializing Game World {0}({1}) from map {2}...", Id, Name, _mapId);

            FromWorldMap(new MemoryStream(Manager.Resources.Worlds["Realm"].wmap[_mapId - 1]));
            SetPieces.ApplySetPieces(this);

            if (_oryxPresent)
            {
                _overseer = new Oryx(this);
                _overseer.Init();
            }

            Log.Info("Game World initalized.");
        }
Ejemplo n.º 5
0
 protected override void Init()
 {
     log.InfoFormat("Initializing Game World {0}({1}) from map {2}...", Id, Name, mapId);
     LoadMap("wServer.realm.worlds.maps.world" + mapId + ".wmap", MapType.Wmap);
     SetPieces.ApplySetPieces(this);
     if (oryxPresent)
     {
         Overseer = new Oryx(this);
     }
     else
     {
         Overseer = null;
     }
     log.Info("Game World initalized.");
 }
Ejemplo n.º 6
0
 protected override void Init()
 {
     log.Info($"Initializing Game World {Id} ({Name}) from map {mapId}");
     FromWorldMap(typeof(RealmManager).Assembly.GetManifestResourceStream("wServer.realm.worlds.world" + mapId + ".wmap"));
     SetPieces.ApplySetPieces(this);
     if (oryxPresent)
     {
         Overseer = new Oryx(this);
         Overseer.Init();
     }
     else
     {
         Overseer = null;
     }
     log.Info("Game World initalized.");
 }
Ejemplo n.º 7
0
 protected override void Init()
 {
     Console.WriteLine("Initializing Game World {0}({1}) from map {2}...", Id, Name, mapId);
     base.FromWorldMap(
         typeof(RealmManager).Assembly.GetManifestResourceStream("wServer.realm.worlds.maps.world" + mapId + ".wmap"));
     SetPieces.ApplySetPieces(this);
     if (oryxPresent)
     {
         Overseer = new Oryx(this);
     }
     else
     {
         Overseer = null;
     }
     Console.WriteLine("Game World initalized.");
 }
Ejemplo n.º 8
0
        protected override void Init()
        {
            var rng = new Random();

            Log.Info("Initializing Game World {0}({1}) from map {2}...", Id, Name, _mapId);

            SBName = _realmNames[rng.Next(1, _realmNames.Length)];
            FromWorldMap(new MemoryStream(Manager.Resources.Worlds["Realm"].wmap[_mapId - 1]));
            SetPieces.ApplySetPieces(this);

            if (_oryxPresent)
            {
                _overseer = new Oryx(this);
                _overseer.Init();
            }

            Log.Info("Game World initalized.");
        }
Ejemplo n.º 9
0
 protected override void Init()
 {
     if (CheckConfig.IsDebugOn())
     {
         Console.WriteLine("Initializing Game World {0}({1}) from map {2}...", Id, Name, _mapId);
     }
     LoadMap("wServer.realm.worlds.maps.world" + _mapId + ".wmap", MapType.Wmap);
     SetPieces.ApplySetPieces(this);
     if (_oryxPresent)
     {
         Overseer = new Oryx(this);
     }
     else
     {
         Overseer = null;
     }
     if (CheckConfig.IsDebugOn())
     {
         Console.WriteLine("Game World initalized.");
     }
 }