mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-24 16:46:45 +00:00
code ordering and cleanup
This commit is contained in:
10 files changed
+68
-57
No files matched your search
@@ -31,7 +31,7 @@ public static class ExampleEventHandlers
|
||||
|
||||
MiraEventManager.RegisterEventHandler<CompleteTaskEvent>(@event =>
|
||||
{
|
||||
Logger<ExamplePlugin>.Info($"{@event.Player.Data.PlayerName} completed {@event.Task.TaskType.ToString()}");
|
||||
Logger<ExamplePlugin>.Info($"{@event.Player.Data.PlayerName} completed {@event.Task.TaskType}");
|
||||
});
|
||||
|
||||
// You can also unregister event handlers using the handle returned from RegisterEventHandler.
|
||||
@@ -89,7 +89,7 @@ public static class ExampleEventHandlers
|
||||
[RegisterEvent]
|
||||
public static void UpdateSystemEventHandler(UpdateSystemEvent @event)
|
||||
{
|
||||
Logger<ExamplePlugin>.Error(@event.SystemType.ToString());
|
||||
Logger<ExamplePlugin>.Error(@event.SystemType);
|
||||
}
|
||||
|
||||
// Example event handler
|
||||
|
||||
Reference in new issue
Block a user