예제 #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();
            }
        }
 public GangVehicleUpdater()
 {
     this.Tick += OnTick;
     instance   = this;
 }