Beispiel #1
0
        public void CheckDespawnConditions()
        {
            var timeDifference = MyAPIGateway.Session.GameDateTime - _despawnCheckTimer;

            if (timeDifference.TotalMilliseconds <= 999)
            {
                return;
            }

            _settingSaveCounter++;
            Logger.MsgDebug("Checking Despawn Conditions", DebugTypeEnum.Dev);
            _despawnCheckTimer = MyAPIGateway.Session.GameDateTime;
            Despawn.ProcessTimers(Mode, NewAutoPilot.InvalidTarget());
            //MainBehavior();

            if (_settingSaveCounter >= _settingSaveCounterTrigger)
            {
                SaveData();
            }
        }