-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCombatDevTestSubModule.cs
More file actions
47 lines (36 loc) · 1.36 KB
/
CombatDevTestSubModule.cs
File metadata and controls
47 lines (36 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Runtime.InteropServices;
using TaleWorlds.Core;
using TaleWorlds.MountAndBlade;
// using TaleWorlds.MountAndBlade.GauntletUI;
// using TaleWorlds.MountAndBlade.LegacyGUI.Missions;
namespace CombatDevTest
{
public class CombatDevTestSubModule : MBSubModuleBase
{
[DllImport("Rgl.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?toggle_imgui_console_visibility@rglCommand_line_manager@@QEAAXXZ")]
public static extern void toggle_imgui_console_visibility(UIntPtr x);
public override void OnMultiplayerGameStart(Game game, object starterObject)
{
base.OnMultiplayerGameStart(game, starterObject);
game.AddGameHandler<OfflineMultiplayerGameHandler>();
}
protected override void OnSubModuleLoad()
{
toggle_imgui_console_visibility(UIntPtr.Zero);
base.OnSubModuleLoad();
}
protected override void OnSubModuleUnloaded()
{
base.OnSubModuleUnloaded();
}
protected override void OnBeforeInitialModuleScreenSetAsRoot()
{
}
protected override void OnApplicationTick(float dt)
{
// ModuleLogger.Writer.WriteLine("CaptureTheBannerLordSubModule::OnApplicationTick {0}", dt);
base.OnApplicationTick(dt);
}
}
}