Esempio n. 1
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;
 }
Esempio n. 2
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();
 }