Example #1
0
 internal void Init(QueuedAudioSystem audioSystem, ResearchControl researchControl, ResearchHacking researchHacking)
 {
     audio    = audioSystem;
     research = researchControl;
     hacking  = researchHacking;
     MyAPIGateway.Multiplayer.RegisterMessageHandler(ModId, IncomingMessage);
 }
Example #2
0
 internal ResearchHacking(ResearchControl researchControl, HUDTextAPI hudTextApi, NetworkComms networkComms)
 {
     hackBar.options         |= HUDTextAPI.Options.HideHud;
     hackInterrupted.options |= HUDTextAPI.Options.HideHud;
     this.researchControl     = researchControl;
     this.hudTextApi          = hudTextApi;
     this.networkComms        = networkComms;
 }
Example #3
0
 protected override void InitCommon(IModSystemRegistry modSystemRegistry)
 {
     MyAPIGateway.Utilities.ShowNotification("Initialising Calpurnius build " + CurrentModVersion, 10000,
                                             MyFontEnum.DarkBlue);
     hudTextApi      = new HUDTextAPI(11873852597);
     researchControl = new ResearchControl(audioSystem);
     researchControl.InitResearchRestrictions();
     researchHacking = new ResearchHacking(researchControl, hudTextApi, networkComms);
     networkComms.Init(audioSystem, researchControl, researchHacking);
     modSystemRegistry.AddCloseableModSystem(hudTextApi);
     modSystemRegistry.AddCloseableModSystem(networkComms);
     modSystemRegistry.AddUpatableModSystem(audioSystem);
     CalFactions.Player.JoinCurrentPlayerToFaction();
 }
 internal CalMissionSystem(long missionStartTimeBinary, HashSet <int> alreadyExecutedPrompts,
                           QueuedAudioSystem audioSystem, ResearchControl researchControl) : base(missionStartTimeBinary, alreadyExecutedPrompts, audioSystem)
 {
     this.researchControl = researchControl;
 }