コード例 #1
0
 protected override void OnSubModuleUnloaded()
 {
     ModuleLogger.Writer.WriteLine("CaptureTheBannerLordSubModule::OnSubModuleUnloaded");
     ModuleLogger.Writer.Close();
     CommunityTestSubModule._instance = (CommunityTestSubModule)null;
     base.OnSubModuleUnloaded();
 }
コード例 #2
0
 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
                                                    ));
 }