コード例 #1
0
 internal void Init(QueuedAudioSystem audioSystem, ResearchControl researchControl, ResearchHacking researchHacking)
 {
     audio    = audioSystem;
     research = researchControl;
     hacking  = researchHacking;
     MyAPIGateway.Multiplayer.RegisterMessageHandler(ModId, IncomingMessage);
 }
コード例 #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;
 }
コード例 #3
0
ファイル: CalCore.cs プロジェクト: Wicorel/WicoCalpurnius
 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();
 }
コード例 #4
0
 internal CalMissionSystem(long missionStartTimeBinary, HashSet <int> alreadyExecutedPrompts,
                           QueuedAudioSystem audioSystem, ResearchControl researchControl) : base(missionStartTimeBinary, alreadyExecutedPrompts, audioSystem)
 {
     this.researchControl = researchControl;
 }