internal void Init(QueuedAudioSystem audioSystem, ResearchControl researchControl, ResearchHacking researchHacking) { audio = audioSystem; research = researchControl; hacking = researchHacking; MyAPIGateway.Multiplayer.RegisterMessageHandler(ModId, IncomingMessage); }
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(); }