forked from qunosteve/tasamphitheatre
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubModule.cs
More file actions
47 lines (36 loc) · 1.18 KB
/
SubModule.cs
File metadata and controls
47 lines (36 loc) · 1.18 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 TaleWorlds.MountAndBlade;
namespace tasamphitheatre
{
public class SubModule : MBSubModuleBase
{
protected override void OnSubModuleLoad()
{
base.OnSubModuleLoad();
Console.WriteLine("Welcome to the Ape Society!");
}
protected override void OnSubModuleUnloaded()
{
base.OnSubModuleUnloaded();
}
protected override void OnBeforeInitialModuleScreenSetAsRoot()
{
base.OnBeforeInitialModuleScreenSetAsRoot();
}
protected override void OnGameStart(Game game, IGameStarter gameStarterObject)
{
base.OnGameStart(game, gameStarterObject);
if (game.GameType is Campaign)
{
// Code to modify campaign behavior goes here
// For example, adding custom logic or tweaking game mechanics
}
if (game.GameType is Singleplayer)
{
// Code to modify singleplayer behavior goes here
}
if (game.GameType is Multiplayer)
{
// Code to modify multiplayer behavior goes here
}
}
}