-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestSPMod.cs
More file actions
40 lines (34 loc) · 1.24 KB
/
TestSPMod.cs
File metadata and controls
40 lines (34 loc) · 1.24 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
using System;
using TaleWorlds.CampaignSystem;
using TaleWorlds.CampaignSystem.SandBox.GameComponents;
using TaleWorlds.Core;
using TaleWorlds.MountAndBlade;
namespace TestSPMod
{
public class TestSPMod : MBSubModuleBase
{
protected override void OnGameStart(Game game, IGameStarter gameStarterObject)
{
Campaign campaign = game.GameType as Campaign;
if (campaign == null) return;
CampaignGameStarter gameInitializer = (CampaignGameStarter)gameStarterObject;
AddBehaviors(gameInitializer);
AddGameModels(gameInitializer);
}
private void AddGameModels(CampaignGameStarter gameInitializer)
{
// gameInitializer.AddModel(new DefaultAgeModel());
}
protected override void OnApplicationTick(float dt)
{
Console.WriteLine("DO SMTH");
base.OnApplicationTick(dt);
}
private void AddBehaviors(CampaignGameStarter gameInitializer)
{
gameInitializer.AddBehavior(new WorkTheFields());
gameInitializer.AddBehavior(new CustomSaveTickerTest());
gameInitializer.AddBehavior(new NemesisSystem());
}
}
}