remove tou and me specific example

This commit is contained in:
MyDragonBreath committed 2025-03-29 23:25:55 +11:00
1 parent 71b537dba9
commit d3b40aec5a
2 files changed
-12

No files matched your search

-2
View File
@@ -19,8 +19,6 @@ public static class ExampleEventHandlers
MiraEventManager.RegisterEventHandler<BeforeMurderEvent>(@event =>
{
Logger<ExamplePlugin>.Info($"{@event.Source.Data.PlayerName} is about to kill {@event.Target.Data.PlayerName}");
var asset = new LoadableAddressableAsset<GameObject>("Assets/Prefabs/SomeText.prefab");
Logger<ExamplePlugin>.Info($"{asset.LoadAsset().GetComponent<TextMeshPro>().text}");
});
MiraEventManager.RegisterEventHandler<AfterMurderEvent>(@event =>
-10
View File
@@ -3,13 +3,9 @@ using BepInEx.Configuration;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using MiraAPI.PluginLoading;
using MiraAPI.Utilities.Assets;
using Reactor;
using Reactor.Networking;
using Reactor.Networking.Attributes;
using System.IO;
using System.Reflection;
using UnityEngine;
namespace MiraAPI.Example;
@@ -27,11 +23,5 @@ public partial class ExamplePlugin : BasePlugin, IMiraPlugin
{
ExampleEventHandlers.Initialize();
Harmony.PatchAll();
var path = Path.GetDirectoryName(Assembly.GetAssembly(typeof(ExamplePlugin))!.Location) + "\\touhats.catalog";
AddressablesLoader.RegisterCatalog(path);
AddressablesLoader.RegisterHats("touhats");
AddressablesLoader.RegisterCatalog("https://raw.githubusercontent.com/MyDragonBreath/MyDragonBreath/refs/heads/main/DONTUSEGITHUBASACDN/catalog.json");
}
}