-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.cs
29 lines (25 loc) · 874 Bytes
/
Main.cs
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
using TaleWorlds.CampaignSystem;
using TaleWorlds.Core;
using TaleWorlds.MountAndBlade;
namespace RoyalArmouryFix
{
public class Main : MBSubModuleBase
{
protected override void OnSubModuleLoad()
{
base.OnSubModuleLoad();
}
protected override void OnBeforeInitialModuleScreenSetAsRoot()
{
base.OnBeforeInitialModuleScreenSetAsRoot();
InformationManager.DisplayMessage(new InformationMessage("Royal Armoury [v3.0.2] Compiled for 1.5.9"));
}
protected override void OnGameStart(Game game, IGameStarter gameStarterObject)
{
if (!(game.GameType is Campaign))
return;
CampaignGameStarter gameInitializer = (CampaignGameStarter)gameStarterObject;
gameInitializer.AddBehavior(new RoyalArmoury());
}
}
}