protected override void OnSubModuleUnloaded() { ModuleLogger.Writer.WriteLine("CaptureTheBannerLordSubModule::OnSubModuleUnloaded"); ModuleLogger.Writer.Close(); CommunityTestSubModule._instance = (CommunityTestSubModule)null; base.OnSubModuleUnloaded(); }
protected override void OnSubModuleLoad() { base.OnSubModuleLoad(); ModuleLogger.Writer.WriteLine("CaptureTheBannerLordSubModule::OnSubModuleLoad"); CommunityTestSubModule._instance = this; Module.CurrentModule.AddInitialStateOption(new InitialStateOption( "CaptureTheBannerLord", new TextObject("{=CaptureTheBannerLord}Battle Test", (Dictionary <string, TextObject>)null), 10001, () => ScreenManager.PushScreen(new CommunityTestScreen()), false )); }