From 67c16bd8f2762da3ef0a1e3d0d778fcceac83c61 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Mon, 31 Jul 2023 13:34:59 -0700 Subject: [PATCH] make all QSBAPIEvents stuff internal --- QSB/API/QSBAPI.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/QSB/API/QSBAPI.cs b/QSB/API/QSBAPI.cs index 0b4dc6c9..edc68959 100644 --- a/QSB/API/QSBAPI.cs +++ b/QSB/API/QSBAPI.cs @@ -42,9 +42,7 @@ internal static class QSBAPIEvents QSBPlayerManager.OnRemovePlayer += player => OnPlayerLeaveEvent.Invoke(player.PlayerId); } - public static UnityEvent OnPlayerJoinEvent = new PlayerEvent(); - public static UnityEvent OnPlayerLeaveEvent = new PlayerEvent(); + internal class PlayerEvent : UnityEvent { } + internal static PlayerEvent OnPlayerJoinEvent = new PlayerEvent(); + internal static PlayerEvent OnPlayerLeaveEvent = new PlayerEvent(); } - -// i hate OOP sometimes -internal class PlayerEvent : UnityEvent { }