-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMod.cs
More file actions
25 lines (21 loc) · 663 Bytes
/
Copy pathMod.cs
File metadata and controls
25 lines (21 loc) · 663 Bytes
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
using Colossal.Logging;
using Game;
using Game.Modding;
using Game.SceneFlow;
namespace SubwayFreedomAssetPack
{
public class Mod : IMod
{
public static ILog log = LogManager.GetLogger($"{nameof(SubwayFreedomAssetPack)}.{nameof(Mod)}").SetShowsErrorsInUI(false);
public void OnLoad(UpdateSystem updateSystem)
{
log.Info(nameof(OnLoad));
if (GameManager.instance.modManager.TryGetExecutableAsset(this, out var asset))
log.Info($"Current mod asset at {asset.path}");
}
public void OnDispose()
{
log.Info(nameof(OnDispose));
}
}
}