예제 #1
0
        private static float ConvoySpeed = 10f; // needs to be 10f for release

        internal NpcGroupManager(int modBuildWhenSaved, HeatSystem heatSystem, QueuedAudioSystem audioSystem, BaseManager baseManager,
                                 ConvoySpawner convoySpawner)
        {
            this.heatSystem       = heatSystem;
            this.audioSystem      = audioSystem;
            this.baseManager      = baseManager;
            this.convoySpawner    = convoySpawner;
            modBuildWhenLastSaved = modBuildWhenSaved;

            MyAPIGateway.Entities.OnEntityAdd += NewEntityEvent;
        }
예제 #2
0
 protected override void InitHostPreLoading()
 {
     if (MyAPIGateway.Session == null)
     {
         return;
     }
     mikiScrapManager = new MikiScrapManager(audioSystem);
     baseManager      = new BaseManager(heatSystem, audioSystem);
     convoySpawner    = new ConvoySpawner(heatSystem, audioSystem);
     npcGroupManager  = new NpcGroupManager(modBuildWhenLastSaved, heatSystem, audioSystem, baseManager, convoySpawner);
 }
예제 #3
0
        private string ConvoyRecalled          = "Convoy Recalled";            // loaded my mytexts

        internal NpcGroupManager(int modBuildWhenSaved, HeatSystem heatSystem, QueuedAudioSystem audioSystem, BaseManager baseManager,
                                 ConvoySpawner convoySpawner)
        {
            this.heatSystem       = heatSystem;
            this.audioSystem      = audioSystem;
            this.baseManager      = baseManager;
            this.convoySpawner    = convoySpawner;
            modBuildWhenLastSaved = modBuildWhenSaved;

            MyAPIGateway.Entities.OnEntityAdd += NewEntityEvent;

            EscortName = VRage.MyTexts.Get(MyStringId.TryGet("EscortName")).ToString();

            var InvestigatingBackupCallID = MyStringId.TryGet("InvestigatingBackupCall");

            InvestigatingBackupCall = VRage.MyTexts.Get(InvestigatingBackupCallID).ToString();

            ConvoyRecalled = VRage.MyTexts.Get(MyStringId.TryGet("ConvoyRecalled")).ToString();
        }