asd gatya

This commit is contained in:
2025-12-14 00:03:32 +01:00
parent 9b5fb2c632
commit b6bcde41b1
2 changed files with 156 additions and 0 deletions

31
Main.cs
View File

@@ -35,6 +35,37 @@ namespace KCM
public static string PlayerSteamID => SteamUser.GetSteamID().ToString();
// K&C mod loader entrypoint
public void Preload(KCModHelper modHelper)
{
helper = modHelper;
try
{
EnsureNetworking();
if (harmony == null)
harmony = HarmonyInstance.Create("com.kcm.mod");
harmony.PatchAll(Assembly.GetExecutingAssembly());
try
{
new PrefabManager().PreScriptLoad(modHelper);
}
catch (Exception ex)
{
Log("Prefab preload failed");
Log(ex);
}
}
catch (Exception ex)
{
Log("Preload failed");
Log(ex);
}
}
void Awake()
{
Log("KCM Awake");