JilloSlug/src/Plugin.cs

40 lines
1009 B
C#
Raw Normal View History

2023-03-06 02:13:08 +01:00
using System;
using BepInEx;
using BepInEx.Logging;
2023-03-07 02:23:48 +01:00
using JilloSlug.Features;
using JilloSlug.Story;
2023-03-06 02:13:08 +01:00
namespace JilloSlug;
[BepInPlugin(MOD_ID, "Jillo", "0.1.0")]
class Plugin : BaseUnityPlugin {
private const string MOD_ID = "zone.oat.jilloslug";
internal static ManualLogSource Log;
public void OnEnable() {
Plugin.Log = base.Logger;
try {
On.RainWorld.OnModsInit += Extras.WrapInit(LoadResources);
BounceFeature.AddHooks();
ImmuneToDartMaggotsFeature.AddHooks();
2023-03-06 13:21:38 +01:00
MarkFeature.AddHooks();
2023-03-08 17:52:55 +01:00
CreateSlimeMoldFeature.AddHooks();
TweakDeathChanceFeature.AddHooks();
2023-03-07 02:23:48 +01:00
2023-03-07 20:29:11 +01:00
Iterators.AddHooks();
2023-03-08 17:52:55 +01:00
JilloSlimeMold.AddHooks();
2023-03-06 02:13:08 +01:00
} catch (Exception err) {
Logger.LogError($"error initializing: {err}");
}
Logger.LogInfo("initialized!");
}
// Load any resources, such as sprites or sounds
private void LoadResources(RainWorld rainWorld) {
}
}