feat: initialize project

This commit is contained in:
David Utz
2026-08-21 09:33:43 +02:00
parent ce07880273
commit ed0ccefda1
8 changed files with 562 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using HarmonyLib;
namespace IngameReveries
{
// ModBehaviour will be instantiated and attached as a component in a container game object named <Your Mod ID>
// Multiple ModBehaviours in your mod will share the same container.
public class IngameReveries : ModBehaviour
{
private void Awake()
{
// Metadata of your mod is stored in this.about
Debug.Log("Hello! I'm loaded! " + mod.metadata.id);
// If you need to patch with Harmony, you can use this.harmony to access the Harmony instance for your mod.
// It will be created with your mod's id automatically, the first time you access the property.
harmony.PatchAll();
}
private void OnDestroy()
{
// Make sure you clean up properly to support Live Reload.
Debug.Log("Good bye! " + mod.metadata.id);
harmony.UnpatchAll();
}
}
}