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