Esempio n. 1
0
        public ModCore()
        {
            curGameTime = Game.GameTime;

            zoneManagerScript = new ZoneManager();
            gangManagerScript = new GangManager();
            mindControlScript = new MindControl();
            menuScript        = new MenuScript();

            this.Aborted += OnAbort;

            this.KeyUp += OnKeyUp;
            this.Tick  += OnTick;

            Logger.Log("mod started!", 2);

            bool successfulInit = GangMemberUpdater.Initialize();

            while (successfulInit == false)
            {
                Yield();
                successfulInit = GangMemberUpdater.Initialize();
            }

            successfulInit = GangVehicleUpdater.Initialize();

            while (successfulInit == false)
            {
                Yield();
                successfulInit = GangVehicleUpdater.Initialize();
            }
        }
Esempio n. 2
0
 public GangMemberUpdater()
 {
     this.Tick += OnTick;
     instance   = this;
 }