Esempio 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;
     }
 }
Esempio n. 2
0
        public bool Equals(SaveFileVC other)
        {
            if (other == null)
            {
                return(false);
            }

            return(SimpleVars.Equals(other.SimpleVars) &&
                   Scripts.Equals(other.Scripts) &&
                   PedPool.Equals(other.PedPool) &&
                   Garages.Equals(other.Garages) &&
                   GameLogic.Equals(other.GameLogic) &&
                   Vehicles.Equals(other.Vehicles) &&
                   Objects.Equals(other.Objects) &&
                   Paths.Equals(other.Paths) &&
                   Cranes.Equals(other.Cranes) &&
                   Pickups.Equals(other.Pickups) &&
                   PhoneInfo.Equals(other.PhoneInfo) &&
                   RestartPoints.Equals(other.RestartPoints) &&
                   RadarBlips.Equals(other.RadarBlips) &&
                   Zones.Equals(other.Zones) &&
                   Gangs.Equals(other.Gangs) &&
                   CarGenerators.Equals(other.CarGenerators) &&
                   ParticleObjects.Equals(other.ParticleObjects) &&
                   AudioScriptObjects.Equals(other.AudioScriptObjects) &&
                   ScriptPaths.Equals(other.ScriptPaths) &&
                   PlayerInfo.Equals(other.PlayerInfo) &&
                   Stats.Equals(other.Stats) &&
                   SetPieces.Equals(other.SetPieces) &&
                   Streaming.Equals(other.Streaming) &&
                   PedTypeInfo.Equals(other.PedTypeInfo));
        }
Esempio n. 3
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();
            }
        }
Esempio n. 4
0
 protected override void Init()
 {
     LoadMap("world" + mapId, MapType.Wmap);
     SetPieces.ApplySetPieces(this);
     if (oryxPresent)
     {
         Overseer = new Realm(this);
     }
     else
     {
         Overseer = null;
     }
 }
Esempio n. 5
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.");
        }
Esempio n. 6
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.");
 }
Esempio n. 7
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.");
 }
Esempio n. 8
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.");
 }
Esempio n. 9
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.");
        }
Esempio n. 10
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.");
     }
 }
Esempio n. 11
0
        public bool Equals(SaveFileSA other)
        {
            if (other == null)
            {
                return(false);
            }

            return(SimpleVars.Equals(other.SimpleVars) &&
                   Scripts.Equals(other.Scripts) &&
                   Pools.Equals(other.Pools) &&
                   Garages.Equals(other.Garages) &&
                   GameLogic.Equals(other.GameLogic) &&
                   Paths.Equals(other.Paths) &&
                   Pickups.Equals(other.Pickups) &&
                   PhoneInfo.Equals(other.PhoneInfo) &&
                   RestartPoints.Equals(other.RestartPoints) &&
                   RadarBlips.Equals(other.RadarBlips) &&
                   Zones.Equals(other.Zones) &&
                   GangData.Equals(other.GangData) &&
                   CarGenerators.Equals(other.CarGenerators) &&
                   PedGenerators.Equals(other.PedGenerators) &&
                   AudioScriptObjects.Equals(other.AudioScriptObjects) &&
                   PlayerInfo.Equals(other.PlayerInfo) &&
                   Stats.Equals(other.Stats) &&
                   SetPieces.Equals(other.SetPieces) &&
                   Streaming.Equals(other.Streaming) &&
                   PedTypeInfo.Equals(other.PedTypeInfo) &&
                   Tags.Equals(other.Tags) &&
                   IplStore.Equals(other.IplStore) &&
                   Shopping.Equals(other.Shopping) &&
                   GangWars.Equals(other.GangWars) &&
                   StuntJumps.Equals(other.StuntJumps) &&
                   EntryExits.Equals(other.EntryExits) &&
                   Radio.Equals(other.Radio) &&
                   User3dMarkers.Equals(other.User3dMarkers) &&
                   PostEffects.Equals(other.PostEffects));
        }