internal NpcGroupManager(HeatSystem heatSystem, QueuedAudioSystem audioSystem, BaseManager baseManager) { this.heatSystem = heatSystem; this.audioSystem = audioSystem; this.baseManager = baseManager; MyAPIGateway.Entities.OnEntityAdd += NewEntityEvent; }
internal Convoy(Vector3D destination, NpcGroupState initialState, NpcGroupArrivalObserver arrivalObserver, QueuedAudioSystem audioSystem, IMyCubeGrid leader, DateTime groupSpawnTime) : base(leader.EntityId, initialState, destination, NpcGroupType.Convoy, groupSpawnTime, arrivalObserver) { this.audioSystem = audioSystem; this.leader = leader; }
internal void Init(QueuedAudioSystem audioSystem, ResearchControl researchControl, ResearchHacking researchHacking) { audio = audioSystem; research = researchControl; hacking = researchHacking; MyAPIGateway.Multiplayer.RegisterMessageHandler(ModId, IncomingMessage); }
internal BackupGroup(NpcGroupState initialState, Vector3D destination, IMyCubeGrid leader, NpcGroupArrivalObserver npcGroupArrivalObserver, QueuedAudioSystem audioSystem, DateTime groupSpawnTime) : base(leader.EntityId, initialState, destination, NpcGroupType.Backup, groupSpawnTime, npcGroupArrivalObserver) { this.leader = leader; this.audioSystem = audioSystem; }
internal BackupGroup(NpcGroupState initialState, Vector3D destination, IMyCubeGrid leader, HeatSystem heatSystem, QueuedAudioSystem audioSystem, DateTime groupSpawnTime) : base(leader.EntityId, initialState, destination, NpcGroupType.Backup, groupSpawnTime, heatSystem) { this.leader = leader; this.audioSystem = audioSystem; this.heat = heatSystem; }
internal GCorpBase(IMyRemoteControl remoteControl, DateTime lastBackupRespondTime, MyPlanet marsPlanet, QueuedAudioSystem audioSystem, IFaction faction) { RemoteControl = remoteControl; this.lastBackupRespondTime = lastBackupRespondTime; this.marsPlanet = marsPlanet; this.audioSystem = audioSystem; this.faction = faction; baseId = remoteControl.EntityId; }
internal Convoy(Vector3D destination, NpcGroupState initialState, NpcGroupArrivalObserver arrivalObserver, QueuedAudioSystem audioSystem, IMyCubeGrid leader, DateTime groupSpawnTime) : base(leader.EntityId, initialState, destination, NpcGroupType.Convoy, groupSpawnTime, arrivalObserver) { this.audioSystem = audioSystem; this.leader = leader; InterceptingBeaconSuffix = VRage.MyTexts.Get(MyStringId.TryGet("InterceptingBeaconSuffix")).ToString(); FleeingBeaconSuffix = VRage.MyTexts.Get(MyStringId.TryGet("FleeingBeaconSuffix")).ToString(); }
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; }
private int timeSinceSpoken = -2; // -2 means player hasn't gone into antenna range even, //-1 means player hasn't visited Miki Scrap yet. Otherwise it's normally counting up to AudioMaxTime // MyAPIGateway.Utilities.ShowNotification(""+timeSinceSpoken, 1000, MyFontEnum.Debug); internal MikiScrap(IMyCubeGrid mikiScrapGrid, IMyRemoteControl remoteControl, MyInventory scrapIn, MyInventory output, IMyDoor furnaceDoor, IMySoundBlock speaker, List <IMyTextPanel> furnaceLcds, List <IMyReflectorLight> furnaceSpotlights, MyInventory furnaceOutput, QueuedAudioSystem audioSystem) { this.mikiScrapGrid = mikiScrapGrid; this.remoteControl = remoteControl; this.scrapIn = scrapIn; this.output = output; this.furnaceDoor = furnaceDoor; this.speaker = speaker; this.furnaceLcds = furnaceLcds; this.furnaceSpotlights = furnaceSpotlights; this.furnaceOutput = furnaceOutput; this.audioSystem = audioSystem; }
internal MissionSystem(int modBuildWhenLastSaved, Version gameVersion, long missionStartTimeBinary, HashSet <int> alreadyExecutedPrompts, QueuedAudioSystem audioSystem, ResearchControl researchControl) { this.gameVersion = gameVersion; this.audioSystem = audioSystem; this.researchControl = researchControl; this.modBuildWhenLastSaved = modBuildWhenLastSaved; //V27 missionStartTime = DateTime.FromBinary(missionStartTimeBinary); excludedIDs = alreadyExecutedPrompts; desiredEntityIDs = new HashSet <long>(); GeneratePrompts(); timeBasedPrompts.Sort((x, y) => - x.TriggerTime.CompareTo(y.TriggerTime)); // ModLog.Info("Start Time = " + missionStartTime.ToString()); ModLog.Info("Current Mission Length: " + (MyAPIGateway.Session.GameDateTime - missionStartTime).ToString(@"hh\:mm\:ss")); //V27 }
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(); }
internal BackupGroup(NpcGroupState initialState, Vector3D destination, IMyCubeGrid leader, HeatSystem heatSystem, QueuedAudioSystem audioSystem, DateTime groupSpawnTime) : base(leader.EntityId, initialState, destination, NpcGroupType.Backup, groupSpawnTime, heatSystem) { this.leader = leader; this.audioSystem = audioSystem; this.heat = heatSystem; var InterceptingBeaconSuffixID = MyStringId.TryGet("InterceptingBeaconSuffix"); InterceptingBeaconSuffix = VRage.MyTexts.Get(InterceptingBeaconSuffixID).ToString(); var ReturningToBaseID = MyStringId.TryGet("ReturningToBase"); ReturningToBase = VRage.MyTexts.Get(ReturningToBaseID).ToString(); var InvestigatingBackupCallID = MyStringId.TryGet("InvestigatingBackupCall"); InvestigatingBackupCall = VRage.MyTexts.Get(InvestigatingBackupCallID).ToString(); }
internal GCorpBase(IMyRemoteControl remoteControl, DateTime lastBackupRespondTime, MyPlanet marsPlanet, HeatSystem heatSystem, QueuedAudioSystem audioSystem) { RemoteControl = remoteControl; this.lastBackupRespondTime = lastBackupRespondTime; this.marsPlanet = marsPlanet; this.heatSystem = heatSystem; this.audioSystem = audioSystem; baseId = remoteControl.EntityId; turrets = new List <IMyLargeTurretBase>(); var slimBlocks2 = new List <IMySlimBlock>(); remoteControl.CubeGrid.GetBlocks(slimBlocks2, b => b.FatBlock is IMyLargeTurretBase); foreach (var slim in slimBlocks2) { var turret = slim.FatBlock as IMyLargeTurretBase; // turret.Enabled = false; turrets.Add(turret); } }
internal BaseManager(HeatSystem heatSystem, QueuedAudioSystem audioSystem) { this.heatSystem = heatSystem; this.audioSystem = audioSystem; }
internal ConvoySpawner(QueuedAudioSystem audioSystem) { this.audioSystem = audioSystem; }
internal BaseManager(QueuedAudioSystem audioSystem) { this.audioSystem = audioSystem; }
internal ResearchControl(QueuedAudioSystem audioSystem) { this.audioSystem = audioSystem; }
public MikiScrapManager(QueuedAudioSystem audioSystem) { this.audioSystem = audioSystem; }
internal ConvoySpawner(HeatSystem heatSystem, QueuedAudioSystem audioSystem) { this.heatSystem = heatSystem; this.audioSystem = audioSystem; }
internal CalMissionSystem(long missionStartTimeBinary, HashSet <int> alreadyExecutedPrompts, QueuedAudioSystem audioSystem, ResearchControl researchControl) : base(missionStartTimeBinary, alreadyExecutedPrompts, audioSystem) { this.researchControl = researchControl; }
public ConvoyGround(Vector3D destination, NpcGroupState initialState, NpcGroupArrivalObserver arrivalObserver, QueuedAudioSystem audioSystem, IMyCubeGrid leader, DateTime groupSpawnTime) : base(destination, initialState, arrivalObserver, audioSystem, leader, groupSpawnTime) { }