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;
|
|
|
|
|
|
|
|
|
|
// Add hooks
|
|
|
|
|
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-07 02:23:48 +01:00
|
|
|
|
|
|
|
|
|
Pebbles.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) {
|
|
|
|
|
}
|
|
|
|
|
}
|