示例#1
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();
        }
示例#2
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;
        }