diff --git a/APITestMod/APITestMod.cs b/APITestMod/APITestMod.cs new file mode 100644 index 00000000..96a637f4 --- /dev/null +++ b/APITestMod/APITestMod.cs @@ -0,0 +1,61 @@ +using OWML.Common; +using OWML.ModHelper; +using UnityEngine; +using UnityEngine.SceneManagement; + +namespace APITestMod; + +public class APITestMod : ModBehaviour +{ + public void Start() + { + var qsbAPI = ModHelper.Interaction.TryGetModApi("Raicuparta.QuantumSpaceBuddies"); + var menuFrameworkAPI = ModHelper.Interaction.TryGetModApi("_nebula.MenuFramework"); + + LoadManager.OnCompleteSceneLoad += (oldScene, newScene) => + { + if (newScene != OWScene.SolarSystem) + { + return; + } + + var button = menuFrameworkAPI.PauseMenu_MakeSimpleButton("QSB Api Test"); + + qsbAPI.OnPlayerJoin().AddListener((uint playerId) => ModHelper.Console.WriteLine($"{playerId} joined the game!", MessageType.Success)); + qsbAPI.OnPlayerLeave().AddListener((uint playerId) => ModHelper.Console.WriteLine($"{playerId} left the game!", MessageType.Success)); + + button.onClick.AddListener(() => + { + ModHelper.Console.WriteLine("TESTING QSB API!"); + + ModHelper.Console.WriteLine($"Local Player ID : {qsbAPI.GetLocalPlayerID()}"); + + ModHelper.Console.WriteLine("Player IDs :"); + + foreach (var playerID in qsbAPI.GetPlayerIDs()) + { + ModHelper.Console.WriteLine($" - id:{playerID} name:{qsbAPI.GetPlayerName(playerID)}"); + } + + ModHelper.Console.WriteLine("Setting custom data as \"QSB TEST STRING\""); + qsbAPI.SetCustomData(qsbAPI.GetLocalPlayerID(), "APITEST.TESTSTRING", "QSB TEST STRING"); + ModHelper.Console.WriteLine($"Retreiving custom data : {qsbAPI.GetCustomData(qsbAPI.GetLocalPlayerID(), "APITEST.TESTSTRING")}"); + + ModHelper.Console.WriteLine("Sending string message test..."); + qsbAPI.RegisterHandler("apitest-string", MessageHandler); + qsbAPI.SendMessage("apitest-string", "STRING MESSAGE", true); + + ModHelper.Console.WriteLine("Sending int message test..."); + qsbAPI.RegisterHandler("apitest-int", MessageHandler); + qsbAPI.SendMessage("apitest-int", 123, true); + + ModHelper.Console.WriteLine("Sending float message test..."); + qsbAPI.RegisterHandler("apitest-float", MessageHandler); + qsbAPI.SendMessage("apitest-float", 3.14f, true); + }); + }; + } + + private void MessageHandler(uint from, T data) + => ModHelper.Console.WriteLine($"Got : {data}"); +} diff --git a/APITestMod/APITestMod.csproj b/APITestMod/APITestMod.csproj new file mode 100644 index 00000000..e74118fb --- /dev/null +++ b/APITestMod/APITestMod.csproj @@ -0,0 +1,22 @@ + + + + net48 + APITestMod + enable + enable + $(OwmlDir)\Mods\_nebula.QSBAPITest + + + + + + + + + + Always + + + + diff --git a/APITestMod/IMenuAPI.cs b/APITestMod/IMenuAPI.cs new file mode 100644 index 00000000..7f8ea358 --- /dev/null +++ b/APITestMod/IMenuAPI.cs @@ -0,0 +1,23 @@ +using UnityEngine; +using UnityEngine.UI; + +namespace APITestMod; + +public interface IMenuAPI +{ + // Title screen + GameObject TitleScreen_MakeMenuOpenButton(string name, int index, Menu menuToOpen); + GameObject TitleScreen_MakeSceneLoadButton(string name, int index, SubmitActionLoadScene.LoadableScenes sceneToLoad, PopupMenu confirmPopup = null); + Button TitleScreen_MakeSimpleButton(string name, int index); + // Pause menu + GameObject PauseMenu_MakeMenuOpenButton(string name, Menu menuToOpen, Menu customMenu = null); + GameObject PauseMenu_MakeSceneLoadButton(string name, SubmitActionLoadScene.LoadableScenes sceneToLoad, PopupMenu confirmPopup = null, Menu customMenu = null); + Button PauseMenu_MakeSimpleButton(string name, Menu customMenu = null); + Menu PauseMenu_MakePauseListMenu(string title); + // Misc + PopupMenu MakeTwoChoicePopup(string message, string confirmText, string cancelText); + PopupInputMenu MakeInputFieldPopup(string message, string placeholderMessage, string confirmText, string cancelText); + PopupMenu MakeInfoPopup(string message, string continueButtonText); + // Startup Popups + void RegisterStartupPopup(string message); +} diff --git a/APITestMod/IQSBAPI.cs b/APITestMod/IQSBAPI.cs new file mode 100644 index 00000000..7e4e9f20 --- /dev/null +++ b/APITestMod/IQSBAPI.cs @@ -0,0 +1,71 @@ +using OWML.Common; +using UnityEngine.Events; + +public interface IQSBAPI +{ + /// + /// If called, all players connected to YOUR hosted game must have this mod installed. + /// + void RegisterRequiredForAllPlayers(IModBehaviour mod); + + /// + /// Returns the player ID of the current player. + /// + uint GetLocalPlayerID(); + + /// + /// Returns the name of a given player. + /// + /// The ID of the player you want the name of. + string GetPlayerName(uint playerID); + + /// + /// Returns the list of IDs of all connected players. + /// + uint[] GetPlayerIDs(); + + /// + /// Invoked when a player joins the game. + /// + UnityEvent OnPlayerJoin(); + + /// + /// Invoked when a player leaves the game. + /// + UnityEvent OnPlayerLeave(); + + /// + /// Sets some arbitrary data for a given player. + /// + /// The type of the data. + /// The ID of the player. + /// The unique key to access this data by. + /// The data to set. + void SetCustomData(uint playerId, string key, T data); + + /// + /// Returns some arbitrary data from a given player. + /// + /// The type of the data. + /// The ID of the player. + /// The unique key of the data you want to access. + /// The data requested. If key is not valid, returns default. + T GetCustomData(uint playerId, string key); + + /// + /// Sends a message containing arbitrary data to every player. + /// + /// The type of the data being sent. This type must be serializable. + /// The unique key of the message. + /// The data to send. + /// If true, the action given to will also be called on the same client that is sending the message. + void SendMessage(string messageType, T data, bool receiveLocally = false); + + /// + /// Registers an action to be called when a message is received. + /// + /// The type of the data in the message. + /// The unique key of the message. + /// The action to be ran when the message is received. The uint is the player ID that sent the messsage. + void RegisterHandler(string messageType, Action handler); +} diff --git a/APITestMod/manifest.json b/APITestMod/manifest.json new file mode 100644 index 00000000..60efa966 --- /dev/null +++ b/APITestMod/manifest.json @@ -0,0 +1,9 @@ +{ + "filename": "APITestMod.dll", + "author": "_nebula", + "name": "QSB API Test Mod", + "uniqueName": "_nebula.QSBAPITest", + "version": "1.0.0", + "owmlVersion": "2.9.5", + "dependencies": [ "Raicuparta.QuantumSpaceBuddies", "_nebula.MenuFramework" ] +} diff --git a/EpicRerouter/EpicRerouter.csproj b/EpicRerouter/EpicRerouter.csproj index a6efdf87..a49e2189 100644 --- a/EpicRerouter/EpicRerouter.csproj +++ b/EpicRerouter/EpicRerouter.csproj @@ -15,6 +15,6 @@ - + diff --git a/MirrorWeaver/MirrorWeaver.csproj b/MirrorWeaver/MirrorWeaver.csproj index f8a45469..27fa86ea 100644 --- a/MirrorWeaver/MirrorWeaver.csproj +++ b/MirrorWeaver/MirrorWeaver.csproj @@ -9,7 +9,7 @@ - + diff --git a/QSB.sln b/QSB.sln index 498d8553..e961dc4b 100644 --- a/QSB.sln +++ b/QSB.sln @@ -20,6 +20,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EpicOnlineTransport", "Epic EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EpicRerouter", "EpicRerouter\EpicRerouter.csproj", "{639EFAEE-C4A1-4DA2-8457-D0472A9F6343}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "APITestMod", "APITestMod\APITestMod.csproj", "{0A10143E-6C00-409B-B3A5-C54C1B01599D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -42,6 +44,10 @@ Global {639EFAEE-C4A1-4DA2-8457-D0472A9F6343}.Debug|Any CPU.Build.0 = Debug|Any CPU {639EFAEE-C4A1-4DA2-8457-D0472A9F6343}.Release|Any CPU.ActiveCfg = Release|Any CPU {639EFAEE-C4A1-4DA2-8457-D0472A9F6343}.Release|Any CPU.Build.0 = Release|Any CPU + {0A10143E-6C00-409B-B3A5-C54C1B01599D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0A10143E-6C00-409B-B3A5-C54C1B01599D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0A10143E-6C00-409B-B3A5-C54C1B01599D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0A10143E-6C00-409B-B3A5-C54C1B01599D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/QSB/API/AddonDataManager.cs b/QSB/API/AddonDataManager.cs new file mode 100644 index 00000000..48fa1f8c --- /dev/null +++ b/QSB/API/AddonDataManager.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using QSB.Utility; + +namespace QSB.API; + +public static class AddonDataManager +{ + private static readonly Dictionary> _handlers = new(); + + public static void OnReceiveDataMessage(string messageType, object data, uint from) + { + DebugLog.DebugWrite($"Received data message of message type \"{messageType}\" from {from}!"); + if (!_handlers.TryGetValue(messageType, out var handler)) + { + return; + } + + handler(from, data); + } + + public static void RegisterHandler(string messageType, Action handler) + { + DebugLog.DebugWrite($"Registering handler for \"{messageType}\" with type of {typeof(T).Name}"); + _handlers.Add(messageType, (from, data) => handler(from, (T)data)); + } +} diff --git a/QSB/API/IQSBAPI.cs b/QSB/API/IQSBAPI.cs new file mode 100644 index 00000000..6e484d34 --- /dev/null +++ b/QSB/API/IQSBAPI.cs @@ -0,0 +1,72 @@ +using System; +using OWML.Common; +using UnityEngine.Events; + +public interface IQSBAPI +{ + /// + /// If called, all players connected to YOUR hosted game must have this mod installed. + /// + void RegisterRequiredForAllPlayers(IModBehaviour mod); + + /// + /// Returns the player ID of the current player. + /// + uint GetLocalPlayerID(); + + /// + /// Returns the name of a given player. + /// + /// The ID of the player you want the name of. + string GetPlayerName(uint playerID); + + /// + /// Returns the list of IDs of all connected players. + /// + uint[] GetPlayerIDs(); + + /// + /// Invoked when a player joins the game. + /// + UnityEvent OnPlayerJoin(); + + /// + /// Invoked when a player leaves the game. + /// + UnityEvent OnPlayerLeave(); + + /// + /// Sets some arbitrary data for a given player. + /// + /// The type of the data. + /// The ID of the player. + /// The unique key to access this data by. + /// The data to set. + void SetCustomData(uint playerId, string key, T data); + + /// + /// Returns some arbitrary data from a given player. + /// + /// The type of the data. + /// The ID of the player. + /// The unique key of the data you want to access. + /// The data requested. If key is not valid, returns default. + T GetCustomData(uint playerId, string key); + + /// + /// Sends a message containing arbitrary data to every player. + /// + /// The type of the data being sent. This type must be serializable. + /// The unique key of the message. + /// The data to send. + /// If true, the action given to will also be called on the same client that is sending the message. + void SendMessage(string messageType, T data, bool receiveLocally = false); + + /// + /// Registers an action to be called when a message is received. + /// + /// The type of the data in the message. + /// The unique key of the message. + /// The action to be ran when the message is received. The uint is the player ID that sent the messsage. + void RegisterHandler(string messageType, Action handler); +} diff --git a/QSB/API/Messages/AddonDataMessage.cs b/QSB/API/Messages/AddonDataMessage.cs new file mode 100644 index 00000000..45557aa2 --- /dev/null +++ b/QSB/API/Messages/AddonDataMessage.cs @@ -0,0 +1,41 @@ +using System.IO; +using System.Runtime.Serialization.Formatters.Binary; +using QSB.Messaging; + +namespace QSB.API.Messages; + +public class AddonDataMessage : QSBMessage<(string messageType, byte[] data, bool receiveLocally)> +{ + public AddonDataMessage(string messageType, object data, bool receiveLocally) : base((messageType, Obj2Bytes(data), receiveLocally)) { } + + private static byte[] Obj2Bytes(object obj) + { + using var ms = new MemoryStream(); + var bf = new BinaryFormatter(); + bf.Serialize(ms, obj); + var bytes = ms.ToArray(); + return bytes; + } + + private static object Bytes2Obj(byte[] bytes) + { + using var ms = new MemoryStream(bytes); + var bf = new BinaryFormatter(); + var obj = bf.Deserialize(ms); + return obj; + } + + public override void OnReceiveLocal() + { + if (Data.receiveLocally) + { + OnReceiveRemote(); + } + } + + public override void OnReceiveRemote() + { + var obj = Bytes2Obj(Data.data); + AddonDataManager.OnReceiveDataMessage(Data.messageType, obj, From); + } +} diff --git a/QSB/API/QSBAPI.cs b/QSB/API/QSBAPI.cs new file mode 100644 index 00000000..edc68959 --- /dev/null +++ b/QSB/API/QSBAPI.cs @@ -0,0 +1,48 @@ +using System; +using System.Linq; +using OWML.Common; +using QSB.API.Messages; +using QSB.Messaging; +using QSB.Player; +using UnityEngine.Events; + +namespace QSB.API; + +public class QSBAPI : IQSBAPI +{ + public void RegisterRequiredForAllPlayers(IModBehaviour mod) + { + var uniqueName = mod.ModHelper.Manifest.UniqueName; + QSBCore.Addons.Add(uniqueName, mod); + } + + public uint GetLocalPlayerID() => QSBPlayerManager.LocalPlayerId; + public string GetPlayerName(uint playerId) => QSBPlayerManager.GetPlayer(playerId).Name; + public uint[] GetPlayerIDs() => QSBPlayerManager.PlayerList.Select(x => x.PlayerId).ToArray(); + + public UnityEvent OnPlayerJoin() => QSBAPIEvents.OnPlayerJoinEvent; + + public UnityEvent OnPlayerLeave() => QSBAPIEvents.OnPlayerLeaveEvent; + + public void SetCustomData(uint playerId, string key, T data) => QSBPlayerManager.GetPlayer(playerId).SetCustomData(key, data); + public T GetCustomData(uint playerId, string key) => QSBPlayerManager.GetPlayer(playerId).GetCustomData(key); + + public void SendMessage(string messageType, T data, bool receiveLocally = false) + => new AddonDataMessage(messageType, data, receiveLocally).Send(); + + public void RegisterHandler(string messageType, Action handler) + => AddonDataManager.RegisterHandler(messageType, handler); +} + +internal static class QSBAPIEvents +{ + static QSBAPIEvents() + { + QSBPlayerManager.OnAddPlayer += player => OnPlayerJoinEvent.Invoke(player.PlayerId); + QSBPlayerManager.OnRemovePlayer += player => OnPlayerLeaveEvent.Invoke(player.PlayerId); + } + + internal class PlayerEvent : UnityEvent { } + internal static PlayerEvent OnPlayerJoinEvent = new PlayerEvent(); + internal static PlayerEvent OnPlayerLeaveEvent = new PlayerEvent(); +} diff --git a/QSB/Animation/NPC/CharacterAnimManager.cs b/QSB/Animation/NPC/CharacterAnimManager.cs index 78a034d6..e71ee3f2 100644 --- a/QSB/Animation/NPC/CharacterAnimManager.cs +++ b/QSB/Animation/NPC/CharacterAnimManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.Animation.NPC; -internal class CharacterAnimManager : WorldObjectManager +public class CharacterAnimManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both; diff --git a/QSB/Animation/NPC/Patches/TravelerControllerPatches.cs b/QSB/Animation/NPC/Patches/TravelerControllerPatches.cs index 3f412cf8..88f27bc8 100644 --- a/QSB/Animation/NPC/Patches/TravelerControllerPatches.cs +++ b/QSB/Animation/NPC/Patches/TravelerControllerPatches.cs @@ -108,7 +108,7 @@ public class TravelerControllerPatches : QSBPatch } } -internal static class TravelerAudioManagerExtensions +public static class TravelerAudioManagerExtensions { /// bad, but works great private static SignalName? TravelerToSignalName(TravelerController traveler) diff --git a/QSB/Animation/NPC/WorldObjects/QSBSolanumAnimController.cs b/QSB/Animation/NPC/WorldObjects/QSBSolanumAnimController.cs index 776decd2..bec17844 100644 --- a/QSB/Animation/NPC/WorldObjects/QSBSolanumAnimController.cs +++ b/QSB/Animation/NPC/WorldObjects/QSBSolanumAnimController.cs @@ -7,7 +7,7 @@ namespace QSB.Animation.NPC.WorldObjects; /// /// only used to get QSBSolanumTrigger from SolanumAnimController /// -internal class QSBSolanumAnimController : WorldObject +public class QSBSolanumAnimController : WorldObject { private QSBSolanumTrigger _trigger; public QSBSolanumTrigger Trigger => _trigger ??= QSBWorldSync.GetWorldObjects().First(); diff --git a/QSB/Animation/Player/Thrusters/RemoteThrusterFlameController.cs b/QSB/Animation/Player/Thrusters/RemoteThrusterFlameController.cs index 3f3e2280..835fb0b7 100644 --- a/QSB/Animation/Player/Thrusters/RemoteThrusterFlameController.cs +++ b/QSB/Animation/Player/Thrusters/RemoteThrusterFlameController.cs @@ -6,7 +6,7 @@ using UnityEngine; namespace QSB.Animation.Player.Thrusters; [UsedInUnityProject] -internal class RemoteThrusterFlameController : MonoBehaviour +public class RemoteThrusterFlameController : MonoBehaviour { [SerializeField] private Thruster _thruster; diff --git a/QSB/Animation/Player/Thrusters/RemoteThrusterParticlesBehaviour.cs b/QSB/Animation/Player/Thrusters/RemoteThrusterParticlesBehaviour.cs index 535ce1a4..651cd6dc 100644 --- a/QSB/Animation/Player/Thrusters/RemoteThrusterParticlesBehaviour.cs +++ b/QSB/Animation/Player/Thrusters/RemoteThrusterParticlesBehaviour.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.Animation.Player.Thrusters; [UsedInUnityProject] -internal class RemoteThrusterParticlesBehaviour : MonoBehaviour +public class RemoteThrusterParticlesBehaviour : MonoBehaviour { [SerializeField] private Thruster _thruster; diff --git a/QSB/Animation/Player/Thrusters/RemoteThrusterWashController.cs b/QSB/Animation/Player/Thrusters/RemoteThrusterWashController.cs index 0b41d519..4f4eb02d 100644 --- a/QSB/Animation/Player/Thrusters/RemoteThrusterWashController.cs +++ b/QSB/Animation/Player/Thrusters/RemoteThrusterWashController.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.Animation.Player.Thrusters; [UsedInUnityProject] -internal class RemoteThrusterWashController : MonoBehaviour +public class RemoteThrusterWashController : MonoBehaviour { [SerializeField] private float _raycastDistance = 10f; diff --git a/QSB/Animation/Player/Thrusters/ThrusterManager.cs b/QSB/Animation/Player/Thrusters/ThrusterManager.cs index 227fa766..4d149d9c 100644 --- a/QSB/Animation/Player/Thrusters/ThrusterManager.cs +++ b/QSB/Animation/Player/Thrusters/ThrusterManager.cs @@ -4,7 +4,7 @@ using UnityEngine; namespace QSB.Animation.Player.Thrusters; -internal static class ThrusterManager +public static class ThrusterManager { public static void CreateRemotePlayerVFX(PlayerInfo player) { diff --git a/QSB/Audio/Messages/PlayerAudioControllerUpdateHazardDamageMessage.cs b/QSB/Audio/Messages/PlayerAudioControllerUpdateHazardDamageMessage.cs index b7ce4ca5..201a35dc 100644 --- a/QSB/Audio/Messages/PlayerAudioControllerUpdateHazardDamageMessage.cs +++ b/QSB/Audio/Messages/PlayerAudioControllerUpdateHazardDamageMessage.cs @@ -3,7 +3,7 @@ using QSB.Player; namespace QSB.Audio.Messages; -internal class PlayerAudioControllerUpdateHazardDamageMessage : QSBMessage<(uint userID, HazardVolume.HazardType latestHazardType)> +public class PlayerAudioControllerUpdateHazardDamageMessage : QSBMessage<(uint userID, HazardVolume.HazardType latestHazardType)> { public PlayerAudioControllerUpdateHazardDamageMessage((uint userID, HazardVolume.HazardType latestHazardType) data) : base(data) { } diff --git a/QSB/Audio/Patches/PlayerAudioControllerPatches.cs b/QSB/Audio/Patches/PlayerAudioControllerPatches.cs index cf10f823..93ece793 100644 --- a/QSB/Audio/Patches/PlayerAudioControllerPatches.cs +++ b/QSB/Audio/Patches/PlayerAudioControllerPatches.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.Audio.Patches; [HarmonyPatch] -internal class PlayerAudioControllerPatches : QSBPatch +public class PlayerAudioControllerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Audio/Patches/PlayerImpactAudioPatches.cs b/QSB/Audio/Patches/PlayerImpactAudioPatches.cs index 64cfea29..0612a609 100644 --- a/QSB/Audio/Patches/PlayerImpactAudioPatches.cs +++ b/QSB/Audio/Patches/PlayerImpactAudioPatches.cs @@ -6,7 +6,7 @@ using QSB.Player; namespace QSB.Audio.Patches; -internal class PlayerImpactAudioPatches : QSBPatch +public class PlayerImpactAudioPatches : QSBPatch { // Since we patch Start we do it when the mod starts, else it won't run public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; diff --git a/QSB/Audio/Patches/PlayerMovementAudioPatches.cs b/QSB/Audio/Patches/PlayerMovementAudioPatches.cs index ecdfa51b..a1d36614 100644 --- a/QSB/Audio/Patches/PlayerMovementAudioPatches.cs +++ b/QSB/Audio/Patches/PlayerMovementAudioPatches.cs @@ -6,7 +6,7 @@ using QSB.Player; namespace QSB.Audio.Patches; -internal class PlayerMovementAudioPatches : QSBPatch +public class PlayerMovementAudioPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Audio/Patches/ThrusterAudioPatches.cs b/QSB/Audio/Patches/ThrusterAudioPatches.cs index be09b0d9..31d0c3ec 100644 --- a/QSB/Audio/Patches/ThrusterAudioPatches.cs +++ b/QSB/Audio/Patches/ThrusterAudioPatches.cs @@ -5,7 +5,7 @@ using QSB.Patches; namespace QSB.Audio.Patches; -internal class ThrusterAudioPatches : QSBPatch +public class ThrusterAudioPatches : QSBPatch { // Since we patch Start we do it when the mod starts, else it won't run public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; diff --git a/QSB/Audio/QSBAudioSourceOneShotTracker.cs b/QSB/Audio/QSBAudioSourceOneShotTracker.cs index d3c8d615..c9b389e1 100644 --- a/QSB/Audio/QSBAudioSourceOneShotTracker.cs +++ b/QSB/Audio/QSBAudioSourceOneShotTracker.cs @@ -31,7 +31,7 @@ public class QSBAudioSourceOneShotTracker : MonoBehaviour } [HarmonyPatch(typeof(OWAudioSource))] -internal class OneShotTrackerPatches : QSBPatch +public class OneShotTrackerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Audio/QSBJetpackThrusterAudio.cs b/QSB/Audio/QSBJetpackThrusterAudio.cs index 6a93b311..fe1af528 100644 --- a/QSB/Audio/QSBJetpackThrusterAudio.cs +++ b/QSB/Audio/QSBJetpackThrusterAudio.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.Audio; [UsedInUnityProject] -internal class QSBJetpackThrusterAudio : QSBThrusterAudio +public class QSBJetpackThrusterAudio : QSBThrusterAudio { public OWAudioSource _underwaterSource; public OWAudioSource _oxygenSource; diff --git a/QSB/Audio/QSBThrusterAudio.cs b/QSB/Audio/QSBThrusterAudio.cs index 1439e7b3..7eb4fea4 100644 --- a/QSB/Audio/QSBThrusterAudio.cs +++ b/QSB/Audio/QSBThrusterAudio.cs @@ -2,7 +2,7 @@ namespace QSB.Audio; -internal class QSBThrusterAudio : MonoBehaviour +public class QSBThrusterAudio : MonoBehaviour { public OWAudioSource _translationalSource; public OWAudioSource _rotationalSource; diff --git a/QSB/CampfireSync/CampfireManager.cs b/QSB/CampfireSync/CampfireManager.cs index 808c293c..3cbb7ed1 100644 --- a/QSB/CampfireSync/CampfireManager.cs +++ b/QSB/CampfireSync/CampfireManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.CampfireSync; -internal class CampfireManager : WorldObjectManager +public class CampfireManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both; diff --git a/QSB/CampfireSync/Messages/BurnSlideReelMessage.cs b/QSB/CampfireSync/Messages/BurnSlideReelMessage.cs index 4c4f5f7c..7354ba44 100644 --- a/QSB/CampfireSync/Messages/BurnSlideReelMessage.cs +++ b/QSB/CampfireSync/Messages/BurnSlideReelMessage.cs @@ -9,7 +9,7 @@ namespace QSB.CampfireSync.Messages; /// /// TODO: initial state on campfire and item /// -internal class BurnSlideReelMessage : QSBWorldObjectMessage +public class BurnSlideReelMessage : QSBWorldObjectMessage { public BurnSlideReelMessage(QSBCampfire campfire) : base(campfire.ObjectId) { } diff --git a/QSB/CampfireSync/Messages/CampfireStateMessage.cs b/QSB/CampfireSync/Messages/CampfireStateMessage.cs index 8987e334..038687a3 100644 --- a/QSB/CampfireSync/Messages/CampfireStateMessage.cs +++ b/QSB/CampfireSync/Messages/CampfireStateMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.CampfireSync.Messages; -internal class CampfireStateMessage : QSBWorldObjectMessage +public class CampfireStateMessage : QSBWorldObjectMessage { public CampfireStateMessage(Campfire.State state) : base(state) { } diff --git a/QSB/CampfireSync/Patches/CampfirePatches.cs b/QSB/CampfireSync/Patches/CampfirePatches.cs index dda55801..84a4b961 100644 --- a/QSB/CampfireSync/Patches/CampfirePatches.cs +++ b/QSB/CampfireSync/Patches/CampfirePatches.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace QSB.CampfireSync.Patches; [HarmonyPatch] -internal class CampfirePatches : QSBPatch +public class CampfirePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/ClientServerStateSync/ClientStateManager.cs b/QSB/ClientServerStateSync/ClientStateManager.cs index 67b2d953..55f0fed7 100644 --- a/QSB/ClientServerStateSync/ClientStateManager.cs +++ b/QSB/ClientServerStateSync/ClientStateManager.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.ClientServerStateSync; -internal class ClientStateManager : MonoBehaviour +public class ClientStateManager : MonoBehaviour { public static ClientStateManager Instance { get; private set; } diff --git a/QSB/ClientServerStateSync/Messages/ClientStateMessage.cs b/QSB/ClientServerStateSync/Messages/ClientStateMessage.cs index 3d917888..a5be08c3 100644 --- a/QSB/ClientServerStateSync/Messages/ClientStateMessage.cs +++ b/QSB/ClientServerStateSync/Messages/ClientStateMessage.cs @@ -8,7 +8,7 @@ namespace QSB.ClientServerStateSync.Messages; /// /// sets the state both locally and remotely /// -internal class ClientStateMessage : QSBMessage +public class ClientStateMessage : QSBMessage { public ClientStateMessage(ClientState state) : base(state) { } diff --git a/QSB/ClientServerStateSync/Messages/ServerStateMessage.cs b/QSB/ClientServerStateSync/Messages/ServerStateMessage.cs index 4a9a9adb..8502c921 100644 --- a/QSB/ClientServerStateSync/Messages/ServerStateMessage.cs +++ b/QSB/ClientServerStateSync/Messages/ServerStateMessage.cs @@ -5,7 +5,7 @@ namespace QSB.ClientServerStateSync.Messages; /// /// sets the state both locally and remotely /// -internal class ServerStateMessage : QSBMessage +public class ServerStateMessage : QSBMessage { public ServerStateMessage(ServerState state) : base(state) { } diff --git a/QSB/ClientServerStateSync/ServerStateManager.cs b/QSB/ClientServerStateSync/ServerStateManager.cs index 01bf1d47..c6aec330 100644 --- a/QSB/ClientServerStateSync/ServerStateManager.cs +++ b/QSB/ClientServerStateSync/ServerStateManager.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace QSB.ClientServerStateSync; -internal class ServerStateManager : MonoBehaviour +public class ServerStateManager : MonoBehaviour { public static ServerStateManager Instance { get; private set; } diff --git a/QSB/ConversationSync/Messages/EnterRemoteDialogueMessage.cs b/QSB/ConversationSync/Messages/EnterRemoteDialogueMessage.cs index 1c2c39e4..846bb633 100644 --- a/QSB/ConversationSync/Messages/EnterRemoteDialogueMessage.cs +++ b/QSB/ConversationSync/Messages/EnterRemoteDialogueMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.ConversationSync.Messages; -internal class EnterRemoteDialogueMessage : QSBWorldObjectMessage +public class EnterRemoteDialogueMessage : QSBWorldObjectMessage { public EnterRemoteDialogueMessage(int dialogueIndex) : base(dialogueIndex) { } diff --git a/QSB/ConversationSync/Messages/PersistentConditionMessage.cs b/QSB/ConversationSync/Messages/PersistentConditionMessage.cs index 10875f53..0f4c7d6b 100644 --- a/QSB/ConversationSync/Messages/PersistentConditionMessage.cs +++ b/QSB/ConversationSync/Messages/PersistentConditionMessage.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.ConversationSync.Messages; -internal class PersistentConditionMessage : QSBMessage<(string Condition, bool State)> +public class PersistentConditionMessage : QSBMessage<(string Condition, bool State)> { public PersistentConditionMessage(string condition, bool state) : base((condition, state)) { } diff --git a/QSB/ConversationSync/Messages/RemoteDialogueInitialStateMessage.cs b/QSB/ConversationSync/Messages/RemoteDialogueInitialStateMessage.cs index 7f8bcaee..da3b7436 100644 --- a/QSB/ConversationSync/Messages/RemoteDialogueInitialStateMessage.cs +++ b/QSB/ConversationSync/Messages/RemoteDialogueInitialStateMessage.cs @@ -5,7 +5,7 @@ using System.Linq; namespace QSB.ConversationSync.Messages; -internal class RemoteDialogueInitialStateMessage : QSBWorldObjectMessage +public class RemoteDialogueInitialStateMessage : QSBWorldObjectMessage { private bool _inRemoteDialogue; private bool[] _activatedDialogues; diff --git a/QSB/ConversationSync/WorldObjects/QSBRemoteDialogueTrigger.cs b/QSB/ConversationSync/WorldObjects/QSBRemoteDialogueTrigger.cs index 67a31035..3d853cd1 100644 --- a/QSB/ConversationSync/WorldObjects/QSBRemoteDialogueTrigger.cs +++ b/QSB/ConversationSync/WorldObjects/QSBRemoteDialogueTrigger.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.ConversationSync.WorldObjects; -internal class QSBRemoteDialogueTrigger : WorldObject +public class QSBRemoteDialogueTrigger : WorldObject { public override void SendInitialState(uint to) => this.SendMessage(new RemoteDialogueInitialStateMessage(AttachedObject) { To = to }); diff --git a/QSB/DeathSync/Messages/EndLoopMessage.cs b/QSB/DeathSync/Messages/EndLoopMessage.cs index 3a165794..11fa69e7 100644 --- a/QSB/DeathSync/Messages/EndLoopMessage.cs +++ b/QSB/DeathSync/Messages/EndLoopMessage.cs @@ -7,7 +7,7 @@ using QSB.Utility; namespace QSB.DeathSync.Messages; // when all players die -internal class EndLoopMessage : QSBMessage +public class EndLoopMessage : QSBMessage { public override void OnReceiveLocal() => OnReceiveRemote(); diff --git a/QSB/DeathSync/Messages/StartLoopMessage.cs b/QSB/DeathSync/Messages/StartLoopMessage.cs index 8e6924cd..b3147c7a 100644 --- a/QSB/DeathSync/Messages/StartLoopMessage.cs +++ b/QSB/DeathSync/Messages/StartLoopMessage.cs @@ -6,7 +6,7 @@ using QSB.Utility; namespace QSB.DeathSync.Messages; -internal class StartLoopMessage : QSBMessage +public class StartLoopMessage : QSBMessage { public override void OnReceiveLocal() => OnReceiveRemote(); diff --git a/QSB/DeathSync/Patches/MapPatches.cs b/QSB/DeathSync/Patches/MapPatches.cs index 88e96d09..810b7543 100644 --- a/QSB/DeathSync/Patches/MapPatches.cs +++ b/QSB/DeathSync/Patches/MapPatches.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.DeathSync.Patches; [HarmonyPatch] -internal class MapPatches : QSBPatch +public class MapPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.RespawnTime; diff --git a/QSB/EchoesOfTheEye/AirlockSync/AirlockManager.cs b/QSB/EchoesOfTheEye/AirlockSync/AirlockManager.cs index 14a616e9..04d0a95b 100644 --- a/QSB/EchoesOfTheEye/AirlockSync/AirlockManager.cs +++ b/QSB/EchoesOfTheEye/AirlockSync/AirlockManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.EchoesOfTheEye.AirlockSync; -internal class AirlockManager : WorldObjectManager +public class AirlockManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/AirlockSync/Messages/AirlockCallToOpenMessage.cs b/QSB/EchoesOfTheEye/AirlockSync/Messages/AirlockCallToOpenMessage.cs index a0ab7589..1a1de12e 100644 --- a/QSB/EchoesOfTheEye/AirlockSync/Messages/AirlockCallToOpenMessage.cs +++ b/QSB/EchoesOfTheEye/AirlockSync/Messages/AirlockCallToOpenMessage.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.AirlockSync.Messages; -internal class AirlockCallToOpenMessage : QSBWorldObjectMessage +public class AirlockCallToOpenMessage : QSBWorldObjectMessage { public AirlockCallToOpenMessage(bool front) : base(front) { } diff --git a/QSB/EchoesOfTheEye/AirlockSync/Messages/AirlockInitialStateMessage.cs b/QSB/EchoesOfTheEye/AirlockSync/Messages/AirlockInitialStateMessage.cs index 665f6421..bdded84d 100644 --- a/QSB/EchoesOfTheEye/AirlockSync/Messages/AirlockInitialStateMessage.cs +++ b/QSB/EchoesOfTheEye/AirlockSync/Messages/AirlockInitialStateMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.AirlockSync.Messages; -internal class AirlockInitialStateMessage : QSBWorldObjectMessage +public class AirlockInitialStateMessage : QSBWorldObjectMessage { public AirlockInitialStateMessage(bool innerDoorOpen, bool outerDoorOpen, bool pressurized) : base((innerDoorOpen, outerDoorOpen, pressurized)) { } diff --git a/QSB/EchoesOfTheEye/AirlockSync/Patches/AirlockPatches.cs b/QSB/EchoesOfTheEye/AirlockSync/Patches/AirlockPatches.cs index 14bf4e3d..8daaa4a5 100644 --- a/QSB/EchoesOfTheEye/AirlockSync/Patches/AirlockPatches.cs +++ b/QSB/EchoesOfTheEye/AirlockSync/Patches/AirlockPatches.cs @@ -8,7 +8,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.AirlockSync.Patches; -internal class AirlockPatches : QSBPatch +public class AirlockPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/AirlockSync/VariableSync/AirlockVariableSyncer.cs b/QSB/EchoesOfTheEye/AirlockSync/VariableSync/AirlockVariableSyncer.cs index 90f3ced3..2e776263 100644 --- a/QSB/EchoesOfTheEye/AirlockSync/VariableSync/AirlockVariableSyncer.cs +++ b/QSB/EchoesOfTheEye/AirlockSync/VariableSync/AirlockVariableSyncer.cs @@ -4,7 +4,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.AirlockSync.VariableSync; -internal class AirlockVariableSyncer : RotatingElementsVariableSyncer +public class AirlockVariableSyncer : RotatingElementsVariableSyncer { protected override Transform[] RotatingElements => WorldObject.AttachedObject._rotatingElements; diff --git a/QSB/EchoesOfTheEye/AirlockSync/WorldObjects/QSBAirlockInterface.cs b/QSB/EchoesOfTheEye/AirlockSync/WorldObjects/QSBAirlockInterface.cs index 93350633..d7354315 100644 --- a/QSB/EchoesOfTheEye/AirlockSync/WorldObjects/QSBAirlockInterface.cs +++ b/QSB/EchoesOfTheEye/AirlockSync/WorldObjects/QSBAirlockInterface.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.AirlockSync.WorldObjects; -internal class QSBAirlockInterface : QSBRotatingElements +public class QSBAirlockInterface : QSBRotatingElements { protected override IEnumerable LightSensors => AttachedObject._lightSensors; diff --git a/QSB/EchoesOfTheEye/AirlockSync/WorldObjects/QSBGhostAirlock.cs b/QSB/EchoesOfTheEye/AirlockSync/WorldObjects/QSBGhostAirlock.cs index 711db9b5..b279f143 100644 --- a/QSB/EchoesOfTheEye/AirlockSync/WorldObjects/QSBGhostAirlock.cs +++ b/QSB/EchoesOfTheEye/AirlockSync/WorldObjects/QSBGhostAirlock.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.AirlockSync.WorldObjects; -internal class QSBGhostAirlock : WorldObject +public class QSBGhostAirlock : WorldObject { public override void SendInitialState(uint to) => this.SendMessage( diff --git a/QSB/EchoesOfTheEye/DreamLantern/Messages/SetConcealedMessage.cs b/QSB/EchoesOfTheEye/DreamLantern/Messages/SetConcealedMessage.cs index 802606a6..17b79e19 100644 --- a/QSB/EchoesOfTheEye/DreamLantern/Messages/SetConcealedMessage.cs +++ b/QSB/EchoesOfTheEye/DreamLantern/Messages/SetConcealedMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.DreamLantern.Messages; -internal class SetConcealedMessage : QSBWorldObjectMessage +public class SetConcealedMessage : QSBWorldObjectMessage { public SetConcealedMessage(bool concealed) : base(concealed) { } diff --git a/QSB/EchoesOfTheEye/DreamLantern/Messages/SetFocusMessage.cs b/QSB/EchoesOfTheEye/DreamLantern/Messages/SetFocusMessage.cs index 762820f7..c114e050 100644 --- a/QSB/EchoesOfTheEye/DreamLantern/Messages/SetFocusMessage.cs +++ b/QSB/EchoesOfTheEye/DreamLantern/Messages/SetFocusMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.DreamLantern.Messages; -internal class SetFocusMessage : QSBWorldObjectMessage +public class SetFocusMessage : QSBWorldObjectMessage { public SetFocusMessage(float focus) : base(focus) { } diff --git a/QSB/EchoesOfTheEye/DreamLantern/Messages/SetLitMessage.cs b/QSB/EchoesOfTheEye/DreamLantern/Messages/SetLitMessage.cs index 0cd54f89..77b81412 100644 --- a/QSB/EchoesOfTheEye/DreamLantern/Messages/SetLitMessage.cs +++ b/QSB/EchoesOfTheEye/DreamLantern/Messages/SetLitMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.DreamLantern.Messages; -internal class SetLitMessage : QSBWorldObjectMessage +public class SetLitMessage : QSBWorldObjectMessage { public SetLitMessage(bool lit) : base(lit) { } diff --git a/QSB/EchoesOfTheEye/DreamLantern/Messages/SetRangeMessage.cs b/QSB/EchoesOfTheEye/DreamLantern/Messages/SetRangeMessage.cs index b5e7cdb9..d6cd0281 100644 --- a/QSB/EchoesOfTheEye/DreamLantern/Messages/SetRangeMessage.cs +++ b/QSB/EchoesOfTheEye/DreamLantern/Messages/SetRangeMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.DreamLantern.Messages; -internal class SetRangeMessage : QSBWorldObjectMessage +public class SetRangeMessage : QSBWorldObjectMessage { public SetRangeMessage(float minRange, float maxRange) : base((minRange, maxRange)) { } diff --git a/QSB/EchoesOfTheEye/DreamLantern/Patches/DreamLanternPatches.cs b/QSB/EchoesOfTheEye/DreamLantern/Patches/DreamLanternPatches.cs index f2ed4886..14535bfa 100644 --- a/QSB/EchoesOfTheEye/DreamLantern/Patches/DreamLanternPatches.cs +++ b/QSB/EchoesOfTheEye/DreamLantern/Patches/DreamLanternPatches.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.DreamLantern.Patches; -internal class DreamLanternPatches : QSBPatch +public class DreamLanternPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/DreamObjectProjectors/Messages/ProjectorLitMessage.cs b/QSB/EchoesOfTheEye/DreamObjectProjectors/Messages/ProjectorLitMessage.cs index 3715abd1..329b6aef 100644 --- a/QSB/EchoesOfTheEye/DreamObjectProjectors/Messages/ProjectorLitMessage.cs +++ b/QSB/EchoesOfTheEye/DreamObjectProjectors/Messages/ProjectorLitMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.DreamObjectProjectors.Messages; -internal class ProjectorLitMessage : QSBWorldObjectMessage +public class ProjectorLitMessage : QSBWorldObjectMessage { public ProjectorLitMessage(bool lit) : base(lit) { } diff --git a/QSB/EchoesOfTheEye/DreamObjectProjectors/Patches/ProjectorPatches.cs b/QSB/EchoesOfTheEye/DreamObjectProjectors/Patches/ProjectorPatches.cs index 70234d85..e4254548 100644 --- a/QSB/EchoesOfTheEye/DreamObjectProjectors/Patches/ProjectorPatches.cs +++ b/QSB/EchoesOfTheEye/DreamObjectProjectors/Patches/ProjectorPatches.cs @@ -7,7 +7,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.DreamObjectProjectors.Patches; -internal class ProjectorPatches : QSBPatch +public class ProjectorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/DreamObjectProjectors/ProjectorManager.cs b/QSB/EchoesOfTheEye/DreamObjectProjectors/ProjectorManager.cs index 87787c6e..873f26dd 100644 --- a/QSB/EchoesOfTheEye/DreamObjectProjectors/ProjectorManager.cs +++ b/QSB/EchoesOfTheEye/DreamObjectProjectors/ProjectorManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.EchoesOfTheEye.DreamObjectProjectors; -internal class ProjectorManager : WorldObjectManager +public class ProjectorManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/DreamWorld/Messages/EnterDreamWorldMessage.cs b/QSB/EchoesOfTheEye/DreamWorld/Messages/EnterDreamWorldMessage.cs index 7bd9b6ad..51fc353c 100644 --- a/QSB/EchoesOfTheEye/DreamWorld/Messages/EnterDreamWorldMessage.cs +++ b/QSB/EchoesOfTheEye/DreamWorld/Messages/EnterDreamWorldMessage.cs @@ -11,7 +11,7 @@ namespace QSB.EchoesOfTheEye.DreamWorld.Messages; /// /// todo SendInitialState /// -internal class EnterDreamWorldMessage : QSBWorldObjectMessage +public class EnterDreamWorldMessage : QSBWorldObjectMessage { static EnterDreamWorldMessage() { diff --git a/QSB/EchoesOfTheEye/DreamWorld/Messages/ExitDreamWorldMessage.cs b/QSB/EchoesOfTheEye/DreamWorld/Messages/ExitDreamWorldMessage.cs index 373e25d3..4c976157 100644 --- a/QSB/EchoesOfTheEye/DreamWorld/Messages/ExitDreamWorldMessage.cs +++ b/QSB/EchoesOfTheEye/DreamWorld/Messages/ExitDreamWorldMessage.cs @@ -9,7 +9,7 @@ namespace QSB.EchoesOfTheEye.DreamWorld.Messages; /// /// todo SendInitialState /// -internal class ExitDreamWorldMessage : QSBMessage +public class ExitDreamWorldMessage : QSBMessage { static ExitDreamWorldMessage() { diff --git a/QSB/EchoesOfTheEye/EclipseCodeControllers/CodeControllerManager.cs b/QSB/EchoesOfTheEye/EclipseCodeControllers/CodeControllerManager.cs index acc272b0..7c768dfe 100644 --- a/QSB/EchoesOfTheEye/EclipseCodeControllers/CodeControllerManager.cs +++ b/QSB/EchoesOfTheEye/EclipseCodeControllers/CodeControllerManager.cs @@ -10,7 +10,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.EclipseCodeControllers; -internal class CodeControllerManager : WorldObjectManager +public class CodeControllerManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/EclipseCodeControllers/CodeControllerRemoteUpdater.cs b/QSB/EchoesOfTheEye/EclipseCodeControllers/CodeControllerRemoteUpdater.cs index e22e66db..e21ab44e 100644 --- a/QSB/EchoesOfTheEye/EclipseCodeControllers/CodeControllerRemoteUpdater.cs +++ b/QSB/EchoesOfTheEye/EclipseCodeControllers/CodeControllerRemoteUpdater.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.EclipseCodeControllers; -internal class CodeControllerRemoteUpdater : MonoBehaviour +public class CodeControllerRemoteUpdater : MonoBehaviour { private QSBEclipseCodeController _attachedWorldObject; private EclipseCodeController4 _codeController => _attachedWorldObject.AttachedObject; diff --git a/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/InitialStateMessage.cs b/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/InitialStateMessage.cs index f492a7fb..f87ac119 100644 --- a/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/InitialStateMessage.cs +++ b/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/InitialStateMessage.cs @@ -5,7 +5,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.EclipseCodeControllers.Messages; -internal class InitialStateMessage : QSBWorldObjectMessage +public class InitialStateMessage : QSBWorldObjectMessage { private int _selectedDial; private int[] _dialSelectedSymbols; diff --git a/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/MoveSelectorMessage.cs b/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/MoveSelectorMessage.cs index 4b238098..2a974129 100644 --- a/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/MoveSelectorMessage.cs +++ b/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/MoveSelectorMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.EclipseCodeControllers.Messages; -internal class MoveSelectorMessage : QSBWorldObjectMessage +public class MoveSelectorMessage : QSBWorldObjectMessage { public MoveSelectorMessage(int selectedDial, bool up) : base((selectedDial, up)) { } diff --git a/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/RotateDialMessage.cs b/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/RotateDialMessage.cs index f8403fe5..a1b502a9 100644 --- a/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/RotateDialMessage.cs +++ b/QSB/EchoesOfTheEye/EclipseCodeControllers/Messages/RotateDialMessage.cs @@ -4,7 +4,7 @@ using QSB.Utility; namespace QSB.EchoesOfTheEye.EclipseCodeControllers.Messages; -internal class RotateDialMessage : QSBWorldObjectMessage +public class RotateDialMessage : QSBWorldObjectMessage { public RotateDialMessage(bool right, int selectedDial) : base((right, selectedDial)) { } diff --git a/QSB/EchoesOfTheEye/EclipseCodeControllers/Patches/CodeControllerPatches.cs b/QSB/EchoesOfTheEye/EclipseCodeControllers/Patches/CodeControllerPatches.cs index ed8905d4..ae8271e0 100644 --- a/QSB/EchoesOfTheEye/EclipseCodeControllers/Patches/CodeControllerPatches.cs +++ b/QSB/EchoesOfTheEye/EclipseCodeControllers/Patches/CodeControllerPatches.cs @@ -13,7 +13,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.EclipseCodeControllers.Patches; -internal class CodeControllerPatches : QSBPatch +public class CodeControllerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/EclipseDoors/DoorManager.cs b/QSB/EchoesOfTheEye/EclipseDoors/DoorManager.cs index 4b25b34c..eb47a565 100644 --- a/QSB/EchoesOfTheEye/EclipseDoors/DoorManager.cs +++ b/QSB/EchoesOfTheEye/EclipseDoors/DoorManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.EchoesOfTheEye.EclipseDoors; -internal class DoorManager : WorldObjectManager +public class DoorManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/EclipseDoors/VariableSync/EclipseDoorVariableSyncer.cs b/QSB/EchoesOfTheEye/EclipseDoors/VariableSync/EclipseDoorVariableSyncer.cs index 34165780..ea9e16cc 100644 --- a/QSB/EchoesOfTheEye/EclipseDoors/VariableSync/EclipseDoorVariableSyncer.cs +++ b/QSB/EchoesOfTheEye/EclipseDoors/VariableSync/EclipseDoorVariableSyncer.cs @@ -3,7 +3,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.EclipseDoors.VariableSync; -internal class EclipseDoorVariableSyncer : RotatingElementsVariableSyncer +public class EclipseDoorVariableSyncer : RotatingElementsVariableSyncer { protected override Transform[] RotatingElements => WorldObject.AttachedObject._rotatingElements; } diff --git a/QSB/EchoesOfTheEye/EclipseDoors/WorldObjects/QSBEclipseDoorController.cs b/QSB/EchoesOfTheEye/EclipseDoors/WorldObjects/QSBEclipseDoorController.cs index 0ba30766..b57aaebc 100644 --- a/QSB/EchoesOfTheEye/EclipseDoors/WorldObjects/QSBEclipseDoorController.cs +++ b/QSB/EchoesOfTheEye/EclipseDoors/WorldObjects/QSBEclipseDoorController.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.EclipseDoors.WorldObjects; -internal class QSBEclipseDoorController : QSBRotatingElements +public class QSBEclipseDoorController : QSBRotatingElements { protected override IEnumerable LightSensors => AttachedObject._lightSensors; diff --git a/QSB/EchoesOfTheEye/EclipseElevators/EclipseElevatorManager.cs b/QSB/EchoesOfTheEye/EclipseElevators/EclipseElevatorManager.cs index d3144ad6..be4ba453 100644 --- a/QSB/EchoesOfTheEye/EclipseElevators/EclipseElevatorManager.cs +++ b/QSB/EchoesOfTheEye/EclipseElevators/EclipseElevatorManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.EchoesOfTheEye.EclipseElevators; -internal class EclipseElevatorManager : WorldObjectManager +public class EclipseElevatorManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/EclipseElevators/Messages/CallElevatorMessage.cs b/QSB/EchoesOfTheEye/EclipseElevators/Messages/CallElevatorMessage.cs index 6c303332..2e59c175 100644 --- a/QSB/EchoesOfTheEye/EclipseElevators/Messages/CallElevatorMessage.cs +++ b/QSB/EchoesOfTheEye/EclipseElevators/Messages/CallElevatorMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.EclipseElevators.Messages; -internal class CallElevatorMessage : QSBWorldObjectMessage +public class CallElevatorMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() { diff --git a/QSB/EchoesOfTheEye/EclipseElevators/Patches/EclipseElevatorPatches.cs b/QSB/EchoesOfTheEye/EclipseElevators/Patches/EclipseElevatorPatches.cs index 4bc5487f..00be55aa 100644 --- a/QSB/EchoesOfTheEye/EclipseElevators/Patches/EclipseElevatorPatches.cs +++ b/QSB/EchoesOfTheEye/EclipseElevators/Patches/EclipseElevatorPatches.cs @@ -7,7 +7,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.EclipseElevators.Patches; -internal class EclipseElevatorPatches : QSBPatch +public class EclipseElevatorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/EclipseElevators/VariableSync/EclipseElevatorVariableSyncer.cs b/QSB/EchoesOfTheEye/EclipseElevators/VariableSync/EclipseElevatorVariableSyncer.cs index 460702f4..7874adbd 100644 --- a/QSB/EchoesOfTheEye/EclipseElevators/VariableSync/EclipseElevatorVariableSyncer.cs +++ b/QSB/EchoesOfTheEye/EclipseElevators/VariableSync/EclipseElevatorVariableSyncer.cs @@ -3,7 +3,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.EclipseElevators.VariableSync; -internal class EclipseElevatorVariableSyncer : RotatingElementsVariableSyncer +public class EclipseElevatorVariableSyncer : RotatingElementsVariableSyncer { protected override Transform[] RotatingElements => WorldObject.AttachedObject._rotatingElements; } diff --git a/QSB/EchoesOfTheEye/EclipseElevators/WorldObjects/QSBEclipseElevatorController.cs b/QSB/EchoesOfTheEye/EclipseElevators/WorldObjects/QSBEclipseElevatorController.cs index 8f81fcb0..cfc8b9a2 100644 --- a/QSB/EchoesOfTheEye/EclipseElevators/WorldObjects/QSBEclipseElevatorController.cs +++ b/QSB/EchoesOfTheEye/EclipseElevators/WorldObjects/QSBEclipseElevatorController.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.EclipseElevators.WorldObjects; -internal class QSBEclipseElevatorController : QSBRotatingElements +public class QSBEclipseElevatorController : QSBRotatingElements { protected override IEnumerable LightSensors => AttachedObject._lightSensors; diff --git a/QSB/EchoesOfTheEye/EclipseElevators/WorldObjects/QSBElevatorDestination.cs b/QSB/EchoesOfTheEye/EclipseElevators/WorldObjects/QSBElevatorDestination.cs index 444eea2b..6e3db427 100644 --- a/QSB/EchoesOfTheEye/EclipseElevators/WorldObjects/QSBElevatorDestination.cs +++ b/QSB/EchoesOfTheEye/EclipseElevators/WorldObjects/QSBElevatorDestination.cs @@ -2,7 +2,7 @@ namespace QSB.EchoesOfTheEye.EclipseElevators.WorldObjects; -internal class QSBElevatorDestination : WorldObject +public class QSBElevatorDestination : WorldObject { public override void SendInitialState(uint to) { diff --git a/QSB/EchoesOfTheEye/Ghosts/Actions/QSBChaseAction.cs b/QSB/EchoesOfTheEye/Ghosts/Actions/QSBChaseAction.cs index ba6626af..cd65e984 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Actions/QSBChaseAction.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Actions/QSBChaseAction.cs @@ -12,7 +12,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Actions; -internal class QSBChaseAction : QSBGhostAction +public class QSBChaseAction : QSBGhostAction { private float _lastScreamTime; diff --git a/QSB/EchoesOfTheEye/Ghosts/Actions/QSBGrabAction.cs b/QSB/EchoesOfTheEye/Ghosts/Actions/QSBGrabAction.cs index 8888a153..dd26494a 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Actions/QSBGrabAction.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Actions/QSBGrabAction.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.Ghosts.Actions; -internal class QSBGrabAction : QSBGhostAction +public class QSBGrabAction : QSBGhostAction { private bool _playerIsGrabbed; private bool _grabAnimComplete; diff --git a/QSB/EchoesOfTheEye/Ghosts/GhostManager.cs b/QSB/EchoesOfTheEye/Ghosts/GhostManager.cs index f5d48e37..64f5dbcf 100644 --- a/QSB/EchoesOfTheEye/Ghosts/GhostManager.cs +++ b/QSB/EchoesOfTheEye/Ghosts/GhostManager.cs @@ -11,7 +11,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts; -internal class GhostManager : WorldObjectManager +public class GhostManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeActionMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeActionMessage.cs index 98cecffd..18955541 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeActionMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeActionMessage.cs @@ -4,7 +4,7 @@ using QSB.Utility; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class ChangeActionMessage : QSBWorldObjectMessage +public class ChangeActionMessage : QSBWorldObjectMessage { public ChangeActionMessage(GhostAction.Name name) : base(name) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeInterestedPlayerMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeInterestedPlayerMessage.cs index aa0532a5..2c4a1faf 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeInterestedPlayerMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeInterestedPlayerMessage.cs @@ -5,7 +5,7 @@ using QSB.Utility; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class ChangeInterestedPlayerMessage : QSBWorldObjectMessage +public class ChangeInterestedPlayerMessage : QSBWorldObjectMessage { public ChangeInterestedPlayerMessage(uint playerId) : base(playerId) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeNodeMapMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeNodeMapMessage.cs index 11d19724..14fad9f7 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeNodeMapMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeNodeMapMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class ChangeNodeMapMessage : QSBWorldObjectMessage +public class ChangeNodeMapMessage : QSBWorldObjectMessage { public ChangeNodeMapMessage(int nodeMapIndex) : base(nodeMapIndex) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/ContactTriggerMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/ContactTriggerMessage.cs index 29d07d14..92b35254 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/ContactTriggerMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/ContactTriggerMessage.cs @@ -4,7 +4,7 @@ using QSB.Player; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class ContactTriggerMessage : QSBWorldObjectMessage +public class ContactTriggerMessage : QSBWorldObjectMessage { public ContactTriggerMessage(bool inContact) : base(inContact) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/FaceLocalPositionMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/FaceLocalPositionMessage.cs index 7a74ebe5..1663be02 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/FaceLocalPositionMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/FaceLocalPositionMessage.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class FaceLocalPositionMessage : QSBWorldObjectMessage +public class FaceLocalPositionMessage : QSBWorldObjectMessage { public FaceLocalPositionMessage(Vector3 localPos, float degPerSecond, float turnAccel) : base((localPos, degPerSecond, turnAccel)) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/FaceNodeListMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/FaceNodeListMessage.cs index 10cda893..6a6d0007 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/FaceNodeListMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/FaceNodeListMessage.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class FaceNodeListMessage : QSBWorldObjectMessage +public class FaceNodeListMessage : QSBWorldObjectMessage { public FaceNodeListMessage(GhostNode[] nodeList, int numNodes, TurnSpeed turnSpeed, float nodeDelay, bool autoFocus) : base(Process(nodeList, numNodes, turnSpeed, nodeDelay, autoFocus)) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/FaceNodeMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/FaceNodeMessage.cs index 80d0cc13..81255aea 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/FaceNodeMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/FaceNodeMessage.cs @@ -8,7 +8,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class FaceNodeMessage : QSBWorldObjectMessage +public class FaceNodeMessage : QSBWorldObjectMessage { public FaceNodeMessage(GhostNode node, TurnSpeed turnSpeed, float nodeDelay, bool autoFocusLantern) : base(Process(node, turnSpeed, nodeDelay, autoFocusLantern)) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/FacePlayerMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/FacePlayerMessage.cs index fe76f310..8acf02b8 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/FacePlayerMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/FacePlayerMessage.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class FacePlayerMessage : QSBWorldObjectMessage +public class FacePlayerMessage : QSBWorldObjectMessage { public FacePlayerMessage(uint playerId, TurnSpeed turnSpeed) : base((playerId, turnSpeed)) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/FaceVelocityMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/FaceVelocityMessage.cs index b004e23f..f9062d73 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/FaceVelocityMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/FaceVelocityMessage.cs @@ -4,7 +4,7 @@ using QSB.Utility; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class FaceVelocityMessage : QSBWorldObjectMessage +public class FaceVelocityMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() { diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/GhostAnimationTriggerMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/GhostAnimationTriggerMessage.cs index 335e1457..4c87b196 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/GhostAnimationTriggerMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/GhostAnimationTriggerMessage.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class GhostAnimationTriggerMessage : QSBWorldObjectMessage +public class GhostAnimationTriggerMessage : QSBWorldObjectMessage { public GhostAnimationTriggerMessage(GhostAnimationType type) : base(type) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/GrabRemotePlayerMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/GrabRemotePlayerMessage.cs index ce698d4c..107619d7 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/GrabRemotePlayerMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/GrabRemotePlayerMessage.cs @@ -10,7 +10,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class GrabRemotePlayerMessage : QSBWorldObjectMessage +public class GrabRemotePlayerMessage : QSBWorldObjectMessage { public GrabRemotePlayerMessage(float speed, uint playerId) : base((speed, playerId)) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/MoveToLocalPositionMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/MoveToLocalPositionMessage.cs index e588ab09..733143cf 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/MoveToLocalPositionMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/MoveToLocalPositionMessage.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class MoveToLocalPositionMessage : QSBWorldObjectMessage +public class MoveToLocalPositionMessage : QSBWorldObjectMessage { public MoveToLocalPositionMessage(Vector3 localPos, float speed, float accel) : base((localPos, speed, accel)) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/PathfindLocalPositionMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/PathfindLocalPositionMessage.cs index 6b4908c0..b5c921d7 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/PathfindLocalPositionMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/PathfindLocalPositionMessage.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class PathfindLocalPositionMessage : QSBWorldObjectMessage { public PathfindLocalPositionMessage(Vector3 localPosition, float speed, float acceleration) : diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/PathfindNodeMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/PathfindNodeMessage.cs index ee1d571f..719a8eb8 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/PathfindNodeMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/PathfindNodeMessage.cs @@ -7,7 +7,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class PathfindNodeMessage : QSBWorldObjectMessage +public class PathfindNodeMessage : QSBWorldObjectMessage { public PathfindNodeMessage(GhostNode node, float speed, float acceleration) : base(Process(node, speed, acceleration)) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/PlayVoiceAudioMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/PlayVoiceAudioMessage.cs index ad8937e8..d1209433 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/PlayVoiceAudioMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/PlayVoiceAudioMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class PlayVoiceAudioMessage : QSBWorldObjectMessage +public class PlayVoiceAudioMessage : QSBWorldObjectMessage { public PlayVoiceAudioMessage(AudioType audioType, float volumeScale, bool near) : base((audioType, volumeScale, near)) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/SetMovementStyleMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/SetMovementStyleMessage.cs index 185be64f..e2ed4ac4 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/SetMovementStyleMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/SetMovementStyleMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class SetMovementStyleMessage : QSBWorldObjectMessage +public class SetMovementStyleMessage : QSBWorldObjectMessage { public SetMovementStyleMessage(GhostEffects.MovementStyle style) : base(style) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/SpinMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/SpinMessage.cs index db6df994..1490708e 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/SpinMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/SpinMessage.cs @@ -4,7 +4,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class SpinMessage : QSBWorldObjectMessage +public class SpinMessage : QSBWorldObjectMessage { public SpinMessage(TurnSpeed turnSpeed) : base(turnSpeed) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/StopFacingMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/StopFacingMessage.cs index da6397c5..f13c4544 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/StopFacingMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/StopFacingMessage.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class StopFacingMessage : QSBWorldObjectMessage +public class StopFacingMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() { diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/StopMovingMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/StopMovingMessage.cs index 5411dd3c..5fc5464b 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/StopMovingMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/StopMovingMessage.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class StopMovingMessage : QSBWorldObjectMessage +public class StopMovingMessage : QSBWorldObjectMessage { public StopMovingMessage(bool instant) : base(instant) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/Zone2ElevatorStateMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/Zone2ElevatorStateMessage.cs index c51ba9cc..d5ede023 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/Zone2ElevatorStateMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/Zone2ElevatorStateMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.Ghosts.Messages; -internal class Zone2ElevatorStateMessage : QSBMessage<(int index, Zone2ElevatorState state)> +public class Zone2ElevatorStateMessage : QSBMessage<(int index, Zone2ElevatorState state)> { public Zone2ElevatorStateMessage(int index, Zone2ElevatorState state) : base((index, state)) { } diff --git a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostBrainPatches.cs b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostBrainPatches.cs index fb813d42..9996b68b 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostBrainPatches.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostBrainPatches.cs @@ -14,7 +14,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Patches; [HarmonyPatch(typeof(GhostBrain))] -internal class GhostBrainPatches : QSBPatch +public class GhostBrainPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostControllerPatches.cs b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostControllerPatches.cs index 7b5552f2..c37cecad 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostControllerPatches.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostControllerPatches.cs @@ -16,7 +16,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.Ghosts.Patches; [HarmonyPatch(typeof(GhostController))] -internal class GhostControllerPatches : QSBPatch +public class GhostControllerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostEffectsPatches.cs b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostEffectsPatches.cs index 2aabb485..3c0b5e31 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostEffectsPatches.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostEffectsPatches.cs @@ -15,7 +15,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Patches; [HarmonyPatch(typeof(GhostEffects))] -internal class GhostEffectsPatches : QSBPatch +public class GhostEffectsPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostHotelDirectorPatches.cs b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostHotelDirectorPatches.cs index c6111a11..c011964b 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostHotelDirectorPatches.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostHotelDirectorPatches.cs @@ -7,7 +7,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.Ghosts.Patches; [HarmonyPatch(typeof(GhostHotelDirector))] -internal class GhostHotelDirectorPatches : QSBPatch +public class GhostHotelDirectorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostPartyDirectorPatches.cs b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostPartyDirectorPatches.cs index 5355d744..43a98e18 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostPartyDirectorPatches.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostPartyDirectorPatches.cs @@ -13,7 +13,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Patches; [HarmonyPatch(typeof(GhostPartyDirector))] -internal class GhostPartyDirectorPatches : QSBPatch +public class GhostPartyDirectorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostPartyPathDirectorPatches.cs b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostPartyPathDirectorPatches.cs index 648ad3a4..58ace11f 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostPartyPathDirectorPatches.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostPartyPathDirectorPatches.cs @@ -9,7 +9,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Patches; [HarmonyPatch(typeof(GhostPartyPathDirector))] -internal class GhostPartyPathDirectorPatches : QSBPatch +public class GhostPartyPathDirectorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostSensorsPatches.cs b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostSensorsPatches.cs index 694fb4bb..2c8df4d6 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostSensorsPatches.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostSensorsPatches.cs @@ -14,7 +14,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Patches; [HarmonyPatch(typeof(GhostSensors))] -internal class GhostSensorsPatches : QSBPatch +public class GhostSensorsPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostZone2DirectorPatches.cs b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostZone2DirectorPatches.cs index e4979a08..087b0224 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostZone2DirectorPatches.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostZone2DirectorPatches.cs @@ -11,7 +11,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Ghosts.Patches; -internal class GhostZone2DirectorPatches : QSBPatch +public class GhostZone2DirectorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/Ghosts/WorldObjects/QSBGhostNodeMap.cs b/QSB/EchoesOfTheEye/Ghosts/WorldObjects/QSBGhostNodeMap.cs index 5226c33e..48c5b36c 100644 --- a/QSB/EchoesOfTheEye/Ghosts/WorldObjects/QSBGhostNodeMap.cs +++ b/QSB/EchoesOfTheEye/Ghosts/WorldObjects/QSBGhostNodeMap.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.Ghosts.WorldObjects; -internal class QSBGhostNodeMap : WorldObject +public class QSBGhostNodeMap : WorldObject { public override void SendInitialState(uint to) { diff --git a/QSB/EchoesOfTheEye/Ghosts/WorldObjects/QSBPrisonerEffects.cs b/QSB/EchoesOfTheEye/Ghosts/WorldObjects/QSBPrisonerEffects.cs index c4f4f465..0891a881 100644 --- a/QSB/EchoesOfTheEye/Ghosts/WorldObjects/QSBPrisonerEffects.cs +++ b/QSB/EchoesOfTheEye/Ghosts/WorldObjects/QSBPrisonerEffects.cs @@ -2,7 +2,7 @@ namespace QSB.EchoesOfTheEye.Ghosts.WorldObjects; -internal class QSBPrisonerEffects : QSBGhostEffects +public class QSBPrisonerEffects : QSBGhostEffects { public override void PlaySleepAnimation(bool remote = false) { diff --git a/QSB/EchoesOfTheEye/LightSensorSync/LightSensorManager.cs b/QSB/EchoesOfTheEye/LightSensorSync/LightSensorManager.cs index 198bc454..4fa61dc6 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/LightSensorManager.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/LightSensorManager.cs @@ -7,7 +7,7 @@ using System.Threading; namespace QSB.EchoesOfTheEye.LightSensorSync; -internal class LightSensorManager : WorldObjectManager +public class LightSensorManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/LightSensorSync/Messages/IlluminatingLanternsMessage.cs b/QSB/EchoesOfTheEye/LightSensorSync/Messages/IlluminatingLanternsMessage.cs index a9b657ad..9fa77ec4 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/Messages/IlluminatingLanternsMessage.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/Messages/IlluminatingLanternsMessage.cs @@ -7,7 +7,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.LightSensorSync.Messages; -internal class IlluminatingLanternsMessage : QSBWorldObjectMessage +public class IlluminatingLanternsMessage : QSBWorldObjectMessage { public IlluminatingLanternsMessage(IEnumerable lanterns) : base(lanterns.Select(x => x.GetWorldObject().ObjectId).ToArray()) { } diff --git a/QSB/EchoesOfTheEye/LightSensorSync/Messages/PlayerIlluminatingLanternsMessage.cs b/QSB/EchoesOfTheEye/LightSensorSync/Messages/PlayerIlluminatingLanternsMessage.cs index 40bde54f..707d6515 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/Messages/PlayerIlluminatingLanternsMessage.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/Messages/PlayerIlluminatingLanternsMessage.cs @@ -7,7 +7,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.LightSensorSync.Messages; -internal class PlayerIlluminatingLanternsMessage : QSBMessage<(uint playerId, int[] lanterns)> +public class PlayerIlluminatingLanternsMessage : QSBMessage<(uint playerId, int[] lanterns)> { public PlayerIlluminatingLanternsMessage(uint playerId, IEnumerable lanterns) : base(( diff --git a/QSB/EchoesOfTheEye/LightSensorSync/Messages/PlayerSetIlluminatedMessage.cs b/QSB/EchoesOfTheEye/LightSensorSync/Messages/PlayerSetIlluminatedMessage.cs index 09e3f171..710e7666 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/Messages/PlayerSetIlluminatedMessage.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/Messages/PlayerSetIlluminatedMessage.cs @@ -3,7 +3,7 @@ using QSB.Player; namespace QSB.EchoesOfTheEye.LightSensorSync.Messages; -internal class PlayerSetIlluminatedMessage : QSBMessage<(uint playerId, bool illuminated)> +public class PlayerSetIlluminatedMessage : QSBMessage<(uint playerId, bool illuminated)> { public PlayerSetIlluminatedMessage(uint playerId, bool illuminated) : base((playerId, illuminated)) { } diff --git a/QSB/EchoesOfTheEye/LightSensorSync/Messages/SetIlluminatedMessage.cs b/QSB/EchoesOfTheEye/LightSensorSync/Messages/SetIlluminatedMessage.cs index 74e517d6..6f773856 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/Messages/SetIlluminatedMessage.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/Messages/SetIlluminatedMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.LightSensorSync.Messages; -internal class SetIlluminatedMessage : QSBWorldObjectMessage +public class SetIlluminatedMessage : QSBWorldObjectMessage { public SetIlluminatedMessage(bool illuminated) : base(illuminated) { } diff --git a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs index d33a14f1..f1f85380 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs @@ -21,7 +21,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.LightSensorSync.Patches; [HarmonyPatch(typeof(SingleLightSensor))] -internal class LightSensorPatches : QSBPatch +public class LightSensorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/LightSensorSync/WorldObjects/QSBLightSensor.cs b/QSB/EchoesOfTheEye/LightSensorSync/WorldObjects/QSBLightSensor.cs index 65cd9386..d509a854 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/WorldObjects/QSBLightSensor.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/WorldObjects/QSBLightSensor.cs @@ -14,7 +14,7 @@ using System.Threading; namespace QSB.EchoesOfTheEye.LightSensorSync.WorldObjects; -internal class QSBLightSensor : OwnedWorldObject +public class QSBLightSensor : OwnedWorldObject { internal bool _locallyIlluminated; diff --git a/QSB/EchoesOfTheEye/PictureFrameDoors/Messages/PictureFrameDoorMessage.cs b/QSB/EchoesOfTheEye/PictureFrameDoors/Messages/PictureFrameDoorMessage.cs index 857bd001..fcaf479d 100644 --- a/QSB/EchoesOfTheEye/PictureFrameDoors/Messages/PictureFrameDoorMessage.cs +++ b/QSB/EchoesOfTheEye/PictureFrameDoors/Messages/PictureFrameDoorMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.PictureFrameDoors.Messages; -internal class PictureFrameDoorMessage : QSBWorldObjectMessage +public class PictureFrameDoorMessage : QSBWorldObjectMessage { public PictureFrameDoorMessage(bool open) : base(open) { } diff --git a/QSB/EchoesOfTheEye/PictureFrameDoors/Patches/PictureFrameDoorInterfacePatches.cs b/QSB/EchoesOfTheEye/PictureFrameDoors/Patches/PictureFrameDoorInterfacePatches.cs index 7023da4b..1eb7ea02 100644 --- a/QSB/EchoesOfTheEye/PictureFrameDoors/Patches/PictureFrameDoorInterfacePatches.cs +++ b/QSB/EchoesOfTheEye/PictureFrameDoors/Patches/PictureFrameDoorInterfacePatches.cs @@ -7,7 +7,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.PictureFrameDoors.Patches; -internal class PictureFrameDoorInterfacePatches : QSBPatch +public class PictureFrameDoorInterfacePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/PictureFrameDoors/PictureFrameDoorsManager.cs b/QSB/EchoesOfTheEye/PictureFrameDoors/PictureFrameDoorsManager.cs index 055aac19..0c802774 100644 --- a/QSB/EchoesOfTheEye/PictureFrameDoors/PictureFrameDoorsManager.cs +++ b/QSB/EchoesOfTheEye/PictureFrameDoors/PictureFrameDoorsManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.EchoesOfTheEye.PictureFrameDoors; -internal class PictureFrameDoorsManager : WorldObjectManager +public class PictureFrameDoorsManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/IQSBPictureFrameDoor.cs b/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/IQSBPictureFrameDoor.cs index 009769f1..28cc03aa 100644 --- a/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/IQSBPictureFrameDoor.cs +++ b/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/IQSBPictureFrameDoor.cs @@ -2,7 +2,7 @@ namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects; -internal interface IQSBPictureFrameDoor : IWorldObject +public interface IQSBPictureFrameDoor : IWorldObject { public void SetOpenState(bool open); } diff --git a/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBGlitchedCodeDoorInterface.cs b/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBGlitchedCodeDoorInterface.cs index 101750b6..9b1c427d 100644 --- a/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBGlitchedCodeDoorInterface.cs +++ b/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBGlitchedCodeDoorInterface.cs @@ -1,6 +1,6 @@ namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects; -internal class QSBGlitchedCodeDoorInterface : QSBPictureFrameDoor +public class QSBGlitchedCodeDoorInterface : QSBPictureFrameDoor { public override void SetOpenState(bool open) { diff --git a/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBPictureFrameDoorInterface.cs b/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBPictureFrameDoorInterface.cs index f1a550a3..3c9f5dd7 100644 --- a/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBPictureFrameDoorInterface.cs +++ b/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBPictureFrameDoorInterface.cs @@ -1,6 +1,6 @@ namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects; -internal class QSBPictureFrameDoorInterface : QSBPictureFrameDoor +public class QSBPictureFrameDoorInterface : QSBPictureFrameDoor { public override void SetOpenState(bool open) { diff --git a/QSB/EchoesOfTheEye/Prisoner/CustomAutoSlideProjector.cs b/QSB/EchoesOfTheEye/Prisoner/CustomAutoSlideProjector.cs index e54176c7..b0f22945 100644 --- a/QSB/EchoesOfTheEye/Prisoner/CustomAutoSlideProjector.cs +++ b/QSB/EchoesOfTheEye/Prisoner/CustomAutoSlideProjector.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Prisoner; -internal class CustomAutoSlideProjector : MonoBehaviour +public class CustomAutoSlideProjector : MonoBehaviour { public float _defaultSlideDuration; public float _endPauseDuration; diff --git a/QSB/EchoesOfTheEye/Prisoner/Messages/CellevatorCallMessage.cs b/QSB/EchoesOfTheEye/Prisoner/Messages/CellevatorCallMessage.cs index eb7a4d75..ab1056f9 100644 --- a/QSB/EchoesOfTheEye/Prisoner/Messages/CellevatorCallMessage.cs +++ b/QSB/EchoesOfTheEye/Prisoner/Messages/CellevatorCallMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.Prisoner.Messages; -internal class CellevatorCallMessage : QSBWorldObjectMessage +public class CellevatorCallMessage : QSBWorldObjectMessage { public CellevatorCallMessage(int floorIndex) : base(floorIndex) { } public override void OnReceiveRemote() => WorldObject.AttachedObject.CallElevatorToFloor(Data); diff --git a/QSB/EchoesOfTheEye/Prisoner/Messages/EmergeTriggerMessage.cs b/QSB/EchoesOfTheEye/Prisoner/Messages/EmergeTriggerMessage.cs index e38a31a8..85d0abcb 100644 --- a/QSB/EchoesOfTheEye/Prisoner/Messages/EmergeTriggerMessage.cs +++ b/QSB/EchoesOfTheEye/Prisoner/Messages/EmergeTriggerMessage.cs @@ -4,7 +4,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.Prisoner.Messages; -internal class EmergeTriggerMessage : QSBMessage +public class EmergeTriggerMessage : QSBMessage { public override void OnReceiveRemote() { diff --git a/QSB/EchoesOfTheEye/Prisoner/Messages/EnterLightsOutMessage.cs b/QSB/EchoesOfTheEye/Prisoner/Messages/EnterLightsOutMessage.cs index f81a1d7d..3783aa07 100644 --- a/QSB/EchoesOfTheEye/Prisoner/Messages/EnterLightsOutMessage.cs +++ b/QSB/EchoesOfTheEye/Prisoner/Messages/EnterLightsOutMessage.cs @@ -4,7 +4,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.Prisoner.Messages; -internal class EnterLightsOutMessage : QSBMessage +public class EnterLightsOutMessage : QSBMessage { public override void OnReceiveRemote() { diff --git a/QSB/EchoesOfTheEye/Prisoner/Messages/MindProjectionCompleteMessage.cs b/QSB/EchoesOfTheEye/Prisoner/Messages/MindProjectionCompleteMessage.cs index 91638ece..d00f3a20 100644 --- a/QSB/EchoesOfTheEye/Prisoner/Messages/MindProjectionCompleteMessage.cs +++ b/QSB/EchoesOfTheEye/Prisoner/Messages/MindProjectionCompleteMessage.cs @@ -4,7 +4,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.Prisoner.Messages; -internal class MindProjectionCompleteMessage : QSBMessage +public class MindProjectionCompleteMessage : QSBMessage { public override void OnReceiveRemote() { diff --git a/QSB/EchoesOfTheEye/Prisoner/Messages/PrisonerEnterBehaviourMessage.cs b/QSB/EchoesOfTheEye/Prisoner/Messages/PrisonerEnterBehaviourMessage.cs index a37853f2..ebc34b3a 100644 --- a/QSB/EchoesOfTheEye/Prisoner/Messages/PrisonerEnterBehaviourMessage.cs +++ b/QSB/EchoesOfTheEye/Prisoner/Messages/PrisonerEnterBehaviourMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.Prisoner.Messages; -internal class PrisonerEnterBehaviourMessage : QSBWorldObjectMessage +public class PrisonerEnterBehaviourMessage : QSBWorldObjectMessage { public PrisonerEnterBehaviourMessage(PrisonerBehavior behaviour, PrisonerBehaviourCueMarker marker) : base((behaviour, marker != null ? marker.GetWorldObject().ObjectId : -1)) { } diff --git a/QSB/EchoesOfTheEye/Prisoner/Messages/ProjectMessage.cs b/QSB/EchoesOfTheEye/Prisoner/Messages/ProjectMessage.cs index 30435b93..75622aa5 100644 --- a/QSB/EchoesOfTheEye/Prisoner/Messages/ProjectMessage.cs +++ b/QSB/EchoesOfTheEye/Prisoner/Messages/ProjectMessage.cs @@ -4,7 +4,7 @@ using System.Linq; namespace QSB.EchoesOfTheEye.Prisoner.Messages; -internal class ProjectMessage : QSBMessage +public class ProjectMessage : QSBMessage { public override void OnReceiveRemote() { diff --git a/QSB/EchoesOfTheEye/Prisoner/Messages/StopProjectMessage.cs b/QSB/EchoesOfTheEye/Prisoner/Messages/StopProjectMessage.cs index 476d2892..0948f305 100644 --- a/QSB/EchoesOfTheEye/Prisoner/Messages/StopProjectMessage.cs +++ b/QSB/EchoesOfTheEye/Prisoner/Messages/StopProjectMessage.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace QSB.EchoesOfTheEye.Prisoner.Messages; -internal class StopProjectMessage : QSBMessage +public class StopProjectMessage : QSBMessage { public StopProjectMessage(bool done) : base(done) { } diff --git a/QSB/EchoesOfTheEye/Prisoner/Patches/PrisonerBrainPatches.cs b/QSB/EchoesOfTheEye/Prisoner/Patches/PrisonerBrainPatches.cs index 56e8647d..b489e43c 100644 --- a/QSB/EchoesOfTheEye/Prisoner/Patches/PrisonerBrainPatches.cs +++ b/QSB/EchoesOfTheEye/Prisoner/Patches/PrisonerBrainPatches.cs @@ -11,7 +11,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Prisoner.Patches; [HarmonyPatch(typeof(PrisonerBrain))] -internal class PrisonerBrainPatches : QSBPatch +public class PrisonerBrainPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/Prisoner/PrisonerBehaviourCueMarker.cs b/QSB/EchoesOfTheEye/Prisoner/PrisonerBehaviourCueMarker.cs index 4df87bf3..04fca07d 100644 --- a/QSB/EchoesOfTheEye/Prisoner/PrisonerBehaviourCueMarker.cs +++ b/QSB/EchoesOfTheEye/Prisoner/PrisonerBehaviourCueMarker.cs @@ -2,4 +2,4 @@ namespace QSB.EchoesOfTheEye.Prisoner; -internal class PrisonerBehaviourCueMarker : MonoBehaviour { } \ No newline at end of file +public class PrisonerBehaviourCueMarker : MonoBehaviour { } \ No newline at end of file diff --git a/QSB/EchoesOfTheEye/Prisoner/PrisonerManager.cs b/QSB/EchoesOfTheEye/Prisoner/PrisonerManager.cs index f1b7dcfa..f550e1fa 100644 --- a/QSB/EchoesOfTheEye/Prisoner/PrisonerManager.cs +++ b/QSB/EchoesOfTheEye/Prisoner/PrisonerManager.cs @@ -11,7 +11,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Prisoner; -internal class PrisonerManager : WorldObjectManager +public class PrisonerManager : WorldObjectManager { public override bool DlcOnly => true; public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; diff --git a/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonCellElevator.cs b/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonCellElevator.cs index f91f2fde..a31eda24 100644 --- a/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonCellElevator.cs +++ b/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonCellElevator.cs @@ -6,7 +6,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.Prisoner.WorldObjects; -internal class QSBPrisonCellElevator : WorldObject, IQSBDropTarget, IGhostObject +public class QSBPrisonCellElevator : WorldObject, IQSBDropTarget, IGhostObject { public override void SendInitialState(uint to) => this.SendMessage(new CellevatorCallMessage(AttachedObject._targetFloorIndex) { To = to }); diff --git a/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonerBrain.cs b/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonerBrain.cs index 2330eb69..2452888b 100644 --- a/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonerBrain.cs +++ b/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonerBrain.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Prisoner.WorldObjects; -internal class QSBPrisonerBrain : WorldObject, IGhostObject +public class QSBPrisonerBrain : WorldObject, IGhostObject { public override void SendInitialState(uint to) { diff --git a/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonerMarker.cs b/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonerMarker.cs index 552af46d..849d9118 100644 --- a/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonerMarker.cs +++ b/QSB/EchoesOfTheEye/Prisoner/WorldObjects/QSBPrisonerMarker.cs @@ -3,7 +3,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.Prisoner.WorldObjects; -internal class QSBPrisonerMarker : WorldObject +public class QSBPrisonerMarker : WorldObject { public Transform Transform => AttachedObject.transform; } diff --git a/QSB/EchoesOfTheEye/QSBRotatingElements.cs b/QSB/EchoesOfTheEye/QSBRotatingElements.cs index 765a3e83..2cb22170 100644 --- a/QSB/EchoesOfTheEye/QSBRotatingElements.cs +++ b/QSB/EchoesOfTheEye/QSBRotatingElements.cs @@ -11,7 +11,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye; -internal abstract class QSBRotatingElements : LinkedWorldObject +public abstract class QSBRotatingElements : LinkedWorldObject where T : MonoBehaviour where U : NetworkBehaviour { diff --git a/QSB/EchoesOfTheEye/RotatingElementsVariableSyncer.cs b/QSB/EchoesOfTheEye/RotatingElementsVariableSyncer.cs index e8092da4..0c8cdc68 100644 --- a/QSB/EchoesOfTheEye/RotatingElementsVariableSyncer.cs +++ b/QSB/EchoesOfTheEye/RotatingElementsVariableSyncer.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.EchoesOfTheEye; -internal abstract class RotatingElementsVariableSyncer : BaseVariableSyncer, ILinkedNetworkBehaviour +public abstract class RotatingElementsVariableSyncer : BaseVariableSyncer, ILinkedNetworkBehaviour where TWorldObject : IWorldObject { public override void OnStartClient() diff --git a/QSB/EchoesOfTheEye/SlideProjectors/Messages/NextSlideMessage.cs b/QSB/EchoesOfTheEye/SlideProjectors/Messages/NextSlideMessage.cs index 4da96ec1..a1099848 100644 --- a/QSB/EchoesOfTheEye/SlideProjectors/Messages/NextSlideMessage.cs +++ b/QSB/EchoesOfTheEye/SlideProjectors/Messages/NextSlideMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.SlideProjectors.Messages; -internal class NextSlideMessage : QSBWorldObjectMessage +public class NextSlideMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.AttachedObject.NextSlide(); } diff --git a/QSB/EchoesOfTheEye/SlideProjectors/Messages/PreviousSlideMessage.cs b/QSB/EchoesOfTheEye/SlideProjectors/Messages/PreviousSlideMessage.cs index e581363c..05ce54e3 100644 --- a/QSB/EchoesOfTheEye/SlideProjectors/Messages/PreviousSlideMessage.cs +++ b/QSB/EchoesOfTheEye/SlideProjectors/Messages/PreviousSlideMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.SlideProjectors.Messages; -internal class PreviousSlideMessage : QSBWorldObjectMessage +public class PreviousSlideMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.AttachedObject.PreviousSlide(); } diff --git a/QSB/EchoesOfTheEye/SlideProjectors/Patches/SlideProjectorPatches.cs b/QSB/EchoesOfTheEye/SlideProjectors/Patches/SlideProjectorPatches.cs index 8c3e6def..d8d7c4c8 100644 --- a/QSB/EchoesOfTheEye/SlideProjectors/Patches/SlideProjectorPatches.cs +++ b/QSB/EchoesOfTheEye/SlideProjectors/Patches/SlideProjectorPatches.cs @@ -8,7 +8,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.SlideProjectors.Patches; [HarmonyPatch(typeof(SlideProjector))] -internal class SlideProjectorPatches : QSBPatch +public class SlideProjectorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/SlideProjectors/SlideProjectorManager.cs b/QSB/EchoesOfTheEye/SlideProjectors/SlideProjectorManager.cs index 4253558d..00735cd4 100644 --- a/QSB/EchoesOfTheEye/SlideProjectors/SlideProjectorManager.cs +++ b/QSB/EchoesOfTheEye/SlideProjectors/SlideProjectorManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.EchoesOfTheEye.SlideProjectors; -internal class SlideProjectorManager : WorldObjectManager +public class SlideProjectorManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/WineCellar/Messages/WineCellarSwitchMessage.cs b/QSB/EchoesOfTheEye/WineCellar/Messages/WineCellarSwitchMessage.cs index 88c82005..db86795f 100644 --- a/QSB/EchoesOfTheEye/WineCellar/Messages/WineCellarSwitchMessage.cs +++ b/QSB/EchoesOfTheEye/WineCellar/Messages/WineCellarSwitchMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EchoesOfTheEye.WineCellar.Messages; -internal class WineCellarSwitchMessage : QSBWorldObjectMessage +public class WineCellarSwitchMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.AttachedObject.OnPressInteract(); } diff --git a/QSB/EchoesOfTheEye/WineCellar/Patches/WineCellarPatches.cs b/QSB/EchoesOfTheEye/WineCellar/Patches/WineCellarPatches.cs index 40a4100c..a72e7083 100644 --- a/QSB/EchoesOfTheEye/WineCellar/Patches/WineCellarPatches.cs +++ b/QSB/EchoesOfTheEye/WineCellar/Patches/WineCellarPatches.cs @@ -7,7 +7,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.WineCellar.Patches; -internal class WineCellarPatches : QSBPatch +public class WineCellarPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EchoesOfTheEye/WineCellar/WineCellarManager.cs b/QSB/EchoesOfTheEye/WineCellar/WineCellarManager.cs index e9b52357..de04fcf5 100644 --- a/QSB/EchoesOfTheEye/WineCellar/WineCellarManager.cs +++ b/QSB/EchoesOfTheEye/WineCellar/WineCellarManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.EchoesOfTheEye.WineCellar; -internal class WineCellarManager : WorldObjectManager +public class WineCellarManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => true; diff --git a/QSB/EchoesOfTheEye/WineCellar/WorldObjects/QSBWineCellarSwitch.cs b/QSB/EchoesOfTheEye/WineCellar/WorldObjects/QSBWineCellarSwitch.cs index 58219a00..6b98af20 100644 --- a/QSB/EchoesOfTheEye/WineCellar/WorldObjects/QSBWineCellarSwitch.cs +++ b/QSB/EchoesOfTheEye/WineCellar/WorldObjects/QSBWineCellarSwitch.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.EchoesOfTheEye.WineCellar.WorldObjects; -internal class QSBWineCellarSwitch : WorldObject +public class QSBWineCellarSwitch : WorldObject { public override void SendInitialState(uint to) { diff --git a/QSB/EyeOfTheUniverse/EyeStateSync/Messages/EyeStateMessage.cs b/QSB/EyeOfTheUniverse/EyeStateSync/Messages/EyeStateMessage.cs index 6b2c3577..930bb14e 100644 --- a/QSB/EyeOfTheUniverse/EyeStateSync/Messages/EyeStateMessage.cs +++ b/QSB/EyeOfTheUniverse/EyeStateSync/Messages/EyeStateMessage.cs @@ -8,7 +8,7 @@ namespace QSB.EyeOfTheUniverse.EyeStateSync.Messages; /// /// todo SendInitialState /// -internal class EyeStateMessage : QSBMessage +public class EyeStateMessage : QSBMessage { static EyeStateMessage() => GlobalMessenger.AddListener(OWEvents.EyeStateChanged, Handler); diff --git a/QSB/EyeOfTheUniverse/EyeStateSync/Messages/FlickerMessage.cs b/QSB/EyeOfTheUniverse/EyeStateSync/Messages/FlickerMessage.cs index 8e044d1f..2d1ee0ce 100644 --- a/QSB/EyeOfTheUniverse/EyeStateSync/Messages/FlickerMessage.cs +++ b/QSB/EyeOfTheUniverse/EyeStateSync/Messages/FlickerMessage.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.EyeStateSync.Messages; -internal class FlickerMessage : QSBMessage +public class FlickerMessage : QSBMessage { public static bool IgnoreNextMessage; diff --git a/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/EyeCloneSeenMessage.cs b/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/EyeCloneSeenMessage.cs index 11a62768..878824b1 100644 --- a/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/EyeCloneSeenMessage.cs +++ b/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/EyeCloneSeenMessage.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.ForestOfGalaxies.Messages; -internal class EyeCloneSeenMessage : QSBMessage +public class EyeCloneSeenMessage : QSBMessage { public override bool ShouldReceive => QSBWorldSync.AllObjectsReady; diff --git a/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/KillGalaxiesMessage.cs b/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/KillGalaxiesMessage.cs index c254bf8a..6a2f71bc 100644 --- a/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/KillGalaxiesMessage.cs +++ b/QSB/EyeOfTheUniverse/ForestOfGalaxies/Messages/KillGalaxiesMessage.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.ForestOfGalaxies.Messages; -internal class KillGalaxiesMessage : QSBMessage +public class KillGalaxiesMessage : QSBMessage { private List _deathDelays; diff --git a/QSB/EyeOfTheUniverse/ForestOfGalaxies/Patches/ForestPatches.cs b/QSB/EyeOfTheUniverse/ForestOfGalaxies/Patches/ForestPatches.cs index 71957c8f..4c0a0c69 100644 --- a/QSB/EyeOfTheUniverse/ForestOfGalaxies/Patches/ForestPatches.cs +++ b/QSB/EyeOfTheUniverse/ForestOfGalaxies/Patches/ForestPatches.cs @@ -9,7 +9,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.ForestOfGalaxies.Patches; -internal class ForestPatches : QSBPatch +public class ForestPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EyeOfTheUniverse/GalaxyMap/CustomDialogueTree.cs b/QSB/EyeOfTheUniverse/GalaxyMap/CustomDialogueTree.cs index 7d92f3c3..bc9d0c48 100644 --- a/QSB/EyeOfTheUniverse/GalaxyMap/CustomDialogueTree.cs +++ b/QSB/EyeOfTheUniverse/GalaxyMap/CustomDialogueTree.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.GalaxyMap; -internal class CustomDialogueTree : MonoBehaviour +public class CustomDialogueTree : MonoBehaviour { public TextAsset _xmlCharacterDialogueAsset; public Transform _attentionPoint; diff --git a/QSB/EyeOfTheUniverse/GalaxyMap/GalaxyMapManager.cs b/QSB/EyeOfTheUniverse/GalaxyMap/GalaxyMapManager.cs index 43a93994..6fdde0dd 100644 --- a/QSB/EyeOfTheUniverse/GalaxyMap/GalaxyMapManager.cs +++ b/QSB/EyeOfTheUniverse/GalaxyMap/GalaxyMapManager.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.GalaxyMap; -internal class GalaxyMapManager : MonoBehaviour, IAddComponentOnStart +public class GalaxyMapManager : MonoBehaviour, IAddComponentOnStart { public static GalaxyMapManager Instance { get; private set; } diff --git a/QSB/EyeOfTheUniverse/GalaxyMap/Messages/ZoomOutMessage.cs b/QSB/EyeOfTheUniverse/GalaxyMap/Messages/ZoomOutMessage.cs index 94b9054d..bc95e6db 100644 --- a/QSB/EyeOfTheUniverse/GalaxyMap/Messages/ZoomOutMessage.cs +++ b/QSB/EyeOfTheUniverse/GalaxyMap/Messages/ZoomOutMessage.cs @@ -4,7 +4,7 @@ using System.Linq; namespace QSB.EyeOfTheUniverse.GalaxyMap.Messages; -internal class ZoomOutMessage : QSBMessage +public class ZoomOutMessage : QSBMessage { public override bool ShouldReceive => QSBWorldSync.AllObjectsReady; diff --git a/QSB/EyeOfTheUniverse/GalaxyMap/Patches/GalaxyMapPatches.cs b/QSB/EyeOfTheUniverse/GalaxyMap/Patches/GalaxyMapPatches.cs index 3f9ef75a..9e10457d 100644 --- a/QSB/EyeOfTheUniverse/GalaxyMap/Patches/GalaxyMapPatches.cs +++ b/QSB/EyeOfTheUniverse/GalaxyMap/Patches/GalaxyMapPatches.cs @@ -7,7 +7,7 @@ using System.Linq; namespace QSB.EyeOfTheUniverse.GalaxyMap.Patches; -internal class GalaxyMapPatches : QSBPatch +public class GalaxyMapPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EyeOfTheUniverse/GalaxyMap/QSBDialogueNode.cs b/QSB/EyeOfTheUniverse/GalaxyMap/QSBDialogueNode.cs index 0c3b67a6..3925dcf0 100644 --- a/QSB/EyeOfTheUniverse/GalaxyMap/QSBDialogueNode.cs +++ b/QSB/EyeOfTheUniverse/GalaxyMap/QSBDialogueNode.cs @@ -2,7 +2,7 @@ namespace QSB.EyeOfTheUniverse.GalaxyMap; -internal class QSBDialogueNode +public class QSBDialogueNode { private List _listPagesToDisplay; diff --git a/QSB/EyeOfTheUniverse/InstrumentSync/Messages/GatherInstrumentMessage.cs b/QSB/EyeOfTheUniverse/InstrumentSync/Messages/GatherInstrumentMessage.cs index 58fd239e..ce495eca 100644 --- a/QSB/EyeOfTheUniverse/InstrumentSync/Messages/GatherInstrumentMessage.cs +++ b/QSB/EyeOfTheUniverse/InstrumentSync/Messages/GatherInstrumentMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.EyeOfTheUniverse.InstrumentSync.Messages; -internal class GatherInstrumentMessage : QSBWorldObjectMessage +public class GatherInstrumentMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.Gather(); } \ No newline at end of file diff --git a/QSB/EyeOfTheUniverse/InstrumentSync/Patches/QuantumInstrumentPatches.cs b/QSB/EyeOfTheUniverse/InstrumentSync/Patches/QuantumInstrumentPatches.cs index 041fe2fa..66e3d287 100644 --- a/QSB/EyeOfTheUniverse/InstrumentSync/Patches/QuantumInstrumentPatches.cs +++ b/QSB/EyeOfTheUniverse/InstrumentSync/Patches/QuantumInstrumentPatches.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.InstrumentSync.Patches; -internal class QuantumInstrumentPatches : QSBPatch +public class QuantumInstrumentPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EyeOfTheUniverse/InstrumentSync/QuantumInstrumentManager.cs b/QSB/EyeOfTheUniverse/InstrumentSync/QuantumInstrumentManager.cs index 81564c33..7d002b64 100644 --- a/QSB/EyeOfTheUniverse/InstrumentSync/QuantumInstrumentManager.cs +++ b/QSB/EyeOfTheUniverse/InstrumentSync/QuantumInstrumentManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.EyeOfTheUniverse.InstrumentSync; -internal class QuantumInstrumentManager : WorldObjectManager +public class QuantumInstrumentManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.Eye; diff --git a/QSB/EyeOfTheUniverse/InstrumentSync/WorldObjects/QSBQuantumInstrument.cs b/QSB/EyeOfTheUniverse/InstrumentSync/WorldObjects/QSBQuantumInstrument.cs index 69ceb8f5..7550347b 100644 --- a/QSB/EyeOfTheUniverse/InstrumentSync/WorldObjects/QSBQuantumInstrument.cs +++ b/QSB/EyeOfTheUniverse/InstrumentSync/WorldObjects/QSBQuantumInstrument.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.EyeOfTheUniverse.InstrumentSync.WorldObjects; -internal class QSBQuantumInstrument : WorldObject +public class QSBQuantumInstrument : WorldObject { public void Gather() { diff --git a/QSB/EyeOfTheUniverse/MaskSync/MaskManager.cs b/QSB/EyeOfTheUniverse/MaskSync/MaskManager.cs index cdea6e30..45344d39 100644 --- a/QSB/EyeOfTheUniverse/MaskSync/MaskManager.cs +++ b/QSB/EyeOfTheUniverse/MaskSync/MaskManager.cs @@ -9,7 +9,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.MaskSync; -internal class MaskManager : MonoBehaviour, IAddComponentOnStart +public class MaskManager : MonoBehaviour, IAddComponentOnStart { private static bool _flickering; private static float _flickerOutTime; diff --git a/QSB/EyeOfTheUniverse/MaskSync/Patches/MaskPatches.cs b/QSB/EyeOfTheUniverse/MaskSync/Patches/MaskPatches.cs index 8426204b..784f56a4 100644 --- a/QSB/EyeOfTheUniverse/MaskSync/Patches/MaskPatches.cs +++ b/QSB/EyeOfTheUniverse/MaskSync/Patches/MaskPatches.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.MaskSync.Patches; -internal class MaskPatches : QSBPatch +public class MaskPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EyeOfTheUniverse/Tomb/EyeTombWatcher.cs b/QSB/EyeOfTheUniverse/Tomb/EyeTombWatcher.cs index cdce3755..a4b29bfa 100644 --- a/QSB/EyeOfTheUniverse/Tomb/EyeTombWatcher.cs +++ b/QSB/EyeOfTheUniverse/Tomb/EyeTombWatcher.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.Tomb; -internal class EyeTombWatcher : MonoBehaviour +public class EyeTombWatcher : MonoBehaviour { private EyeTombController _tomb; diff --git a/QSB/EyeOfTheUniverse/Tomb/Messages/CloseDoorMessage.cs b/QSB/EyeOfTheUniverse/Tomb/Messages/CloseDoorMessage.cs index 5be73006..0ce8ec55 100644 --- a/QSB/EyeOfTheUniverse/Tomb/Messages/CloseDoorMessage.cs +++ b/QSB/EyeOfTheUniverse/Tomb/Messages/CloseDoorMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.EyeOfTheUniverse.Tomb.Messages; -internal class CloseDoorMessage : QSBMessage +public class CloseDoorMessage : QSBMessage { public override void OnReceiveRemote() { diff --git a/QSB/EyeOfTheUniverse/Tomb/Messages/EnterExitStageMessage.cs b/QSB/EyeOfTheUniverse/Tomb/Messages/EnterExitStageMessage.cs index 6bd8bde1..a57ab93c 100644 --- a/QSB/EyeOfTheUniverse/Tomb/Messages/EnterExitStageMessage.cs +++ b/QSB/EyeOfTheUniverse/Tomb/Messages/EnterExitStageMessage.cs @@ -4,7 +4,7 @@ using System.Linq; namespace QSB.EyeOfTheUniverse.Tomb.Messages; -internal class EnterExitStageMessage : QSBMessage +public class EnterExitStageMessage : QSBMessage { public EnterExitStageMessage(bool enter) : base(enter) { } diff --git a/QSB/EyeOfTheUniverse/Tomb/Messages/ShowStageMessage.cs b/QSB/EyeOfTheUniverse/Tomb/Messages/ShowStageMessage.cs index 16f404c9..f9154a4f 100644 --- a/QSB/EyeOfTheUniverse/Tomb/Messages/ShowStageMessage.cs +++ b/QSB/EyeOfTheUniverse/Tomb/Messages/ShowStageMessage.cs @@ -4,7 +4,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.Tomb.Messages; -internal class ShowStageMessage : QSBMessage +public class ShowStageMessage : QSBMessage { public override void OnReceiveRemote() { diff --git a/QSB/EyeOfTheUniverse/Tomb/Messages/ToggleLitStateMessage.cs b/QSB/EyeOfTheUniverse/Tomb/Messages/ToggleLitStateMessage.cs index 1f561d70..43b7d4f5 100644 --- a/QSB/EyeOfTheUniverse/Tomb/Messages/ToggleLitStateMessage.cs +++ b/QSB/EyeOfTheUniverse/Tomb/Messages/ToggleLitStateMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.EyeOfTheUniverse.Tomb.Messages; -internal class ToggleLitStateMessage : QSBMessage<(int stateIndex, int direction, bool wasLit)> +public class ToggleLitStateMessage : QSBMessage<(int stateIndex, int direction, bool wasLit)> { public ToggleLitStateMessage(int currentStateIndex, int direction, bool wasLit) : base((currentStateIndex, direction, wasLit)) { } diff --git a/QSB/EyeOfTheUniverse/Tomb/Messages/UseTombMessage.cs b/QSB/EyeOfTheUniverse/Tomb/Messages/UseTombMessage.cs index fbf29a17..0c7c58d5 100644 --- a/QSB/EyeOfTheUniverse/Tomb/Messages/UseTombMessage.cs +++ b/QSB/EyeOfTheUniverse/Tomb/Messages/UseTombMessage.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.EyeOfTheUniverse.Tomb.Messages; -internal class UseTombMessage : QSBMessage +public class UseTombMessage : QSBMessage { public UseTombMessage(bool use) : base(use) { } diff --git a/QSB/EyeOfTheUniverse/Tomb/Patches/EyeMirrorControllerPatches.cs b/QSB/EyeOfTheUniverse/Tomb/Patches/EyeMirrorControllerPatches.cs index 34a8773b..25585247 100644 --- a/QSB/EyeOfTheUniverse/Tomb/Patches/EyeMirrorControllerPatches.cs +++ b/QSB/EyeOfTheUniverse/Tomb/Patches/EyeMirrorControllerPatches.cs @@ -14,7 +14,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.Tomb.Patches; [HarmonyPatch(typeof(EyeMirrorController))] -internal class EyeMirrorControllerPatches : QSBPatch +public class EyeMirrorControllerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EyeOfTheUniverse/Tomb/Patches/EyeTombControllerPatches.cs b/QSB/EyeOfTheUniverse/Tomb/Patches/EyeTombControllerPatches.cs index c7cb1408..37a228ba 100644 --- a/QSB/EyeOfTheUniverse/Tomb/Patches/EyeTombControllerPatches.cs +++ b/QSB/EyeOfTheUniverse/Tomb/Patches/EyeTombControllerPatches.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.EyeOfTheUniverse.Tomb.Patches; [HarmonyPatch(typeof(EyeTombController))] -internal class EyeTombControllerPatches : QSBPatch +public class EyeTombControllerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/EyeOfTheUniverse/Tomb/TombManager.cs b/QSB/EyeOfTheUniverse/Tomb/TombManager.cs index bfcb73a5..87e25ebb 100644 --- a/QSB/EyeOfTheUniverse/Tomb/TombManager.cs +++ b/QSB/EyeOfTheUniverse/Tomb/TombManager.cs @@ -4,7 +4,7 @@ using System.Threading; namespace QSB.EyeOfTheUniverse.Tomb; -internal class TombManager : WorldObjectManager +public class TombManager : WorldObjectManager { public override bool DlcOnly => true; public override WorldObjectScene WorldObjectScene => WorldObjectScene.Eye; diff --git a/QSB/GeyserSync/Patches/GeyserPatches.cs b/QSB/GeyserSync/Patches/GeyserPatches.cs index 0938eef6..0165e0ba 100644 --- a/QSB/GeyserSync/Patches/GeyserPatches.cs +++ b/QSB/GeyserSync/Patches/GeyserPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.GeyserSync.Patches; [HarmonyPatch] -internal class GeyserPatches : QSBPatch +public class GeyserPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect; diff --git a/QSB/Ghostbuster.cs b/QSB/Ghostbuster.cs index e1d9483c..b59fd141 100644 --- a/QSB/Ghostbuster.cs +++ b/QSB/Ghostbuster.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using UnityEngine; namespace QSB; -internal class Ghostbuster : MonoBehaviour, IAddComponentOnStart +public class Ghostbuster : MonoBehaviour, IAddComponentOnStart { private const int UpdateInterval = 60; diff --git a/QSB/HUD/Messages/PlanetMessage.cs b/QSB/HUD/Messages/PlanetMessage.cs index fceb2bcb..dcac8b47 100644 --- a/QSB/HUD/Messages/PlanetMessage.cs +++ b/QSB/HUD/Messages/PlanetMessage.cs @@ -4,7 +4,7 @@ using QSB.Utility; namespace QSB.HUD.Messages; -internal class PlanetMessage : QSBMessage +public class PlanetMessage : QSBMessage { public PlanetMessage(HUDIcon icon) : base(icon) { } diff --git a/QSB/HUD/MultiplayerHUDManager.cs b/QSB/HUD/MultiplayerHUDManager.cs index 702c8faa..36a77183 100644 --- a/QSB/HUD/MultiplayerHUDManager.cs +++ b/QSB/HUD/MultiplayerHUDManager.cs @@ -15,7 +15,7 @@ using UnityEngine.UI; namespace QSB.HUD; -internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart +public class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart { public static MultiplayerHUDManager Instance; @@ -322,6 +322,7 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart var inputFieldGO = _textChat.Find("InputField"); _inputField = inputFieldGO.GetComponent(); _inputField.text = ""; + _inputField.characterLimit = 256; _textChat.Find("Messages").Find("Message").GetComponent().text = ""; _lines.Clear(); _messages.Clear(); diff --git a/QSB/HUD/Patches/MinimapPatches.cs b/QSB/HUD/Patches/MinimapPatches.cs index 0ba50671..99d847de 100644 --- a/QSB/HUD/Patches/MinimapPatches.cs +++ b/QSB/HUD/Patches/MinimapPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.HUD.Patches; [HarmonyPatch(typeof(Minimap))] -internal class MinimapPatches : QSBPatch +public class MinimapPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/HUD/Patches/RulesetVolumePatches.cs b/QSB/HUD/Patches/RulesetVolumePatches.cs index 5aba29ac..e726382b 100644 --- a/QSB/HUD/Patches/RulesetVolumePatches.cs +++ b/QSB/HUD/Patches/RulesetVolumePatches.cs @@ -12,7 +12,7 @@ using UnityEngine; namespace QSB.HUD.Patches; [HarmonyPatch(typeof(RulesetVolume))] -internal class RulesetVolumePatches : QSBPatch +public class RulesetVolumePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Inputs/Patches/InputPatches.cs b/QSB/Inputs/Patches/InputPatches.cs index b4ad08fa..0456c6d4 100644 --- a/QSB/Inputs/Patches/InputPatches.cs +++ b/QSB/Inputs/Patches/InputPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.Inputs.Patches; [HarmonyPatch] -internal class InputPatches : QSBPatch +public class InputPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/ItemSync/ItemManager.cs b/QSB/ItemSync/ItemManager.cs index 197a416d..afa1a8ee 100644 --- a/QSB/ItemSync/ItemManager.cs +++ b/QSB/ItemSync/ItemManager.cs @@ -11,7 +11,7 @@ using UnityEngine; namespace QSB.ItemSync; -internal class ItemManager : WorldObjectManager +public class ItemManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both; diff --git a/QSB/ItemSync/Messages/DropItemMessage.cs b/QSB/ItemSync/Messages/DropItemMessage.cs index bf550fef..6bc88a75 100644 --- a/QSB/ItemSync/Messages/DropItemMessage.cs +++ b/QSB/ItemSync/Messages/DropItemMessage.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.ItemSync.Messages; -internal class DropItemMessage : QSBWorldObjectMessage { public DropItemMessage(Vector3 worldPosition, Vector3 worldNormal, Transform parent, Sector sector, IItemDropTarget customDropTarget, OWRigidbody targetRigidbody) diff --git a/QSB/ItemSync/Messages/MoveToCarryMessage.cs b/QSB/ItemSync/Messages/MoveToCarryMessage.cs index 225d1df4..17ca2e87 100644 --- a/QSB/ItemSync/Messages/MoveToCarryMessage.cs +++ b/QSB/ItemSync/Messages/MoveToCarryMessage.cs @@ -5,7 +5,7 @@ using QSB.Utility; namespace QSB.ItemSync.Messages; -internal class MoveToCarryMessage : QSBWorldObjectMessage +public class MoveToCarryMessage : QSBWorldObjectMessage { public MoveToCarryMessage(uint playerHolding) : base(playerHolding) { } diff --git a/QSB/ItemSync/Messages/SocketItemMessage.cs b/QSB/ItemSync/Messages/SocketItemMessage.cs index 57a9243b..0d5e8753 100644 --- a/QSB/ItemSync/Messages/SocketItemMessage.cs +++ b/QSB/ItemSync/Messages/SocketItemMessage.cs @@ -7,7 +7,7 @@ using QSB.WorldSync; namespace QSB.ItemSync.Messages; -internal class SocketItemMessage : QSBWorldObjectMessage +public class SocketItemMessage : QSBWorldObjectMessage { public SocketItemMessage(SocketMessageType type, OWItemSocket socket) : base(( type, diff --git a/QSB/ItemSync/Patches/ItemRemotePatches.cs b/QSB/ItemSync/Patches/ItemRemotePatches.cs index ff45b34c..e3c0cd5c 100644 --- a/QSB/ItemSync/Patches/ItemRemotePatches.cs +++ b/QSB/ItemSync/Patches/ItemRemotePatches.cs @@ -6,7 +6,7 @@ using UnityEngine; namespace QSB.ItemSync.Patches; -internal class ItemRemotePatches : QSBPatch +public class ItemRemotePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/ItemSync/Patches/ItemToolPatches.cs b/QSB/ItemSync/Patches/ItemToolPatches.cs index e8730cd0..4086e091 100644 --- a/QSB/ItemSync/Patches/ItemToolPatches.cs +++ b/QSB/ItemSync/Patches/ItemToolPatches.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace QSB.ItemSync.Patches; [HarmonyPatch(typeof(ItemTool))] -internal class ItemToolPatches : QSBPatch +public class ItemToolPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/ItemSync/WorldObjects/Items/QSBNomaiConversationStone.cs b/QSB/ItemSync/WorldObjects/Items/QSBNomaiConversationStone.cs index b231997e..4430d505 100644 --- a/QSB/ItemSync/WorldObjects/Items/QSBNomaiConversationStone.cs +++ b/QSB/ItemSync/WorldObjects/Items/QSBNomaiConversationStone.cs @@ -1,3 +1,3 @@ namespace QSB.ItemSync.WorldObjects.Items; -internal class QSBNomaiConversationStone : QSBItem { } \ No newline at end of file +public class QSBNomaiConversationStone : QSBItem { } \ No newline at end of file diff --git a/QSB/ItemSync/WorldObjects/Items/QSBScrollItem.cs b/QSB/ItemSync/WorldObjects/Items/QSBScrollItem.cs index b2a152b4..2139769b 100644 --- a/QSB/ItemSync/WorldObjects/Items/QSBScrollItem.cs +++ b/QSB/ItemSync/WorldObjects/Items/QSBScrollItem.cs @@ -1,3 +1,3 @@ namespace QSB.ItemSync.WorldObjects.Items; -internal class QSBScrollItem : QSBItem { } \ No newline at end of file +public class QSBScrollItem : QSBItem { } \ No newline at end of file diff --git a/QSB/ItemSync/WorldObjects/Items/QSBSharedStone.cs b/QSB/ItemSync/WorldObjects/Items/QSBSharedStone.cs index 4f2c3d4e..9efcd97b 100644 --- a/QSB/ItemSync/WorldObjects/Items/QSBSharedStone.cs +++ b/QSB/ItemSync/WorldObjects/Items/QSBSharedStone.cs @@ -1,3 +1,3 @@ namespace QSB.ItemSync.WorldObjects.Items; -internal class QSBSharedStone : QSBItem { } \ No newline at end of file +public class QSBSharedStone : QSBItem { } \ No newline at end of file diff --git a/QSB/ItemSync/WorldObjects/Items/QSBSimpleLanternItem.cs b/QSB/ItemSync/WorldObjects/Items/QSBSimpleLanternItem.cs index 2a75a462..d8c883d5 100644 --- a/QSB/ItemSync/WorldObjects/Items/QSBSimpleLanternItem.cs +++ b/QSB/ItemSync/WorldObjects/Items/QSBSimpleLanternItem.cs @@ -1,3 +1,3 @@ namespace QSB.ItemSync.WorldObjects.Items; -internal class QSBSimpleLanternItem : QSBItem { } \ No newline at end of file +public class QSBSimpleLanternItem : QSBItem { } \ No newline at end of file diff --git a/QSB/ItemSync/WorldObjects/Items/QSBSlideReelItem.cs b/QSB/ItemSync/WorldObjects/Items/QSBSlideReelItem.cs index 1e5c1f72..b272f2f1 100644 --- a/QSB/ItemSync/WorldObjects/Items/QSBSlideReelItem.cs +++ b/QSB/ItemSync/WorldObjects/Items/QSBSlideReelItem.cs @@ -1,3 +1,3 @@ namespace QSB.ItemSync.WorldObjects.Items; -internal class QSBSlideReelItem : QSBItem { } \ No newline at end of file +public class QSBSlideReelItem : QSBItem { } \ No newline at end of file diff --git a/QSB/ItemSync/WorldObjects/Items/QSBWarpCoreItem.cs b/QSB/ItemSync/WorldObjects/Items/QSBWarpCoreItem.cs index 02765173..476df5a7 100644 --- a/QSB/ItemSync/WorldObjects/Items/QSBWarpCoreItem.cs +++ b/QSB/ItemSync/WorldObjects/Items/QSBWarpCoreItem.cs @@ -1,6 +1,6 @@ namespace QSB.ItemSync.WorldObjects.Items; -internal class QSBWarpCoreItem : QSBItem +public class QSBWarpCoreItem : QSBItem { public bool IsVesselCoreType() => AttachedObject.IsVesselCoreType(); } \ No newline at end of file diff --git a/QSB/ItemSync/WorldObjects/Sockets/QSBItemSocket.cs b/QSB/ItemSync/WorldObjects/Sockets/QSBItemSocket.cs index a475e522..c9055033 100644 --- a/QSB/ItemSync/WorldObjects/Sockets/QSBItemSocket.cs +++ b/QSB/ItemSync/WorldObjects/Sockets/QSBItemSocket.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.ItemSync.WorldObjects.Sockets; -internal class QSBItemSocket : WorldObject +public class QSBItemSocket : WorldObject { public bool IsSocketOccupied() => AttachedObject.IsSocketOccupied(); diff --git a/QSB/Menus/MenuManager.cs b/QSB/Menus/MenuManager.cs index 55166f55..76d3e13e 100644 --- a/QSB/Menus/MenuManager.cs +++ b/QSB/Menus/MenuManager.cs @@ -16,7 +16,7 @@ using UnityEngine.UI; namespace QSB.Menus; -internal class MenuManager : MonoBehaviour, IAddComponentOnStart +public class MenuManager : MonoBehaviour, IAddComponentOnStart { public static MenuManager Instance; diff --git a/QSB/Messaging/QSBMessageManager.cs b/QSB/Messaging/QSBMessageManager.cs index b85470cf..e8152508 100644 --- a/QSB/Messaging/QSBMessageManager.cs +++ b/QSB/Messaging/QSBMessageManager.cs @@ -142,7 +142,7 @@ internal struct Wrapper : NetworkMessage public static implicit operator Wrapper(QSBMessage msg) => new() { Msg = msg }; } -internal static class ReaderWriterExtensions +public static class ReaderWriterExtensions { private static QSBMessage ReadQSBMessage(this NetworkReader reader) { diff --git a/QSB/ModelShip/Messages/CrashModelShipMessage.cs b/QSB/ModelShip/Messages/CrashModelShipMessage.cs index 4eda4941..b853183b 100644 --- a/QSB/ModelShip/Messages/CrashModelShipMessage.cs +++ b/QSB/ModelShip/Messages/CrashModelShipMessage.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.ModelShip.Messages; -internal class CrashModelShipMessage : QSBMessage +public class CrashModelShipMessage : QSBMessage { public CrashModelShipMessage() { } diff --git a/QSB/ModelShip/Messages/RespawnModelShipMessage.cs b/QSB/ModelShip/Messages/RespawnModelShipMessage.cs index d3d34fbf..10f19341 100644 --- a/QSB/ModelShip/Messages/RespawnModelShipMessage.cs +++ b/QSB/ModelShip/Messages/RespawnModelShipMessage.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.ModelShip.Messages; -internal class RespawnModelShipMessage : QSBMessage +public class RespawnModelShipMessage : QSBMessage { public RespawnModelShipMessage(bool playEffects) : base(playEffects) { } diff --git a/QSB/ModelShip/Messages/UseFlightConsoleMessage.cs b/QSB/ModelShip/Messages/UseFlightConsoleMessage.cs index cf3a4e2f..0df3f426 100644 --- a/QSB/ModelShip/Messages/UseFlightConsoleMessage.cs +++ b/QSB/ModelShip/Messages/UseFlightConsoleMessage.cs @@ -8,7 +8,7 @@ using QSB.WorldSync; namespace QSB.ModelShip.Messages; -internal class UseFlightConsoleMessage : QSBMessage +public class UseFlightConsoleMessage : QSBMessage { static UseFlightConsoleMessage() { diff --git a/QSB/ModelShip/ModelShipManager.cs b/QSB/ModelShip/ModelShipManager.cs index 3d8df0df..48a2b412 100644 --- a/QSB/ModelShip/ModelShipManager.cs +++ b/QSB/ModelShip/ModelShipManager.cs @@ -8,7 +8,7 @@ using System.Threading; namespace QSB.ModelShip; -internal class ModelShipManager : WorldObjectManager +public class ModelShipManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; public override bool DlcOnly => false; diff --git a/QSB/ModelShip/Patches/ModelShipThrusterAudioPatches.cs b/QSB/ModelShip/Patches/ModelShipThrusterAudioPatches.cs index 8d4a76b6..433d85ff 100644 --- a/QSB/ModelShip/Patches/ModelShipThrusterAudioPatches.cs +++ b/QSB/ModelShip/Patches/ModelShipThrusterAudioPatches.cs @@ -10,7 +10,7 @@ using System.Threading.Tasks; namespace QSB.ModelShip.Patches; -internal class ModelShipThrusterAudioPatches : QSBPatch +public class ModelShipThrusterAudioPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/ModelShip/Patches/ModelShipThrusterPatches.cs b/QSB/ModelShip/Patches/ModelShipThrusterPatches.cs index 8697105c..cdd2c4ff 100644 --- a/QSB/ModelShip/Patches/ModelShipThrusterPatches.cs +++ b/QSB/ModelShip/Patches/ModelShipThrusterPatches.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.ModelShip.Patches; -internal class ModelShipThrusterPatches : QSBPatch +public class ModelShipThrusterPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/ModelShip/TransformSync/ModelShipTransformSync.cs b/QSB/ModelShip/TransformSync/ModelShipTransformSync.cs index 29b08c09..425d43c6 100644 --- a/QSB/ModelShip/TransformSync/ModelShipTransformSync.cs +++ b/QSB/ModelShip/TransformSync/ModelShipTransformSync.cs @@ -5,7 +5,7 @@ using QSB.WorldSync; namespace QSB.ModelShip.TransformSync; -internal class ModelShipTransformSync : SectoredRigidbodySync +public class ModelShipTransformSync : SectoredRigidbodySync { public static ModelShipTransformSync LocalInstance { get; private set; } diff --git a/QSB/Player/Messages/EnterLeaveMessage.cs b/QSB/Player/Messages/EnterLeaveMessage.cs index 2d0708b7..74c4b5db 100644 --- a/QSB/Player/Messages/EnterLeaveMessage.cs +++ b/QSB/Player/Messages/EnterLeaveMessage.cs @@ -12,7 +12,7 @@ namespace QSB.Player.Messages; /// /// todo SendInitialState /// -internal class EnterLeaveMessage : QSBMessage +public class EnterLeaveMessage : QSBMessage { static EnterLeaveMessage() { diff --git a/QSB/Player/Messages/LaunchCodesMessage.cs b/QSB/Player/Messages/LaunchCodesMessage.cs index b1cb8f94..3700b667 100644 --- a/QSB/Player/Messages/LaunchCodesMessage.cs +++ b/QSB/Player/Messages/LaunchCodesMessage.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.Player.Messages; -internal class LaunchCodesMessage : QSBMessage +public class LaunchCodesMessage : QSBMessage { public override bool ShouldReceive => QSBWorldSync.AllObjectsReady; diff --git a/QSB/Player/Messages/PlayerEntangledMessage.cs b/QSB/Player/Messages/PlayerEntangledMessage.cs index d59b541c..70a52b7a 100644 --- a/QSB/Player/Messages/PlayerEntangledMessage.cs +++ b/QSB/Player/Messages/PlayerEntangledMessage.cs @@ -5,7 +5,7 @@ using QSB.WorldSync; namespace QSB.Player.Messages; // almost a world object message, but supports null (-1) as well -internal class PlayerEntangledMessage : QSBMessage +public class PlayerEntangledMessage : QSBMessage { public PlayerEntangledMessage(int objectId) : base(objectId) { } diff --git a/QSB/Player/Messages/PlayerJoinMessage.cs b/QSB/Player/Messages/PlayerJoinMessage.cs index 005777b1..fd6e9956 100644 --- a/QSB/Player/Messages/PlayerJoinMessage.cs +++ b/QSB/Player/Messages/PlayerJoinMessage.cs @@ -41,6 +41,7 @@ public class PlayerJoinMessage : QSBMessage } AddonHashes = QSBCore.Addons.Keys + .Except(QSBCore.CosmeticAddons) .Select(x => x.GetStableHashCode()) .ToArray(); } @@ -109,6 +110,7 @@ public class PlayerJoinMessage : QSBMessage } var addonHashes = QSBCore.Addons.Keys + .Except(QSBCore.CosmeticAddons) .Select(x => x.GetStableHashCode()) .ToArray(); if (!AddonHashes.SequenceEqual(addonHashes)) diff --git a/QSB/Player/Messages/PlayerKickMessage.cs b/QSB/Player/Messages/PlayerKickMessage.cs index ec074623..c09ec919 100644 --- a/QSB/Player/Messages/PlayerKickMessage.cs +++ b/QSB/Player/Messages/PlayerKickMessage.cs @@ -11,7 +11,7 @@ namespace QSB.Player.Messages; /// /// always sent by host /// -internal class PlayerKickMessage : QSBMessage +public class PlayerKickMessage : QSBMessage { private uint PlayerId; diff --git a/QSB/Player/Messages/UpdateFOVMessage.cs b/QSB/Player/Messages/UpdateFOVMessage.cs index f92a37e6..0e2b0ca4 100644 --- a/QSB/Player/Messages/UpdateFOVMessage.cs +++ b/QSB/Player/Messages/UpdateFOVMessage.cs @@ -3,7 +3,7 @@ using QSB.Utility; namespace QSB.Player.Messages; -internal class UpdateFOVMessage : QSBMessage +public class UpdateFOVMessage : QSBMessage { static UpdateFOVMessage() => GlobalMessenger.AddListener( diff --git a/QSB/Player/Patches/PlayerPatches.cs b/QSB/Player/Patches/PlayerPatches.cs index deff4700..0df01b75 100644 --- a/QSB/Player/Patches/PlayerPatches.cs +++ b/QSB/Player/Patches/PlayerPatches.cs @@ -6,7 +6,7 @@ using QSB.Player.Messages; namespace QSB.Player.Patches; [HarmonyPatch] -internal class PlayerPatches : QSBPatch +public class PlayerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Player/Patches/VolumePatches.cs b/QSB/Player/Patches/VolumePatches.cs index 81152e7f..e5f15f30 100644 --- a/QSB/Player/Patches/VolumePatches.cs +++ b/QSB/Player/Patches/VolumePatches.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.Player.Patches; -internal class VolumePatches : QSBPatch +public class VolumePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Player/PlayerAttachWatcher.cs b/QSB/Player/PlayerAttachWatcher.cs index 58745b74..795b41d5 100644 --- a/QSB/Player/PlayerAttachWatcher.cs +++ b/QSB/Player/PlayerAttachWatcher.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.Player; [HarmonyPatch(typeof(PlayerAttachPoint))] -internal class PlayerAttachWatcher : QSBPatch +public class PlayerAttachWatcher : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; diff --git a/QSB/Player/PlayerEntanglementWatcher.cs b/QSB/Player/PlayerEntanglementWatcher.cs index c78936ea..de9bd393 100644 --- a/QSB/Player/PlayerEntanglementWatcher.cs +++ b/QSB/Player/PlayerEntanglementWatcher.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.Player; -internal class PlayerEntanglementWatcher : MonoBehaviour, IAddComponentOnStart +public class PlayerEntanglementWatcher : MonoBehaviour, IAddComponentOnStart { private QuantumObject _previousCollidingQuantumObject; diff --git a/QSB/Player/PlayerInfo.cs b/QSB/Player/PlayerInfo.cs index d8ef861d..12e22f17 100644 --- a/QSB/Player/PlayerInfo.cs +++ b/QSB/Player/PlayerInfo.cs @@ -186,12 +186,12 @@ public partial class PlayerInfo public T GetCustomData(string key) { - if (!_customData.ContainsKey(key)) + if (!_customData.TryGetValue(key, out var value)) { return default; } - return (T)_customData[key]; + return (T)value; } public override string ToString() => $"{PlayerId}:{GetType().Name} ({Name})"; diff --git a/QSB/PlayerBodySetup/Remote/QSBDopplerFixer.cs b/QSB/PlayerBodySetup/Remote/QSBDopplerFixer.cs index 40df535a..ab981423 100644 --- a/QSB/PlayerBodySetup/Remote/QSBDopplerFixer.cs +++ b/QSB/PlayerBodySetup/Remote/QSBDopplerFixer.cs @@ -19,7 +19,7 @@ public class QSBDopplerFixer : MonoBehaviour } [HarmonyPatch(typeof(OWAudioSource))] -internal class DopplerFixerPatches : QSBPatch +public class DopplerFixerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/PoolSync/CustomNomaiRemoteCamera.cs b/QSB/PoolSync/CustomNomaiRemoteCamera.cs index 9364fcdf..04c56b61 100644 --- a/QSB/PoolSync/CustomNomaiRemoteCamera.cs +++ b/QSB/PoolSync/CustomNomaiRemoteCamera.cs @@ -2,7 +2,7 @@ namespace QSB.PoolSync; -internal class CustomNomaiRemoteCamera : MonoBehaviour +public class CustomNomaiRemoteCamera : MonoBehaviour { public OWCamera _camera; private AudioListener _audioListener; diff --git a/QSB/PoolSync/CustomNomaiRemoteCameraPlatform.cs b/QSB/PoolSync/CustomNomaiRemoteCameraPlatform.cs index 358b53c5..4d071641 100644 --- a/QSB/PoolSync/CustomNomaiRemoteCameraPlatform.cs +++ b/QSB/PoolSync/CustomNomaiRemoteCameraPlatform.cs @@ -11,7 +11,7 @@ using UnityEngine; namespace QSB.PoolSync; -internal class CustomNomaiRemoteCameraPlatform : NomaiShared +public class CustomNomaiRemoteCameraPlatform : NomaiShared { public static List CustomPlatformList; private static MaterialPropertyBlock s_matPropBlock; diff --git a/QSB/PoolSync/CustomNomaiRemoteCameraStreaming.cs b/QSB/PoolSync/CustomNomaiRemoteCameraStreaming.cs index 7ce31824..fb3ba184 100644 --- a/QSB/PoolSync/CustomNomaiRemoteCameraStreaming.cs +++ b/QSB/PoolSync/CustomNomaiRemoteCameraStreaming.cs @@ -1,6 +1,6 @@ namespace QSB.PoolSync; -internal class CustomNomaiRemoteCameraStreaming : SectoredMonoBehaviour +public class CustomNomaiRemoteCameraStreaming : SectoredMonoBehaviour { private CustomNomaiRemoteCameraPlatform _remoteCameraPlatform; private StreamingGroup _streamingGroup; diff --git a/QSB/PoolSync/Patches/PoolPatches.cs b/QSB/PoolSync/Patches/PoolPatches.cs index 1c3ed4f4..0a339a99 100644 --- a/QSB/PoolSync/Patches/PoolPatches.cs +++ b/QSB/PoolSync/Patches/PoolPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.PoolSync.Patches; [HarmonyPatch] -internal class PoolPatches : QSBPatch +public class PoolPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/PoolSync/PoolManager.cs b/QSB/PoolSync/PoolManager.cs index f0322abe..39a48f58 100644 --- a/QSB/PoolSync/PoolManager.cs +++ b/QSB/PoolSync/PoolManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.PoolSync; -internal class PoolManager : WorldObjectManager +public class PoolManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; diff --git a/QSB/QSB.csproj b/QSB/QSB.csproj index 4116a8ac..4065ce97 100644 --- a/QSB/QSB.csproj +++ b/QSB/QSB.csproj @@ -69,7 +69,7 @@ - + diff --git a/QSB/QSBCore.cs b/QSB/QSBCore.cs index bc28ee29..927a724a 100644 --- a/QSB/QSBCore.cs +++ b/QSB/QSBCore.cs @@ -16,6 +16,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; +using QSB.API; using UnityEngine; using UnityEngine.InputSystem; @@ -86,6 +87,8 @@ public class QSBCore : ModBehaviour "PacificEngine.OW_Randomizer", }; + public override object GetApi() => new QSBAPI(); + private static void DetermineGameVendor() { var gameAssemblyTypes = typeof(AstroObject).Assembly.GetTypes(); @@ -215,6 +218,7 @@ public class QSBCore : ModBehaviour } public static readonly SortedDictionary Addons = new(); + public static readonly List CosmeticAddons = new(); private void RegisterAddons() { @@ -226,6 +230,29 @@ public class QSBCore : ModBehaviour } } + /// + /// Registers an addon that shouldn't be considered for hash checks when joining. + /// This addon MUST NOT send any network messages, or create any worldobjects. + /// + /// The behaviour of the addon. + public static void RegisterNotRequiredForAllPlayers(IModBehaviour addon) + { + var uniqueName = addon.ModHelper.Manifest.UniqueName; + var addonAssembly = addon.GetType().Assembly; + + foreach (var type in addonAssembly.GetTypes()) + { + if (typeof(QSBMessage).IsAssignableFrom(type) || typeof(WorldObjectManager).IsAssignableFrom(type) || typeof(IWorldObject).IsAssignableFrom(type)) + { + DebugLog.ToConsole($"Addon \"{uniqueName}\" cannot be cosmetic, as it creates networking events or objects.", MessageType.Error); + return; + } + } + + DebugLog.DebugWrite($"Registering {uniqueName} as a cosmetic addon."); + CosmeticAddons.Add(uniqueName); + } + private static void InitAssemblies() { static void Init(Assembly assembly) @@ -294,12 +321,12 @@ public class QSBCore : ModBehaviour var compatMod = ""; var missingCompat = false; - if (Helper.Interaction.ModExists(NEW_HORIZONS) && !Helper.Interaction.ModExists(NEW_HORIZONS_COMPAT)) + /*if (Helper.Interaction.ModExists(NEW_HORIZONS) && !Helper.Interaction.ModExists(NEW_HORIZONS_COMPAT)) { mainMod = NEW_HORIZONS; compatMod = NEW_HORIZONS_COMPAT; missingCompat = true; - } + }*/ if (missingCompat) { diff --git a/QSB/QuantumSync/Messages/EyeProxyMoonStateChangeMessage.cs b/QSB/QuantumSync/Messages/EyeProxyMoonStateChangeMessage.cs index b2b87369..850d9bf8 100644 --- a/QSB/QuantumSync/Messages/EyeProxyMoonStateChangeMessage.cs +++ b/QSB/QuantumSync/Messages/EyeProxyMoonStateChangeMessage.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.QuantumSync.Messages; -internal class EyeProxyMoonStateChangeMessage : QSBWorldObjectMessage +public class EyeProxyMoonStateChangeMessage : QSBWorldObjectMessage { private bool Active; private float Angle; diff --git a/QSB/QuantumSync/Messages/MoveSkeletonMessage.cs b/QSB/QuantumSync/Messages/MoveSkeletonMessage.cs index 3da8bcde..bf3329fa 100644 --- a/QSB/QuantumSync/Messages/MoveSkeletonMessage.cs +++ b/QSB/QuantumSync/Messages/MoveSkeletonMessage.cs @@ -3,7 +3,7 @@ using QSB.QuantumSync.WorldObjects; namespace QSB.QuantumSync.Messages; -internal class MoveSkeletonMessage : QSBWorldObjectMessage +public class MoveSkeletonMessage : QSBWorldObjectMessage { public MoveSkeletonMessage(int index) : base(index) { } diff --git a/QSB/QuantumSync/Messages/MultiStateChangeMessage.cs b/QSB/QuantumSync/Messages/MultiStateChangeMessage.cs index cbed10da..a92b1967 100644 --- a/QSB/QuantumSync/Messages/MultiStateChangeMessage.cs +++ b/QSB/QuantumSync/Messages/MultiStateChangeMessage.cs @@ -5,7 +5,7 @@ using QSB.Utility; namespace QSB.QuantumSync.Messages; -internal class MultiStateChangeMessage : QSBWorldObjectMessage +public class MultiStateChangeMessage : QSBWorldObjectMessage { public MultiStateChangeMessage(int stateIndex) : base(stateIndex) { } diff --git a/QSB/QuantumSync/Messages/QuantumShuffleMessage.cs b/QSB/QuantumSync/Messages/QuantumShuffleMessage.cs index 910c1cd0..f8c387ba 100644 --- a/QSB/QuantumSync/Messages/QuantumShuffleMessage.cs +++ b/QSB/QuantumSync/Messages/QuantumShuffleMessage.cs @@ -3,7 +3,7 @@ using QSB.QuantumSync.WorldObjects; namespace QSB.QuantumSync.Messages; -internal class QuantumShuffleMessage : QSBWorldObjectMessage +public class QuantumShuffleMessage : QSBWorldObjectMessage { public QuantumShuffleMessage(int[] indexArray) : base(indexArray) { } diff --git a/QSB/QuantumSync/Messages/SocketStateChangeMessage.cs b/QSB/QuantumSync/Messages/SocketStateChangeMessage.cs index 75f53a0d..80f9aa84 100644 --- a/QSB/QuantumSync/Messages/SocketStateChangeMessage.cs +++ b/QSB/QuantumSync/Messages/SocketStateChangeMessage.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.QuantumSync.Messages; -internal class SocketStateChangeMessage : QSBWorldObjectMessage +public class SocketStateChangeMessage : QSBWorldObjectMessage { private int SocketId; private Quaternion LocalRotation; diff --git a/QSB/QuantumSync/Patches/Client/ClientEyeProxyQuantumMoonPatches.cs b/QSB/QuantumSync/Patches/Client/ClientEyeProxyQuantumMoonPatches.cs index 7e35d09c..bc12b760 100644 --- a/QSB/QuantumSync/Patches/Client/ClientEyeProxyQuantumMoonPatches.cs +++ b/QSB/QuantumSync/Patches/Client/ClientEyeProxyQuantumMoonPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.QuantumSync.Patches.Client; [HarmonyPatch(typeof(EyeProxyQuantumMoon))] -internal class ClientEyeProxyQuantumMoonPatches : QSBPatch +public class ClientEyeProxyQuantumMoonPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect; diff --git a/QSB/QuantumSync/Patches/Client/ClientQuantumMoonPatches.cs b/QSB/QuantumSync/Patches/Client/ClientQuantumMoonPatches.cs index 61fdecd8..8d020f7e 100644 --- a/QSB/QuantumSync/Patches/Client/ClientQuantumMoonPatches.cs +++ b/QSB/QuantumSync/Patches/Client/ClientQuantumMoonPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.QuantumSync.Patches.Client; [HarmonyPatch(typeof(QuantumMoon))] -internal class ClientQuantumMoonPatches : QSBPatch +public class ClientQuantumMoonPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect; diff --git a/QSB/QuantumSync/Patches/Common/QuantumMoonPatches.cs b/QSB/QuantumSync/Patches/Common/QuantumMoonPatches.cs index 57c3b75d..55591c85 100644 --- a/QSB/QuantumSync/Patches/Common/QuantumMoonPatches.cs +++ b/QSB/QuantumSync/Patches/Common/QuantumMoonPatches.cs @@ -9,7 +9,7 @@ using UnityEngine; namespace QSB.QuantumSync.Patches.Common; [HarmonyPatch(typeof(QuantumMoon))] -internal class QuantumMoonPatches : QSBPatch +public class QuantumMoonPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/QuantumSync/Patches/Common/QuantumShuffleObjectPatches.cs b/QSB/QuantumSync/Patches/Common/QuantumShuffleObjectPatches.cs index 54546d07..56d98b67 100644 --- a/QSB/QuantumSync/Patches/Common/QuantumShuffleObjectPatches.cs +++ b/QSB/QuantumSync/Patches/Common/QuantumShuffleObjectPatches.cs @@ -11,7 +11,7 @@ using UnityEngine; namespace QSB.QuantumSync.Patches.Common; [HarmonyPatch(typeof(QuantumShuffleObject))] -internal class QuantumShuffleObjectPatches : QSBPatch +public class QuantumShuffleObjectPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/QuantumSync/Patches/Common/QuantumSkeletonTowerPatches.cs b/QSB/QuantumSync/Patches/Common/QuantumSkeletonTowerPatches.cs index 4c8d3301..ef237855 100644 --- a/QSB/QuantumSync/Patches/Common/QuantumSkeletonTowerPatches.cs +++ b/QSB/QuantumSync/Patches/Common/QuantumSkeletonTowerPatches.cs @@ -9,7 +9,7 @@ using QSB.WorldSync; namespace QSB.QuantumSync.Patches.Common; [HarmonyPatch(typeof(QuantumSkeletonTower))] -internal class QuantumSkeletonTowerPatches : QSBPatch +public class QuantumSkeletonTowerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/QuantumSync/Patches/Common/QuantumSocketCollapseTriggerPatches.cs b/QSB/QuantumSync/Patches/Common/QuantumSocketCollapseTriggerPatches.cs index 2745cb69..28457e24 100644 --- a/QSB/QuantumSync/Patches/Common/QuantumSocketCollapseTriggerPatches.cs +++ b/QSB/QuantumSync/Patches/Common/QuantumSocketCollapseTriggerPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.QuantumSync.Patches.Common; [HarmonyPatch(typeof(QuantumSocketCollapseTrigger))] -internal class QuantumSocketCollapseTriggerPatches : QSBPatch +public class QuantumSocketCollapseTriggerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/QuantumSync/Patches/Common/Visibility/VisibilityRendererVisibilityTrackerPatches.cs b/QSB/QuantumSync/Patches/Common/Visibility/VisibilityRendererVisibilityTrackerPatches.cs index 334f8879..14cfa44d 100644 --- a/QSB/QuantumSync/Patches/Common/Visibility/VisibilityRendererVisibilityTrackerPatches.cs +++ b/QSB/QuantumSync/Patches/Common/Visibility/VisibilityRendererVisibilityTrackerPatches.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.QuantumSync.Patches.Common.Visibility; [HarmonyPatch(typeof(RendererVisibilityTracker))] -internal class VisibilityRendererVisibilityTrackerPatches : QSBPatch +public class VisibilityRendererVisibilityTrackerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/QuantumSync/Patches/Common/Visibility/VisibilityShapePatches.cs b/QSB/QuantumSync/Patches/Common/Visibility/VisibilityShapePatches.cs index 64015bf0..8937eb32 100644 --- a/QSB/QuantumSync/Patches/Common/Visibility/VisibilityShapePatches.cs +++ b/QSB/QuantumSync/Patches/Common/Visibility/VisibilityShapePatches.cs @@ -5,7 +5,7 @@ using QSB.Utility; namespace QSB.QuantumSync.Patches.Common.Visibility; [HarmonyPatch(typeof(Shape))] -internal class VisibilityShapePatches : QSBPatch +public class VisibilityShapePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/QuantumSync/Patches/Common/Visibility/VisibilityShapeVisibilityTrackerPatches.cs b/QSB/QuantumSync/Patches/Common/Visibility/VisibilityShapeVisibilityTrackerPatches.cs index 9e101fb3..7cb02246 100644 --- a/QSB/QuantumSync/Patches/Common/Visibility/VisibilityShapeVisibilityTrackerPatches.cs +++ b/QSB/QuantumSync/Patches/Common/Visibility/VisibilityShapeVisibilityTrackerPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.QuantumSync.Patches.Common.Visibility; [HarmonyPatch(typeof(ShapeVisibilityTracker))] -internal class VisibilityShapeVisibilityTrackerPatches : QSBPatch +public class VisibilityShapeVisibilityTrackerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/QuantumSync/Patches/Common/Visibility/VisibilityVisibilityObjectPatches.cs b/QSB/QuantumSync/Patches/Common/Visibility/VisibilityVisibilityObjectPatches.cs index 69aa8d24..7606752f 100644 --- a/QSB/QuantumSync/Patches/Common/Visibility/VisibilityVisibilityObjectPatches.cs +++ b/QSB/QuantumSync/Patches/Common/Visibility/VisibilityVisibilityObjectPatches.cs @@ -6,7 +6,7 @@ using System.Linq; namespace QSB.QuantumSync.Patches.Common.Visibility; [HarmonyPatch(typeof(VisibilityObject))] -internal class VisibilityVisibilityObjectPatches : QSBPatch +public class VisibilityVisibilityObjectPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/QuantumSync/QuantumManager.cs b/QSB/QuantumSync/QuantumManager.cs index 00058393..455c9fa1 100644 --- a/QSB/QuantumSync/QuantumManager.cs +++ b/QSB/QuantumSync/QuantumManager.cs @@ -13,7 +13,7 @@ using UnityEngine; namespace QSB.QuantumSync; -internal class QuantumManager : WorldObjectManager +public class QuantumManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both; diff --git a/QSB/QuantumSync/WorldObjects/QSBEyeProxyQuantumMoon.cs b/QSB/QuantumSync/WorldObjects/QSBEyeProxyQuantumMoon.cs index 5ded5102..afe6fdc3 100644 --- a/QSB/QuantumSync/WorldObjects/QSBEyeProxyQuantumMoon.cs +++ b/QSB/QuantumSync/WorldObjects/QSBEyeProxyQuantumMoon.cs @@ -1,6 +1,6 @@ namespace QSB.QuantumSync.WorldObjects; -internal class QSBEyeProxyQuantumMoon : QSBQuantumObject +public class QSBEyeProxyQuantumMoon : QSBQuantumObject { public override bool HostControls => true; diff --git a/QSB/QuantumSync/WorldObjects/QSBMultiStateQuantumObject.cs b/QSB/QuantumSync/WorldObjects/QSBMultiStateQuantumObject.cs index 2ee41b2b..5dac7f1a 100644 --- a/QSB/QuantumSync/WorldObjects/QSBMultiStateQuantumObject.cs +++ b/QSB/QuantumSync/WorldObjects/QSBMultiStateQuantumObject.cs @@ -8,7 +8,7 @@ using System.Threading; namespace QSB.QuantumSync.WorldObjects; -internal class QSBMultiStateQuantumObject : QSBQuantumObject +public class QSBMultiStateQuantumObject : QSBQuantumObject { public List QuantumStates { get; private set; } public int CurrentState => AttachedObject._stateIndex; diff --git a/QSB/QuantumSync/WorldObjects/QSBQuantumMoon.cs b/QSB/QuantumSync/WorldObjects/QSBQuantumMoon.cs index 68ea4898..00750e4f 100644 --- a/QSB/QuantumSync/WorldObjects/QSBQuantumMoon.cs +++ b/QSB/QuantumSync/WorldObjects/QSBQuantumMoon.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.QuantumSync.WorldObjects; -internal class QSBQuantumMoon : QSBQuantumObject +public class QSBQuantumMoon : QSBQuantumObject { public override bool HostControls => true; diff --git a/QSB/QuantumSync/WorldObjects/QSBQuantumObject.cs b/QSB/QuantumSync/WorldObjects/QSBQuantumObject.cs index 326896f8..186b2248 100644 --- a/QSB/QuantumSync/WorldObjects/QSBQuantumObject.cs +++ b/QSB/QuantumSync/WorldObjects/QSBQuantumObject.cs @@ -18,7 +18,7 @@ namespace QSB.QuantumSync.WorldObjects; /// /// TODO: make it so only players in the sector (which sector?) are checked for visibility /// -internal abstract class QSBQuantumObject : WorldObject, IQSBQuantumObject +public abstract class QSBQuantumObject : WorldObject, IQSBQuantumObject where T : QuantumObject { public virtual bool HostControls => false; diff --git a/QSB/QuantumSync/WorldObjects/QSBQuantumShuffleObject.cs b/QSB/QuantumSync/WorldObjects/QSBQuantumShuffleObject.cs index 0e3d6580..489b4f91 100644 --- a/QSB/QuantumSync/WorldObjects/QSBQuantumShuffleObject.cs +++ b/QSB/QuantumSync/WorldObjects/QSBQuantumShuffleObject.cs @@ -1,6 +1,6 @@ namespace QSB.QuantumSync.WorldObjects; -internal class QSBQuantumShuffleObject : QSBQuantumObject +public class QSBQuantumShuffleObject : QSBQuantumObject { public override void SendInitialState(uint to) { diff --git a/QSB/QuantumSync/WorldObjects/QSBQuantumSkeletonTower.cs b/QSB/QuantumSync/WorldObjects/QSBQuantumSkeletonTower.cs index 7b460b36..7d4b2891 100644 --- a/QSB/QuantumSync/WorldObjects/QSBQuantumSkeletonTower.cs +++ b/QSB/QuantumSync/WorldObjects/QSBQuantumSkeletonTower.cs @@ -1,6 +1,6 @@ namespace QSB.QuantumSync.WorldObjects; -internal class QSBQuantumSkeletonTower : QSBQuantumObject +public class QSBQuantumSkeletonTower : QSBQuantumObject { public override string ReturnLabel() => $"{base.ReturnLabel()}" + $"{AttachedObject._index} {AttachedObject._waitForPlayerToLookAtTower}\n" diff --git a/QSB/QuantumSync/WorldObjects/QSBQuantumSocket.cs b/QSB/QuantumSync/WorldObjects/QSBQuantumSocket.cs index 5c880afc..7a82df4a 100644 --- a/QSB/QuantumSync/WorldObjects/QSBQuantumSocket.cs +++ b/QSB/QuantumSync/WorldObjects/QSBQuantumSocket.cs @@ -2,7 +2,7 @@ namespace QSB.QuantumSync.WorldObjects; -internal class QSBQuantumSocket : WorldObject +public class QSBQuantumSocket : WorldObject { public override bool ShouldDisplayDebug() => false; } \ No newline at end of file diff --git a/QSB/QuantumSync/WorldObjects/QSBQuantumState.cs b/QSB/QuantumSync/WorldObjects/QSBQuantumState.cs index 241f9ad1..76a024cb 100644 --- a/QSB/QuantumSync/WorldObjects/QSBQuantumState.cs +++ b/QSB/QuantumSync/WorldObjects/QSBQuantumState.cs @@ -2,7 +2,7 @@ namespace QSB.QuantumSync.WorldObjects; -internal class QSBQuantumState : WorldObject +public class QSBQuantumState : WorldObject { public bool IsMeantToBeEnabled; diff --git a/QSB/QuantumSync/WorldObjects/QSBSocketedQuantumObject.cs b/QSB/QuantumSync/WorldObjects/QSBSocketedQuantumObject.cs index 7612f703..5a6e9c1d 100644 --- a/QSB/QuantumSync/WorldObjects/QSBSocketedQuantumObject.cs +++ b/QSB/QuantumSync/WorldObjects/QSBSocketedQuantumObject.cs @@ -9,7 +9,7 @@ using UnityEngine; namespace QSB.QuantumSync.WorldObjects; -internal class QSBSocketedQuantumObject : QSBQuantumObject +public class QSBSocketedQuantumObject : QSBQuantumObject { public override async UniTask Init(CancellationToken ct) { diff --git a/QSB/RespawnSync/Messages/PlayerRespawnMessage.cs b/QSB/RespawnSync/Messages/PlayerRespawnMessage.cs index 90791975..994773df 100644 --- a/QSB/RespawnSync/Messages/PlayerRespawnMessage.cs +++ b/QSB/RespawnSync/Messages/PlayerRespawnMessage.cs @@ -4,7 +4,7 @@ using QSB.Player; namespace QSB.RespawnSync.Messages; -internal class PlayerRespawnMessage : QSBMessage +public class PlayerRespawnMessage : QSBMessage { public PlayerRespawnMessage(uint playerId) : base(playerId) { } diff --git a/QSB/RespawnSync/RespawnManager.cs b/QSB/RespawnSync/RespawnManager.cs index c2808644..584f5aa7 100644 --- a/QSB/RespawnSync/RespawnManager.cs +++ b/QSB/RespawnSync/RespawnManager.cs @@ -12,7 +12,7 @@ using UnityEngine; namespace QSB.RespawnSync; -internal class RespawnManager : MonoBehaviour, IAddComponentOnStart +public class RespawnManager : MonoBehaviour, IAddComponentOnStart { public static RespawnManager Instance; diff --git a/QSB/RespawnSync/ShipRecoveryPoint.cs b/QSB/RespawnSync/ShipRecoveryPoint.cs index f42bc528..ee59320b 100644 --- a/QSB/RespawnSync/ShipRecoveryPoint.cs +++ b/QSB/RespawnSync/ShipRecoveryPoint.cs @@ -6,7 +6,7 @@ using UnityEngine; namespace QSB.RespawnSync; -internal class ShipRecoveryPoint : MonoBehaviour +public class ShipRecoveryPoint : MonoBehaviour { private MultipleInteractionVolume _interactVolume; private PlayerResources _playerResources; diff --git a/QSB/RoastingSync/Messages/EnterExitRoastingMessage.cs b/QSB/RoastingSync/Messages/EnterExitRoastingMessage.cs index 9957aa68..e32f3578 100644 --- a/QSB/RoastingSync/Messages/EnterExitRoastingMessage.cs +++ b/QSB/RoastingSync/Messages/EnterExitRoastingMessage.cs @@ -9,7 +9,7 @@ using QSB.WorldSync; namespace QSB.RoastingSync.Messages; -internal class EnterExitRoastingMessage : QSBMessage +public class EnterExitRoastingMessage : QSBMessage { static EnterExitRoastingMessage() { diff --git a/QSB/RoastingSync/Messages/MarshmallowEventMessage.cs b/QSB/RoastingSync/Messages/MarshmallowEventMessage.cs index 181a8936..122ecd1f 100644 --- a/QSB/RoastingSync/Messages/MarshmallowEventMessage.cs +++ b/QSB/RoastingSync/Messages/MarshmallowEventMessage.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.RoastingSync.Messages; -internal class MarshmallowEventMessage : QSBMessage +public class MarshmallowEventMessage : QSBMessage { public MarshmallowEventMessage(MarshmallowMessageType type) : base(type) { } diff --git a/QSB/RoastingSync/Patches/RoastingPatches.cs b/QSB/RoastingSync/Patches/RoastingPatches.cs index 4d900b76..0f35680c 100644 --- a/QSB/RoastingSync/Patches/RoastingPatches.cs +++ b/QSB/RoastingSync/Patches/RoastingPatches.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.RoastingSync.Patches; [HarmonyPatch] -internal class RoastingPatches : QSBPatch +public class RoastingPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs b/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs index 7009b2a2..c61bda30 100644 --- a/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs +++ b/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs @@ -2,7 +2,7 @@ namespace QSB.SatelliteSync.Messages; -internal class SatelliteProjectorMessage : QSBMessage +public class SatelliteProjectorMessage : QSBMessage { public SatelliteProjectorMessage(bool usingProjector) : base(usingProjector) { } diff --git a/QSB/SatelliteSync/Messages/SatelliteProjectorSnapshotMessage.cs b/QSB/SatelliteSync/Messages/SatelliteProjectorSnapshotMessage.cs index 0048914c..8f128d95 100644 --- a/QSB/SatelliteSync/Messages/SatelliteProjectorSnapshotMessage.cs +++ b/QSB/SatelliteSync/Messages/SatelliteProjectorSnapshotMessage.cs @@ -2,7 +2,7 @@ namespace QSB.SatelliteSync.Messages; -internal class SatelliteProjectorSnapshotMessage : QSBMessage +public class SatelliteProjectorSnapshotMessage : QSBMessage { public SatelliteProjectorSnapshotMessage(bool forward) : base(forward) { } diff --git a/QSB/SatelliteSync/Patches/SatelliteProjectorPatches.cs b/QSB/SatelliteSync/Patches/SatelliteProjectorPatches.cs index ad37a612..7b9a5b29 100644 --- a/QSB/SatelliteSync/Patches/SatelliteProjectorPatches.cs +++ b/QSB/SatelliteSync/Patches/SatelliteProjectorPatches.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.SatelliteSync.Patches; [HarmonyPatch] -internal class SatelliteProjectorPatches : QSBPatch +public class SatelliteProjectorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/SatelliteSync/SatelliteProjectorManager.cs b/QSB/SatelliteSync/SatelliteProjectorManager.cs index 4d6338b8..bc89dc86 100644 --- a/QSB/SatelliteSync/SatelliteProjectorManager.cs +++ b/QSB/SatelliteSync/SatelliteProjectorManager.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.SatelliteSync; -internal class SatelliteProjectorManager : MonoBehaviour, IAddComponentOnStart +public class SatelliteProjectorManager : MonoBehaviour, IAddComponentOnStart { public static SatelliteProjectorManager Instance { get; private set; } diff --git a/QSB/SaveSync/Messages/GameStateMessage.cs b/QSB/SaveSync/Messages/GameStateMessage.cs index 0ee41a78..5a9c20a4 100644 --- a/QSB/SaveSync/Messages/GameStateMessage.cs +++ b/QSB/SaveSync/Messages/GameStateMessage.cs @@ -10,7 +10,7 @@ namespace QSB.SaveSync.Messages; /// /// always sent by host /// -internal class GameStateMessage : QSBMessage +public class GameStateMessage : QSBMessage { private bool WarpedToTheEye; private float SecondsRemainingOnWarp; diff --git a/QSB/SaveSync/Messages/RequestGameStateMessage.cs b/QSB/SaveSync/Messages/RequestGameStateMessage.cs index da49e43c..9228e4ad 100644 --- a/QSB/SaveSync/Messages/RequestGameStateMessage.cs +++ b/QSB/SaveSync/Messages/RequestGameStateMessage.cs @@ -9,7 +9,7 @@ namespace QSB.SaveSync.Messages; /// /// always sent to host /// -internal class RequestGameStateMessage : QSBMessage +public class RequestGameStateMessage : QSBMessage { public RequestGameStateMessage() => To = 0; diff --git a/QSB/SaveSync/Messages/ShipLogFactSaveMessage.cs b/QSB/SaveSync/Messages/ShipLogFactSaveMessage.cs index a24338ca..b57aec29 100644 --- a/QSB/SaveSync/Messages/ShipLogFactSaveMessage.cs +++ b/QSB/SaveSync/Messages/ShipLogFactSaveMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.SaveSync.Messages; -internal class ShipLogFactSaveMessage : QSBMessage +public class ShipLogFactSaveMessage : QSBMessage { private string _id; private int _revealOrder; diff --git a/QSB/SaveSync/Patches/GdkPatches.cs b/QSB/SaveSync/Patches/GdkPatches.cs index f134f2a6..9a5561d8 100644 --- a/QSB/SaveSync/Patches/GdkPatches.cs +++ b/QSB/SaveSync/Patches/GdkPatches.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.SaveSync.Patches; [HarmonyPatch(typeof(Gdk))] -internal class GdkPatches : QSBPatch +public class GdkPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; public override GameVendor PatchVendor => GameVendor.Gamepass; diff --git a/QSB/SaveSync/Patches/InGameProfileMenuManagerPatches.cs b/QSB/SaveSync/Patches/InGameProfileMenuManagerPatches.cs index f57636c9..a89ca32a 100644 --- a/QSB/SaveSync/Patches/InGameProfileMenuManagerPatches.cs +++ b/QSB/SaveSync/Patches/InGameProfileMenuManagerPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.SaveSync.Patches; [HarmonyPatch(typeof(InGameProfileMenuManager))] -internal class InGameProfileMenuManagerPatches : QSBPatch +public class InGameProfileMenuManagerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; diff --git a/QSB/SaveSync/Patches/PlayerDataPatches.cs b/QSB/SaveSync/Patches/PlayerDataPatches.cs index bdf88b09..bb48dfc1 100644 --- a/QSB/SaveSync/Patches/PlayerDataPatches.cs +++ b/QSB/SaveSync/Patches/PlayerDataPatches.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.SaveSync.Patches; [HarmonyPatch(typeof(PlayerData))] -internal class PlayerDataPatches : QSBPatch +public class PlayerDataPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; diff --git a/QSB/SaveSync/Patches/ProfileManagerUpdaterPatches.cs b/QSB/SaveSync/Patches/ProfileManagerUpdaterPatches.cs index da1d832b..162e0a51 100644 --- a/QSB/SaveSync/Patches/ProfileManagerUpdaterPatches.cs +++ b/QSB/SaveSync/Patches/ProfileManagerUpdaterPatches.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.SaveSync.Patches; [HarmonyPatch(typeof(ProfileManagerUpdater))] -internal class ProfileManagerUpdaterPatches : QSBPatch +public class ProfileManagerUpdaterPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; diff --git a/QSB/SaveSync/Patches/ProfileMenuManagerPatches.cs b/QSB/SaveSync/Patches/ProfileMenuManagerPatches.cs index 73948444..87c66363 100644 --- a/QSB/SaveSync/Patches/ProfileMenuManagerPatches.cs +++ b/QSB/SaveSync/Patches/ProfileMenuManagerPatches.cs @@ -7,7 +7,7 @@ using UnityEngine.UI; namespace QSB.SaveSync.Patches; [HarmonyPatch(typeof(ProfileMenuManager))] -internal class ProfileMenuManagerPatches : QSBPatch +public class ProfileMenuManagerPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; public override GameVendor PatchVendor => GameVendor.Epic | GameVendor.Steam; diff --git a/QSB/SaveSync/Patches/TitleScreenManagerPatchesCommon.cs b/QSB/SaveSync/Patches/TitleScreenManagerPatchesCommon.cs index afdfbb8b..7b100286 100644 --- a/QSB/SaveSync/Patches/TitleScreenManagerPatchesCommon.cs +++ b/QSB/SaveSync/Patches/TitleScreenManagerPatchesCommon.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.SaveSync.Patches; [HarmonyPatch(typeof(TitleScreenManager))] -internal class TitleScreenManagerPatchesCommon : QSBPatch +public class TitleScreenManagerPatchesCommon : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; diff --git a/QSB/SaveSync/Patches/TitleScreenManagerPatchesGamepass.cs b/QSB/SaveSync/Patches/TitleScreenManagerPatchesGamepass.cs index 4f6fbe39..c1e9bce5 100644 --- a/QSB/SaveSync/Patches/TitleScreenManagerPatchesGamepass.cs +++ b/QSB/SaveSync/Patches/TitleScreenManagerPatchesGamepass.cs @@ -6,7 +6,7 @@ using UnityEngine.UI; namespace QSB.SaveSync.Patches; [HarmonyPatch(typeof(TitleScreenManager))] -internal class TitleScreenManagerPatchesGamepass : QSBPatch +public class TitleScreenManagerPatchesGamepass : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; public override GameVendor PatchVendor => GameVendor.Gamepass; diff --git a/QSB/SaveSync/Patches/TitleScreenManagerPatchesStandalone.cs b/QSB/SaveSync/Patches/TitleScreenManagerPatchesStandalone.cs index 3bae3f7a..2edfa62b 100644 --- a/QSB/SaveSync/Patches/TitleScreenManagerPatchesStandalone.cs +++ b/QSB/SaveSync/Patches/TitleScreenManagerPatchesStandalone.cs @@ -4,7 +4,7 @@ using QSB.Patches; namespace QSB.SaveSync.Patches; [HarmonyPatch(typeof(TitleScreenManager))] -internal class TitleScreenManagerPatchesStandalone : QSBPatch +public class TitleScreenManagerPatchesStandalone : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnModStart; public override GameVendor PatchVendor => GameVendor.Epic | GameVendor.Steam; diff --git a/QSB/SaveSync/QSBMSStoreProfileManager.cs b/QSB/SaveSync/QSBMSStoreProfileManager.cs index 89befeaa..a41a2aaf 100644 --- a/QSB/SaveSync/QSBMSStoreProfileManager.cs +++ b/QSB/SaveSync/QSBMSStoreProfileManager.cs @@ -10,7 +10,7 @@ using UnityEngine.InputSystem; namespace QSB.SaveSync; -internal class QSBMSStoreProfileManager : IProfileManager +public class QSBMSStoreProfileManager : IProfileManager { private const string OW_SAVE_CONTAINER_NAME = "GameSave"; private const string OW_GAME_SAVE_BLOB_NAME = "Outer Wilds Converted"; diff --git a/QSB/SaveSync/QSBStandaloneProfileManager.cs b/QSB/SaveSync/QSBStandaloneProfileManager.cs index b78c5e9f..8700d81f 100644 --- a/QSB/SaveSync/QSBStandaloneProfileManager.cs +++ b/QSB/SaveSync/QSBStandaloneProfileManager.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace QSB.SaveSync; -internal class QSBStandaloneProfileManager : IProfileManager +public class QSBStandaloneProfileManager : IProfileManager { private static QSBStandaloneProfileManager s_instance; diff --git a/QSB/ServerSettings/ServerSettingsManager.cs b/QSB/ServerSettings/ServerSettingsManager.cs index 76274dd4..731201a7 100644 --- a/QSB/ServerSettings/ServerSettingsManager.cs +++ b/QSB/ServerSettings/ServerSettingsManager.cs @@ -3,7 +3,7 @@ using UnityEngine; namespace QSB.ServerSettings; -internal class ServerSettingsManager : MonoBehaviour, IAddComponentOnStart +public class ServerSettingsManager : MonoBehaviour, IAddComponentOnStart { public static bool ServerShowPlayerNames; public static bool ShowPlayerNames => (ServerShowPlayerNames || QSBCore.IsHost) && QSBCore.ShowPlayerNames; diff --git a/QSB/ServerSettings/ServerSettingsMessage.cs b/QSB/ServerSettings/ServerSettingsMessage.cs index 1b88b00c..4b6c65a9 100644 --- a/QSB/ServerSettings/ServerSettingsMessage.cs +++ b/QSB/ServerSettings/ServerSettingsMessage.cs @@ -3,7 +3,7 @@ using QSB.Messaging; namespace QSB.ServerSettings; -internal class ServerSettingsMessage : QSBMessage +public class ServerSettingsMessage : QSBMessage { private bool _showPlayerNames; diff --git a/QSB/ShipSync/Messages/Component/ComponentDamagedMessage.cs b/QSB/ShipSync/Messages/Component/ComponentDamagedMessage.cs index 4487bfa7..bb0fc42c 100644 --- a/QSB/ShipSync/Messages/Component/ComponentDamagedMessage.cs +++ b/QSB/ShipSync/Messages/Component/ComponentDamagedMessage.cs @@ -3,7 +3,7 @@ using QSB.ShipSync.WorldObjects; namespace QSB.ShipSync.Messages.Component; -internal class ComponentDamagedMessage : QSBWorldObjectMessage +public class ComponentDamagedMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.SetDamaged(); } \ No newline at end of file diff --git a/QSB/ShipSync/Messages/Component/ComponentRepairTickMessage.cs b/QSB/ShipSync/Messages/Component/ComponentRepairTickMessage.cs index b6f0ed4d..8df5f313 100644 --- a/QSB/ShipSync/Messages/Component/ComponentRepairTickMessage.cs +++ b/QSB/ShipSync/Messages/Component/ComponentRepairTickMessage.cs @@ -3,7 +3,7 @@ using QSB.ShipSync.WorldObjects; namespace QSB.ShipSync.Messages.Component; -internal class ComponentRepairTickMessage : QSBWorldObjectMessage +public class ComponentRepairTickMessage : QSBWorldObjectMessage { public ComponentRepairTickMessage(float repairFraction) : base(repairFraction) { } diff --git a/QSB/ShipSync/Messages/Component/ComponentRepairedMessage.cs b/QSB/ShipSync/Messages/Component/ComponentRepairedMessage.cs index 14394628..f2f2ba53 100644 --- a/QSB/ShipSync/Messages/Component/ComponentRepairedMessage.cs +++ b/QSB/ShipSync/Messages/Component/ComponentRepairedMessage.cs @@ -3,7 +3,7 @@ using QSB.ShipSync.WorldObjects; namespace QSB.ShipSync.Messages.Component; -internal class ComponentRepairedMessage : QSBWorldObjectMessage +public class ComponentRepairedMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.SetRepaired(); } \ No newline at end of file diff --git a/QSB/ShipSync/Messages/FlyShipMessage.cs b/QSB/ShipSync/Messages/FlyShipMessage.cs index f73c8a7e..de78f4e3 100644 --- a/QSB/ShipSync/Messages/FlyShipMessage.cs +++ b/QSB/ShipSync/Messages/FlyShipMessage.cs @@ -11,7 +11,7 @@ namespace QSB.ShipSync.Messages; /// /// TODO: initial state for the current flyer /// -internal class FlyShipMessage : QSBMessage +public class FlyShipMessage : QSBMessage { static FlyShipMessage() { diff --git a/QSB/ShipSync/Messages/FunnelEnableMessage.cs b/QSB/ShipSync/Messages/FunnelEnableMessage.cs index dbfdb3ce..8017a8f3 100644 --- a/QSB/ShipSync/Messages/FunnelEnableMessage.cs +++ b/QSB/ShipSync/Messages/FunnelEnableMessage.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.ShipSync.Messages; -internal class FunnelEnableMessage : QSBMessage +public class FunnelEnableMessage : QSBMessage { public override bool ShouldReceive => QSBWorldSync.AllObjectsReady; diff --git a/QSB/ShipSync/Messages/HatchMessage.cs b/QSB/ShipSync/Messages/HatchMessage.cs index ccf05e70..685fb45d 100644 --- a/QSB/ShipSync/Messages/HatchMessage.cs +++ b/QSB/ShipSync/Messages/HatchMessage.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.ShipSync.Messages; -internal class HatchMessage : QSBMessage +public class HatchMessage : QSBMessage { public HatchMessage(bool open) : base(open) { } diff --git a/QSB/ShipSync/Messages/Hull/HullChangeIntegrityMessage.cs b/QSB/ShipSync/Messages/Hull/HullChangeIntegrityMessage.cs index a96f720f..9a9060b1 100644 --- a/QSB/ShipSync/Messages/Hull/HullChangeIntegrityMessage.cs +++ b/QSB/ShipSync/Messages/Hull/HullChangeIntegrityMessage.cs @@ -3,7 +3,7 @@ using QSB.ShipSync.WorldObjects; namespace QSB.ShipSync.Messages.Hull; -internal class HullChangeIntegrityMessage : QSBWorldObjectMessage +public class HullChangeIntegrityMessage : QSBWorldObjectMessage { public HullChangeIntegrityMessage(float integrity) : base(integrity) { } diff --git a/QSB/ShipSync/Messages/Hull/HullDamagedMessage.cs b/QSB/ShipSync/Messages/Hull/HullDamagedMessage.cs index 46209a2b..08e58d83 100644 --- a/QSB/ShipSync/Messages/Hull/HullDamagedMessage.cs +++ b/QSB/ShipSync/Messages/Hull/HullDamagedMessage.cs @@ -3,7 +3,7 @@ using QSB.ShipSync.WorldObjects; namespace QSB.ShipSync.Messages.Hull; -internal class HullDamagedMessage : QSBWorldObjectMessage +public class HullDamagedMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.SetDamaged(); } \ No newline at end of file diff --git a/QSB/ShipSync/Messages/Hull/HullRepairedMessage.cs b/QSB/ShipSync/Messages/Hull/HullRepairedMessage.cs index 0c711251..692ab846 100644 --- a/QSB/ShipSync/Messages/Hull/HullRepairedMessage.cs +++ b/QSB/ShipSync/Messages/Hull/HullRepairedMessage.cs @@ -3,7 +3,7 @@ using QSB.ShipSync.WorldObjects; namespace QSB.ShipSync.Messages.Hull; -internal class HullRepairedMessage : QSBWorldObjectMessage +public class HullRepairedMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.SetRepaired(); } \ No newline at end of file diff --git a/QSB/ShipSync/Messages/LandingCameraMessage.cs b/QSB/ShipSync/Messages/LandingCameraMessage.cs index c42a6c32..91a33dae 100644 --- a/QSB/ShipSync/Messages/LandingCameraMessage.cs +++ b/QSB/ShipSync/Messages/LandingCameraMessage.cs @@ -3,7 +3,7 @@ using QSB.Utility; namespace QSB.ShipSync.Messages; -internal class LandingCameraMessage : QSBMessage +public class LandingCameraMessage : QSBMessage { public LandingCameraMessage(bool on) : base(on) { } diff --git a/QSB/ShipSync/Messages/LegDetachMessage.cs b/QSB/ShipSync/Messages/LegDetachMessage.cs index f0d87dd0..cde3b3d9 100644 --- a/QSB/ShipSync/Messages/LegDetachMessage.cs +++ b/QSB/ShipSync/Messages/LegDetachMessage.cs @@ -3,7 +3,7 @@ using QSB.ShipSync.WorldObjects; namespace QSB.ShipSync.Messages; -internal class LegDetachMessage : QSBWorldObjectMessage +public class LegDetachMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.AttachedObject.Detach(); diff --git a/QSB/ShipSync/Messages/ModuleDetachMessage.cs b/QSB/ShipSync/Messages/ModuleDetachMessage.cs index b7ab2e81..bbb3f842 100644 --- a/QSB/ShipSync/Messages/ModuleDetachMessage.cs +++ b/QSB/ShipSync/Messages/ModuleDetachMessage.cs @@ -3,7 +3,7 @@ using QSB.ShipSync.WorldObjects; namespace QSB.ShipSync.Messages; -internal class ModuleDetachMessage : QSBWorldObjectMessage +public class ModuleDetachMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.AttachedObject.Detach(); diff --git a/QSB/ShipSync/Messages/ReactorCountdownMessage.cs b/QSB/ShipSync/Messages/ReactorCountdownMessage.cs index 7d88a5bc..b2e6d325 100644 --- a/QSB/ShipSync/Messages/ReactorCountdownMessage.cs +++ b/QSB/ShipSync/Messages/ReactorCountdownMessage.cs @@ -3,7 +3,7 @@ using QSB.WorldSync; namespace QSB.ShipSync.Messages; -internal class ReactorCountdownMessage : QSBMessage +public class ReactorCountdownMessage : QSBMessage { public ReactorCountdownMessage(float countdown) : base(countdown) { } diff --git a/QSB/ShipSync/Messages/ShipIgnitionMessage.cs b/QSB/ShipSync/Messages/ShipIgnitionMessage.cs index ff7bdd18..317aba61 100644 --- a/QSB/ShipSync/Messages/ShipIgnitionMessage.cs +++ b/QSB/ShipSync/Messages/ShipIgnitionMessage.cs @@ -5,7 +5,7 @@ using static QSB.ShipSync.Messages.ShipIgnitionMessage; namespace QSB.ShipSync.Messages; -internal class ShipIgnitionMessage : QSBMessage +public class ShipIgnitionMessage : QSBMessage { public enum ShipIgnitionType { diff --git a/QSB/ShipSync/Messages/ShipLightMessage.cs b/QSB/ShipSync/Messages/ShipLightMessage.cs index e81fdec0..856d921e 100644 --- a/QSB/ShipSync/Messages/ShipLightMessage.cs +++ b/QSB/ShipSync/Messages/ShipLightMessage.cs @@ -3,7 +3,7 @@ using QSB.ShipSync.WorldObjects; namespace QSB.ShipSync.Messages; -internal class ShipLightMessage : QSBWorldObjectMessage +public class ShipLightMessage : QSBWorldObjectMessage { public ShipLightMessage(bool on) : base(on) { } diff --git a/QSB/ShipSync/TransformSync/ShipLegTransformSync.cs b/QSB/ShipSync/TransformSync/ShipLegTransformSync.cs index 39e4db8f..241c201d 100644 --- a/QSB/ShipSync/TransformSync/ShipLegTransformSync.cs +++ b/QSB/ShipSync/TransformSync/ShipLegTransformSync.cs @@ -5,7 +5,7 @@ using QSB.WorldSync; namespace QSB.ShipSync.TransformSync; -internal class ShipLegTransformSync : SectoredRigidbodySync, ILinkedNetworkBehaviour +public class ShipLegTransformSync : SectoredRigidbodySync, ILinkedNetworkBehaviour { /// /// normally prints error when attached object is null. diff --git a/QSB/ShipSync/TransformSync/ShipModuleTransformSync.cs b/QSB/ShipSync/TransformSync/ShipModuleTransformSync.cs index 72cb2d2d..bf85b2e6 100644 --- a/QSB/ShipSync/TransformSync/ShipModuleTransformSync.cs +++ b/QSB/ShipSync/TransformSync/ShipModuleTransformSync.cs @@ -5,7 +5,7 @@ using QSB.WorldSync; namespace QSB.ShipSync.TransformSync; -internal class ShipModuleTransformSync : SectoredRigidbodySync, ILinkedNetworkBehaviour +public class ShipModuleTransformSync : SectoredRigidbodySync, ILinkedNetworkBehaviour { /// /// normally prints error when attached object is null. diff --git a/QSB/ShipSync/WorldObjects/QSBShipComponent.cs b/QSB/ShipSync/WorldObjects/QSBShipComponent.cs index 244a1ef3..27762abf 100644 --- a/QSB/ShipSync/WorldObjects/QSBShipComponent.cs +++ b/QSB/ShipSync/WorldObjects/QSBShipComponent.cs @@ -5,7 +5,7 @@ using QSB.WorldSync; namespace QSB.ShipSync.WorldObjects; -internal class QSBShipComponent : WorldObject +public class QSBShipComponent : WorldObject { public override void SendInitialState(uint to) { diff --git a/QSB/ShipSync/WorldObjects/QSBShipDetachableLeg.cs b/QSB/ShipSync/WorldObjects/QSBShipDetachableLeg.cs index d0355e18..6f32f82d 100644 --- a/QSB/ShipSync/WorldObjects/QSBShipDetachableLeg.cs +++ b/QSB/ShipSync/WorldObjects/QSBShipDetachableLeg.cs @@ -9,7 +9,7 @@ using UnityEngine; namespace QSB.ShipSync.WorldObjects; -internal class QSBShipDetachableLeg : LinkedWorldObject +public class QSBShipDetachableLeg : LinkedWorldObject { protected override GameObject NetworkObjectPrefab => QSBNetworkManager.singleton.ShipLegPrefab; protected override bool SpawnWithServerOwnership => true; diff --git a/QSB/ShipSync/WorldObjects/QSBShipDetachableModule.cs b/QSB/ShipSync/WorldObjects/QSBShipDetachableModule.cs index f3de6892..bd57f9ae 100644 --- a/QSB/ShipSync/WorldObjects/QSBShipDetachableModule.cs +++ b/QSB/ShipSync/WorldObjects/QSBShipDetachableModule.cs @@ -9,7 +9,7 @@ using UnityEngine; namespace QSB.ShipSync.WorldObjects; -internal class QSBShipDetachableModule : LinkedWorldObject +public class QSBShipDetachableModule : LinkedWorldObject { protected override GameObject NetworkObjectPrefab => QSBNetworkManager.singleton.ShipModulePrefab; protected override bool SpawnWithServerOwnership => true; diff --git a/QSB/ShipSync/WorldObjects/QSBShipHull.cs b/QSB/ShipSync/WorldObjects/QSBShipHull.cs index 16019147..4e2ace73 100644 --- a/QSB/ShipSync/WorldObjects/QSBShipHull.cs +++ b/QSB/ShipSync/WorldObjects/QSBShipHull.cs @@ -5,7 +5,7 @@ using QSB.WorldSync; namespace QSB.ShipSync.WorldObjects; -internal class QSBShipHull : WorldObject +public class QSBShipHull : WorldObject { public override void SendInitialState(uint to) { diff --git a/QSB/ShipSync/WorldObjects/QSBShipLight.cs b/QSB/ShipSync/WorldObjects/QSBShipLight.cs index 2d545b3d..765598a8 100644 --- a/QSB/ShipSync/WorldObjects/QSBShipLight.cs +++ b/QSB/ShipSync/WorldObjects/QSBShipLight.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.ShipSync.WorldObjects; -internal class QSBShipLight : WorldObject +public class QSBShipLight : WorldObject { public override void SendInitialState(uint to) => this.SendMessage(new ShipLightMessage(AttachedObject._on) { To = to }); diff --git a/QSB/StatueSync/Messages/StartStatueMessage.cs b/QSB/StatueSync/Messages/StartStatueMessage.cs index 3b4298cf..c7669271 100644 --- a/QSB/StatueSync/Messages/StartStatueMessage.cs +++ b/QSB/StatueSync/Messages/StartStatueMessage.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.StatueSync.Messages; -internal class StartStatueMessage : QSBMessage +public class StartStatueMessage : QSBMessage { private Vector3 PlayerPosition; private Quaternion PlayerRotation; diff --git a/QSB/StatueSync/Patches/StatuePatches.cs b/QSB/StatueSync/Patches/StatuePatches.cs index 3d4c05dc..b865e878 100644 --- a/QSB/StatueSync/Patches/StatuePatches.cs +++ b/QSB/StatueSync/Patches/StatuePatches.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB.StatueSync.Patches; [HarmonyPatch] -internal class StatuePatches : QSBPatch +public class StatuePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/StatueSync/StatueManager.cs b/QSB/StatueSync/StatueManager.cs index 6ed22477..d0f5e8b4 100644 --- a/QSB/StatueSync/StatueManager.cs +++ b/QSB/StatueSync/StatueManager.cs @@ -6,7 +6,7 @@ using UnityEngine; namespace QSB.StatueSync; -internal class StatueManager : MonoBehaviour, IAddComponentOnStart +public class StatueManager : MonoBehaviour, IAddComponentOnStart { public static StatueManager Instance { get; private set; } public bool HasStartedStatueLocally; diff --git a/QSB/Syncs/Occasional/OccasionalManager.cs b/QSB/Syncs/Occasional/OccasionalManager.cs index 726a861d..1b0ffb9d 100644 --- a/QSB/Syncs/Occasional/OccasionalManager.cs +++ b/QSB/Syncs/Occasional/OccasionalManager.cs @@ -8,7 +8,7 @@ using System.Threading; namespace QSB.Syncs.Occasional; -internal class OccasionalManager : WorldObjectManager +public class OccasionalManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; diff --git a/QSB/TeleportingPlanetsPatch.cs b/QSB/TeleportingPlanetsPatch.cs index d222911c..84816439 100644 --- a/QSB/TeleportingPlanetsPatch.cs +++ b/QSB/TeleportingPlanetsPatch.cs @@ -8,7 +8,7 @@ using UnityEngine; namespace QSB; /// -/// TEMPORARY: this is for trying to solve this stupid fucking bug (gorp) +/// "TEMPORARY": this is for trying to solve this stupid fucking bug (gorp) /// [HarmonyPatch(typeof(OWRigidbody))] public class TeleportingPlanetsPatch : QSBPatch @@ -21,7 +21,7 @@ public class TeleportingPlanetsPatch : QSBPatch { if (__instance.TryGetComponent(out var astroObject) && astroObject._name != AstroObject.Name.ProbeCannon) { - DebugLog.ToAll($"AHHHHHHHHH!!!!!!!!!\n{__instance.name}\n{Environment.StackTrace}", MessageType.Error); + DebugLog.ToConsole($"AHHHHHHHHH!!!!!!!!!\nPlanet {__instance.name} teleported! Please screenshot this and contact devs!\n{Environment.StackTrace}", MessageType.Fatal); } } } diff --git a/QSB/TimeSync/Patches/TimePatches.cs b/QSB/TimeSync/Patches/TimePatches.cs index 66d7899c..1010b352 100644 --- a/QSB/TimeSync/Patches/TimePatches.cs +++ b/QSB/TimeSync/Patches/TimePatches.cs @@ -9,7 +9,7 @@ using UnityEngine; namespace QSB.TimeSync.Patches; [HarmonyPatch] -internal class TimePatches : QSBPatch +public class TimePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; @@ -44,7 +44,7 @@ internal class TimePatches : QSBPatch => OWInput.ChangeInputMode(InputMode.Character); } -internal class ClientTimePatches : QSBPatch +public class ClientTimePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect; diff --git a/QSB/TimeSync/TimeSyncUI.cs b/QSB/TimeSync/TimeSyncUI.cs index 60bce5e8..eea59b58 100644 --- a/QSB/TimeSync/TimeSyncUI.cs +++ b/QSB/TimeSync/TimeSyncUI.cs @@ -8,7 +8,7 @@ using UnityEngine.UI; namespace QSB.TimeSync; -internal class TimeSyncUI : MonoBehaviour, IAddComponentOnStart +public class TimeSyncUI : MonoBehaviour, IAddComponentOnStart { private static TimeSyncUI _instance; diff --git a/QSB/Tools/FlashlightTool/FlashlightCreator.cs b/QSB/Tools/FlashlightTool/FlashlightCreator.cs index 04cb7dbd..eb9dc67b 100644 --- a/QSB/Tools/FlashlightTool/FlashlightCreator.cs +++ b/QSB/Tools/FlashlightTool/FlashlightCreator.cs @@ -2,7 +2,7 @@ namespace QSB.Tools.FlashlightTool; -internal static class FlashlightCreator +public static class FlashlightCreator { internal static void CreateFlashlight(PlayerInfo player) { diff --git a/QSB/Tools/ProbeLauncherTool/Messages/ChangeModeMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/ChangeModeMessage.cs index 169560f2..3e976786 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/ChangeModeMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/ChangeModeMessage.cs @@ -3,7 +3,7 @@ using QSB.Tools.ProbeLauncherTool.WorldObjects; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class ChangeModeMessage : QSBWorldObjectMessage +public class ChangeModeMessage : QSBWorldObjectMessage { public ChangeModeMessage() : base() { } diff --git a/QSB/Tools/ProbeLauncherTool/Messages/LaunchProbeMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/LaunchProbeMessage.cs index 535c1a2f..d851191f 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/LaunchProbeMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/LaunchProbeMessage.cs @@ -3,7 +3,7 @@ using QSB.Tools.ProbeLauncherTool.WorldObjects; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class LaunchProbeMessage : QSBWorldObjectMessage +public class LaunchProbeMessage : QSBWorldObjectMessage { public LaunchProbeMessage(bool playEffects, uint probeOwnerID) : base((playEffects, probeOwnerID)) { } diff --git a/QSB/Tools/ProbeLauncherTool/Messages/PlayerEquipLauncherMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/PlayerEquipLauncherMessage.cs index 74ddf8c8..d98e2d72 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/PlayerEquipLauncherMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/PlayerEquipLauncherMessage.cs @@ -3,7 +3,7 @@ using QSB.Player; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class PlayerEquipLauncherMessage : QSBMessage +public class PlayerEquipLauncherMessage : QSBMessage { public PlayerEquipLauncherMessage(bool equipped) : base(equipped) { } diff --git a/QSB/Tools/ProbeLauncherTool/Messages/PlayerLaunchProbeMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/PlayerLaunchProbeMessage.cs index 95bddbe8..9ecf0368 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/PlayerLaunchProbeMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/PlayerLaunchProbeMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class PlayerLaunchProbeMessage : QSBMessage +public class PlayerLaunchProbeMessage : QSBMessage { public override bool ShouldReceive => QSBWorldSync.AllObjectsReady; diff --git a/QSB/Tools/ProbeLauncherTool/Messages/PlayerLauncherChangeModeMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/PlayerLauncherChangeModeMessage.cs index 14fd7da7..f494b540 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/PlayerLauncherChangeModeMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/PlayerLauncherChangeModeMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class PlayerLauncherChangeModeMessage : QSBMessage +public class PlayerLauncherChangeModeMessage : QSBMessage { public override bool ShouldReceive => QSBWorldSync.AllObjectsReady; diff --git a/QSB/Tools/ProbeLauncherTool/Messages/PlayerLauncherTakeSnapshotMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/PlayerLauncherTakeSnapshotMessage.cs index 93b090d0..9a2a1cf5 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/PlayerLauncherTakeSnapshotMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/PlayerLauncherTakeSnapshotMessage.cs @@ -5,7 +5,7 @@ using QSB.WorldSync; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class PlayerLauncherTakeSnapshotMessage : QSBMessage +public class PlayerLauncherTakeSnapshotMessage : QSBMessage { public PlayerLauncherTakeSnapshotMessage(ProbeCamera.ID cameraId) : base(cameraId) { } diff --git a/QSB/Tools/ProbeLauncherTool/Messages/PlayerRetrieveProbeMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/PlayerRetrieveProbeMessage.cs index 4fd48ef4..6fc1bed4 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/PlayerRetrieveProbeMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/PlayerRetrieveProbeMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class PlayerRetrieveProbeMessage : QSBMessage +public class PlayerRetrieveProbeMessage : QSBMessage { public PlayerRetrieveProbeMessage(bool playEffects) : base(playEffects) { } diff --git a/QSB/Tools/ProbeLauncherTool/Messages/RemoveSnapshotMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/RemoveSnapshotMessage.cs index 3d75101b..938b5dd9 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/RemoveSnapshotMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/RemoveSnapshotMessage.cs @@ -5,7 +5,7 @@ using QSB.QuantumSync; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class RemoveSnapshotMessage : QSBMessage +public class RemoveSnapshotMessage : QSBMessage { static RemoveSnapshotMessage() => GlobalMessenger.AddListener(OWEvents.ProbeSnapshotRemoved, Handle); diff --git a/QSB/Tools/ProbeLauncherTool/Messages/RetrieveProbeMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/RetrieveProbeMessage.cs index 4a29f84c..2cc60f6c 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/RetrieveProbeMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/RetrieveProbeMessage.cs @@ -3,7 +3,7 @@ using QSB.Tools.ProbeLauncherTool.WorldObjects; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class RetrieveProbeMessage : QSBWorldObjectMessage +public class RetrieveProbeMessage : QSBWorldObjectMessage { public RetrieveProbeMessage(bool playEffects) : base(playEffects) { } diff --git a/QSB/Tools/ProbeLauncherTool/Messages/TakeSnapshotMessage.cs b/QSB/Tools/ProbeLauncherTool/Messages/TakeSnapshotMessage.cs index f0d1e77c..c75339d7 100644 --- a/QSB/Tools/ProbeLauncherTool/Messages/TakeSnapshotMessage.cs +++ b/QSB/Tools/ProbeLauncherTool/Messages/TakeSnapshotMessage.cs @@ -5,7 +5,7 @@ using QSB.Tools.ProbeLauncherTool.WorldObjects; namespace QSB.Tools.ProbeLauncherTool.Messages; -internal class TakeSnapshotMessage : QSBWorldObjectMessage +public class TakeSnapshotMessage : QSBWorldObjectMessage { public TakeSnapshotMessage(ProbeCamera.ID cameraId) : base(cameraId) { } diff --git a/QSB/Tools/ProbeLauncherTool/Patches/LauncherPatches.cs b/QSB/Tools/ProbeLauncherTool/Patches/LauncherPatches.cs index 7b04554e..b5320c86 100644 --- a/QSB/Tools/ProbeLauncherTool/Patches/LauncherPatches.cs +++ b/QSB/Tools/ProbeLauncherTool/Patches/LauncherPatches.cs @@ -10,7 +10,7 @@ using QSB.WorldSync; namespace QSB.Tools.ProbeLauncherTool.Patches; [HarmonyPatch] -internal class LauncherPatches : QSBPatch +public class LauncherPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Tools/ProbeLauncherTool/ProbeLauncherCreator.cs b/QSB/Tools/ProbeLauncherTool/ProbeLauncherCreator.cs index bf0b6c22..04533482 100644 --- a/QSB/Tools/ProbeLauncherTool/ProbeLauncherCreator.cs +++ b/QSB/Tools/ProbeLauncherTool/ProbeLauncherCreator.cs @@ -2,7 +2,7 @@ namespace QSB.Tools.ProbeLauncherTool; -internal static class ProbeLauncherCreator +public static class ProbeLauncherCreator { internal static void CreateProbeLauncher(PlayerInfo player) { diff --git a/QSB/Tools/ProbeLauncherTool/ProbeLauncherListener.cs b/QSB/Tools/ProbeLauncherTool/ProbeLauncherListener.cs index 1af58bc1..cbeed437 100644 --- a/QSB/Tools/ProbeLauncherTool/ProbeLauncherListener.cs +++ b/QSB/Tools/ProbeLauncherTool/ProbeLauncherListener.cs @@ -4,7 +4,7 @@ using UnityEngine; namespace QSB.Tools.ProbeLauncherTool; -internal class ProbeLauncherListener : MonoBehaviour +public class ProbeLauncherListener : MonoBehaviour { private PlayerProbeLauncher _attachedLauncher; diff --git a/QSB/Tools/ProbeLauncherTool/ProbeLauncherManager.cs b/QSB/Tools/ProbeLauncherTool/ProbeLauncherManager.cs index 76123255..3902e0a3 100644 --- a/QSB/Tools/ProbeLauncherTool/ProbeLauncherManager.cs +++ b/QSB/Tools/ProbeLauncherTool/ProbeLauncherManager.cs @@ -7,7 +7,7 @@ using System.Threading; namespace QSB.Tools.ProbeLauncherTool; -internal class ProbeLauncherManager : WorldObjectManager +public class ProbeLauncherManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both; diff --git a/QSB/Tools/ProbeTool/Messages/PlayerProbeEventMessage.cs b/QSB/Tools/ProbeTool/Messages/PlayerProbeEventMessage.cs index e28c5123..f3494183 100644 --- a/QSB/Tools/ProbeTool/Messages/PlayerProbeEventMessage.cs +++ b/QSB/Tools/ProbeTool/Messages/PlayerProbeEventMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.Tools.ProbeTool.Messages; -internal class PlayerProbeEventMessage : QSBMessage +public class PlayerProbeEventMessage : QSBMessage { public PlayerProbeEventMessage(ProbeEvent probeEvent) : base(probeEvent) { } diff --git a/QSB/Tools/ProbeTool/Messages/ProbeEnterLeaveMessage.cs b/QSB/Tools/ProbeTool/Messages/ProbeEnterLeaveMessage.cs index 1f5d698e..ce2cf4a8 100644 --- a/QSB/Tools/ProbeTool/Messages/ProbeEnterLeaveMessage.cs +++ b/QSB/Tools/ProbeTool/Messages/ProbeEnterLeaveMessage.cs @@ -12,7 +12,7 @@ using QSB.Utility; namespace QSB.Tools.ProbeTool.Messages; -internal class ProbeEnterLeaveMessage : QSBMessage +public class ProbeEnterLeaveMessage : QSBMessage { static ProbeEnterLeaveMessage() { diff --git a/QSB/Tools/ProbeTool/Messages/ProbeStartRetrieveMessage.cs b/QSB/Tools/ProbeTool/Messages/ProbeStartRetrieveMessage.cs index 2ce212e0..c084e5ef 100644 --- a/QSB/Tools/ProbeTool/Messages/ProbeStartRetrieveMessage.cs +++ b/QSB/Tools/ProbeTool/Messages/ProbeStartRetrieveMessage.cs @@ -4,7 +4,7 @@ using QSB.WorldSync; namespace QSB.Tools.ProbeTool.Messages; -internal class ProbeStartRetrieveMessage : QSBMessage +public class ProbeStartRetrieveMessage : QSBMessage { public ProbeStartRetrieveMessage(float duration) : base(duration) { } diff --git a/QSB/Tools/ProbeTool/Messages/RotateProbeMessage.cs b/QSB/Tools/ProbeTool/Messages/RotateProbeMessage.cs index 50c7bc42..d42eb12c 100644 --- a/QSB/Tools/ProbeTool/Messages/RotateProbeMessage.cs +++ b/QSB/Tools/ProbeTool/Messages/RotateProbeMessage.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.Tools.ProbeTool.Messages; -internal class RotateProbeMessage : QSBMessage<(RotationType rotationType, Vector2 cameraRotation)> +public class RotateProbeMessage : QSBMessage<(RotationType rotationType, Vector2 cameraRotation)> { public RotateProbeMessage(RotationType rotationType, Vector2 cameraRotation) : base((rotationType, cameraRotation)) { } diff --git a/QSB/Tools/ProbeTool/Patches/ProbeToolPatches.cs b/QSB/Tools/ProbeTool/Patches/ProbeToolPatches.cs index 2ff376cb..7b0f487a 100644 --- a/QSB/Tools/ProbeTool/Patches/ProbeToolPatches.cs +++ b/QSB/Tools/ProbeTool/Patches/ProbeToolPatches.cs @@ -7,7 +7,7 @@ using UnityEngine; namespace QSB.Tools.ProbeTool.Patches; -internal class ProbeToolPatches : QSBPatch +public class ProbeToolPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Tools/ProbeTool/ProbeCreator.cs b/QSB/Tools/ProbeTool/ProbeCreator.cs index 8742ac34..84b41fe4 100644 --- a/QSB/Tools/ProbeTool/ProbeCreator.cs +++ b/QSB/Tools/ProbeTool/ProbeCreator.cs @@ -4,7 +4,7 @@ using UnityEngine; namespace QSB.Tools.ProbeTool; -internal static class ProbeCreator +public static class ProbeCreator { private static GameObject _prefab; diff --git a/QSB/Tools/ProbeTool/ProbeListener.cs b/QSB/Tools/ProbeTool/ProbeListener.cs index 877da27a..3bc34fb6 100644 --- a/QSB/Tools/ProbeTool/ProbeListener.cs +++ b/QSB/Tools/ProbeTool/ProbeListener.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.Tools.ProbeTool; -internal class ProbeListener : MonoBehaviour +public class ProbeListener : MonoBehaviour { private SurveyorProbe _attachedProbe; diff --git a/QSB/Tools/ProbeTool/QSBProbeAnimatorController.cs b/QSB/Tools/ProbeTool/QSBProbeAnimatorController.cs index 7a4915af..b4f339b8 100644 --- a/QSB/Tools/ProbeTool/QSBProbeAnimatorController.cs +++ b/QSB/Tools/ProbeTool/QSBProbeAnimatorController.cs @@ -3,7 +3,7 @@ namespace QSB.Tools.ProbeTool; [RequireComponent(typeof(Animator))] -internal class QSBProbeAnimatorController : MonoBehaviour +public class QSBProbeAnimatorController : MonoBehaviour { private Animator _animator; private QSBSurveyorProbe _probe; diff --git a/QSB/Tools/ProbeTool/QSBProbeEffects.cs b/QSB/Tools/ProbeTool/QSBProbeEffects.cs index e517f75f..6338e951 100644 --- a/QSB/Tools/ProbeTool/QSBProbeEffects.cs +++ b/QSB/Tools/ProbeTool/QSBProbeEffects.cs @@ -6,7 +6,7 @@ using UnityEngine; namespace QSB.Tools.ProbeTool; [UsedInUnityProject] -internal class QSBProbeEffects : MonoBehaviour +public class QSBProbeEffects : MonoBehaviour { public OWAudioSource _flightLoopAudio; public OWAudioSource _anchorAudio; diff --git a/QSB/Tools/ProbeTool/QSBProbeLantern.cs b/QSB/Tools/ProbeTool/QSBProbeLantern.cs index 728033aa..3a76709a 100644 --- a/QSB/Tools/ProbeTool/QSBProbeLantern.cs +++ b/QSB/Tools/ProbeTool/QSBProbeLantern.cs @@ -6,7 +6,7 @@ using UnityEngine; namespace QSB.Tools.ProbeTool; [UsedInUnityProject] -internal class QSBProbeLantern : MonoBehaviour +public class QSBProbeLantern : MonoBehaviour { public float _fadeInDuration; public AnimationCurve _fadeInCurve; diff --git a/QSB/Tools/ProbeTool/QSBProbeSpotlight.cs b/QSB/Tools/ProbeTool/QSBProbeSpotlight.cs index 00c60016..996a34d8 100644 --- a/QSB/Tools/ProbeTool/QSBProbeSpotlight.cs +++ b/QSB/Tools/ProbeTool/QSBProbeSpotlight.cs @@ -6,7 +6,7 @@ using UnityEngine; namespace QSB.Tools.ProbeTool; [UsedInUnityProject] -internal class QSBProbeSpotlight : MonoBehaviour +public class QSBProbeSpotlight : MonoBehaviour { public ProbeCamera.ID _id; public float _fadeInLength = 1f; diff --git a/QSB/Tools/SignalscopeTool/SignalscopeCreator.cs b/QSB/Tools/SignalscopeTool/SignalscopeCreator.cs index 1e386263..b0dfaf81 100644 --- a/QSB/Tools/SignalscopeTool/SignalscopeCreator.cs +++ b/QSB/Tools/SignalscopeTool/SignalscopeCreator.cs @@ -2,7 +2,7 @@ namespace QSB.Tools.SignalscopeTool; -internal static class SignalscopeCreator +public static class SignalscopeCreator { internal static void CreateSignalscope(PlayerInfo player) { diff --git a/QSB/Tools/TranslatorTool/Messages/IsTranslatingMessage.cs b/QSB/Tools/TranslatorTool/Messages/IsTranslatingMessage.cs index 155cf20f..40172946 100644 --- a/QSB/Tools/TranslatorTool/Messages/IsTranslatingMessage.cs +++ b/QSB/Tools/TranslatorTool/Messages/IsTranslatingMessage.cs @@ -3,7 +3,7 @@ using QSB.Player; namespace QSB.Tools.TranslatorTool.Messages; -internal class IsTranslatingMessage : QSBMessage +public class IsTranslatingMessage : QSBMessage { public IsTranslatingMessage(bool translating) : base(translating) { } diff --git a/QSB/Tools/TranslatorTool/Messages/TranslatorScrollMessage.cs b/QSB/Tools/TranslatorTool/Messages/TranslatorScrollMessage.cs index da6e872d..bd385f0d 100644 --- a/QSB/Tools/TranslatorTool/Messages/TranslatorScrollMessage.cs +++ b/QSB/Tools/TranslatorTool/Messages/TranslatorScrollMessage.cs @@ -3,7 +3,7 @@ using QSB.Player; namespace QSB.Tools.TranslatorTool.Messages; -internal class TranslatorScrollMessage : QSBMessage +public class TranslatorScrollMessage : QSBMessage { public TranslatorScrollMessage(float scrollPos) : base(scrollPos) { } diff --git a/QSB/Tools/TranslatorTool/Patches/TranslatorPatches.cs b/QSB/Tools/TranslatorTool/Patches/TranslatorPatches.cs index a3cf9a0a..bcb1b7b3 100644 --- a/QSB/Tools/TranslatorTool/Patches/TranslatorPatches.cs +++ b/QSB/Tools/TranslatorTool/Patches/TranslatorPatches.cs @@ -11,7 +11,7 @@ using UnityEngine; namespace QSB.Tools.TranslatorTool.Patches; -internal class TranslatorPatches : QSBPatch +public class TranslatorPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Tools/TranslatorTool/QSBNomaiTranslatorProp.cs b/QSB/Tools/TranslatorTool/QSBNomaiTranslatorProp.cs index c825e5b8..b2edf2d5 100644 --- a/QSB/Tools/TranslatorTool/QSBNomaiTranslatorProp.cs +++ b/QSB/Tools/TranslatorTool/QSBNomaiTranslatorProp.cs @@ -7,7 +7,7 @@ using UnityEngine.UI; namespace QSB.Tools.TranslatorTool; [UsedInUnityProject] -internal class QSBNomaiTranslatorProp : MonoBehaviour +public class QSBNomaiTranslatorProp : MonoBehaviour { private static MaterialPropertyBlock s_matPropBlock; private static int s_propID_EmissionColor; diff --git a/QSB/Tools/TranslatorTool/QSBTranslatorScanBeam.cs b/QSB/Tools/TranslatorTool/QSBTranslatorScanBeam.cs index adc484ca..4591349f 100644 --- a/QSB/Tools/TranslatorTool/QSBTranslatorScanBeam.cs +++ b/QSB/Tools/TranslatorTool/QSBTranslatorScanBeam.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.Tools.TranslatorTool; [UsedInUnityProject] -internal class QSBTranslatorScanBeam : MonoBehaviour +public class QSBTranslatorScanBeam : MonoBehaviour { public Renderer _projectorRenderer; public Renderer _lightVolumeRenderer; diff --git a/QSB/Tools/TranslatorTool/TranslationSync/Messages/SetAsTranslatedMessage.cs b/QSB/Tools/TranslatorTool/TranslationSync/Messages/SetAsTranslatedMessage.cs index 37b354e2..a1a650b5 100644 --- a/QSB/Tools/TranslatorTool/TranslationSync/Messages/SetAsTranslatedMessage.cs +++ b/QSB/Tools/TranslatorTool/TranslationSync/Messages/SetAsTranslatedMessage.cs @@ -3,7 +3,7 @@ using QSB.Tools.TranslatorTool.TranslationSync.WorldObjects; namespace QSB.Tools.TranslatorTool.TranslationSync.Messages; -internal class SetAsTranslatedMessage : QSBWorldObjectMessage +public class SetAsTranslatedMessage : QSBWorldObjectMessage { public SetAsTranslatedMessage(int textId) : base(textId) { } diff --git a/QSB/Tools/TranslatorTool/TranslationSync/Patches/SpiralPatches.cs b/QSB/Tools/TranslatorTool/TranslationSync/Patches/SpiralPatches.cs index 734d68d0..65e12210 100644 --- a/QSB/Tools/TranslatorTool/TranslationSync/Patches/SpiralPatches.cs +++ b/QSB/Tools/TranslatorTool/TranslationSync/Patches/SpiralPatches.cs @@ -7,7 +7,7 @@ using QSB.WorldSync; namespace QSB.Tools.TranslatorTool.TranslationSync.Patches; -internal class SpiralPatches : QSBPatch +public class SpiralPatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/Tools/TranslatorTool/TranslationSync/SpiralManager.cs b/QSB/Tools/TranslatorTool/TranslationSync/SpiralManager.cs index 21451a04..c09f40d6 100644 --- a/QSB/Tools/TranslatorTool/TranslationSync/SpiralManager.cs +++ b/QSB/Tools/TranslatorTool/TranslationSync/SpiralManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.Tools.TranslatorTool.TranslationSync; -internal class SpiralManager : WorldObjectManager +public class SpiralManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both; diff --git a/QSB/Tools/TranslatorTool/TranslationSync/WorldObjects/QSBNomaiText.cs b/QSB/Tools/TranslatorTool/TranslationSync/WorldObjects/QSBNomaiText.cs index 616b927b..07eb66c2 100644 --- a/QSB/Tools/TranslatorTool/TranslationSync/WorldObjects/QSBNomaiText.cs +++ b/QSB/Tools/TranslatorTool/TranslationSync/WorldObjects/QSBNomaiText.cs @@ -8,7 +8,7 @@ using System.Linq; namespace QSB.Tools.TranslatorTool.TranslationSync.WorldObjects; -internal class QSBNomaiText : WorldObject +public class QSBNomaiText : WorldObject { public override void SendInitialState(uint to) => GetTranslatedIds().ForEach(id => diff --git a/QSB/Tools/TranslatorTool/TranslatorCreator.cs b/QSB/Tools/TranslatorTool/TranslatorCreator.cs index 54f9f3d7..fd1f4ee6 100644 --- a/QSB/Tools/TranslatorTool/TranslatorCreator.cs +++ b/QSB/Tools/TranslatorTool/TranslatorCreator.cs @@ -2,7 +2,7 @@ namespace QSB.Tools.TranslatorTool; -internal static class TranslatorCreator +public static class TranslatorCreator { internal static void CreateTranslator(PlayerInfo player) { diff --git a/QSB/Utility/CustomRelativisticParticleSystem.cs b/QSB/Utility/CustomRelativisticParticleSystem.cs index 65520af1..f6803e56 100644 --- a/QSB/Utility/CustomRelativisticParticleSystem.cs +++ b/QSB/Utility/CustomRelativisticParticleSystem.cs @@ -5,7 +5,7 @@ using UnityEngine; namespace QSB.Utility; [UsedInUnityProject] -internal class CustomRelativisticParticleSystem : MonoBehaviour +public class CustomRelativisticParticleSystem : MonoBehaviour { private ParticleSystem _particleSystem; private Transform _simulationSpace; diff --git a/QSB/Utility/DebugCameraSettings.cs b/QSB/Utility/DebugCameraSettings.cs index 24a58338..661e5100 100644 --- a/QSB/Utility/DebugCameraSettings.cs +++ b/QSB/Utility/DebugCameraSettings.cs @@ -2,7 +2,7 @@ namespace QSB.Utility; -internal class DebugCameraSettings : MonoBehaviour, IAddComponentOnStart +public class DebugCameraSettings : MonoBehaviour, IAddComponentOnStart { public static void UpdateFromDebugSetting() { diff --git a/QSB/Utility/DebugGUI.cs b/QSB/Utility/DebugGUI.cs index ba90b93f..4d2bd3a3 100644 --- a/QSB/Utility/DebugGUI.cs +++ b/QSB/Utility/DebugGUI.cs @@ -15,7 +15,7 @@ using UnityEngine; namespace QSB.Utility; -internal class DebugGUI : MonoBehaviour, IAddComponentOnStart +public class DebugGUI : MonoBehaviour, IAddComponentOnStart { private const float _debugLineSpacing = 8f; private const float FixedWidth = 200f; diff --git a/QSB/Utility/DebugLog.cs b/QSB/Utility/DebugLog.cs index 020f436f..ba6ba294 100644 --- a/QSB/Utility/DebugLog.cs +++ b/QSB/Utility/DebugLog.cs @@ -21,15 +21,14 @@ public static class DebugLog message = $"[{ProcessInstanceId}] " + message; } - if (QSBCore.Helper == null) + // copied from https://github.com/ow-mods/owml/blob/master/src/OWML.Logging/ModSocketOutput.cs#L33 { - // yes i know this is only meant for OWML, but it's useful as a backup - ModConsole.OwmlConsole.WriteLine(message, type, GetCallingType()); - } - else - { - var socket = QSBCore.Helper.Console.GetValue("_socket"); - socket.WriteToSocket(new ModSocketMessage + var Logger = ModConsole.OwmlConsole.GetValue("Logger"); + var _socket = ModConsole.OwmlConsole.GetValue("_socket"); + + Logger?.Log($"{type}: {message}"); + + _socket.WriteToSocket(new ModSocketMessage { SenderName = "QSB", SenderType = GetCallingType(), @@ -39,29 +38,12 @@ public static class DebugLog if (type == MessageType.Fatal) { - socket.Close(); + _socket.Close(); Process.GetCurrentProcess().Kill(); } } } - public static void ToHud(string message) - { - if (Locator.GetPlayerBody() == null) - { - return; - } - - var data = new NotificationData(NotificationTarget.Player, message.ToUpper()); - NotificationManager.SharedInstance.PostNotification(data); - } - - public static void ToAll(string message, MessageType type = MessageType.Message) - { - ToConsole(message, type); - ToHud(message); - } - public static void DebugWrite(string message, MessageType type = MessageType.Message) { if (QSBCore.DebugSettings.DebugMode) @@ -74,6 +56,7 @@ public static class DebugLog new StackTrace(2) // skip this function and calling function .GetFrames()! .Select(x => x.GetMethod().DeclaringType!) + // BUG: this part doesnt work for some reason .First(x => x != typeof(DebugLog) && !x.IsDefined(typeof(CompilerGeneratedAttribute), true)) .Name; } diff --git a/QSB/Utility/Popcron.Gizmos/Drawers/FrustumDrawer.cs b/QSB/Utility/Popcron.Gizmos/Drawers/FrustumDrawer.cs index 70aef597..c2e983a1 100644 --- a/QSB/Utility/Popcron.Gizmos/Drawers/FrustumDrawer.cs +++ b/QSB/Utility/Popcron.Gizmos/Drawers/FrustumDrawer.cs @@ -2,7 +2,7 @@ namespace Popcron { - internal class FrustumDrawer : Drawer + public class FrustumDrawer : Drawer { public FrustumDrawer() { diff --git a/QSB/Utility/Popcron.Gizmos/Element.cs b/QSB/Utility/Popcron.Gizmos/Element.cs index 3883ecdc..8dea6c07 100644 --- a/QSB/Utility/Popcron.Gizmos/Element.cs +++ b/QSB/Utility/Popcron.Gizmos/Element.cs @@ -2,7 +2,7 @@ namespace Popcron { - internal class Element + public class Element { public Vector3[] points = { }; public Color color = Color.white; diff --git a/QSB/Utility/UIHelper.cs b/QSB/Utility/UIHelper.cs index 085720b7..a4cf8db8 100644 --- a/QSB/Utility/UIHelper.cs +++ b/QSB/Utility/UIHelper.cs @@ -2,7 +2,7 @@ namespace QSB.Utility; -internal static class UIHelper +public static class UIHelper { public static void ReplaceUI(UITextType key, string text) { diff --git a/QSB/Utility/VariableSync/BaseVariableSyncer.cs b/QSB/Utility/VariableSync/BaseVariableSyncer.cs index 27291a1b..0508931f 100644 --- a/QSB/Utility/VariableSync/BaseVariableSyncer.cs +++ b/QSB/Utility/VariableSync/BaseVariableSyncer.cs @@ -12,6 +12,8 @@ public abstract class BaseVariableSyncer : QSBNetworkBehaviour [NonSerialized] public T Value; + // DO NOT REMOVE THIS METHOD + public bool Bruh() => HasChanged(); protected override bool HasChanged() => !EqualityComparer.Default.Equals(PrevValue, Value); protected override void UpdatePrevData() => PrevValue = Value; protected override void Serialize(NetworkWriter writer) => writer.Write(Value); diff --git a/QSB/WorldSync/MiscManager.cs b/QSB/WorldSync/MiscManager.cs index 5294adc9..5d69b7b9 100644 --- a/QSB/WorldSync/MiscManager.cs +++ b/QSB/WorldSync/MiscManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.WorldSync; -internal class MiscManager : WorldObjectManager +public class MiscManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both; public override bool DlcOnly => false; diff --git a/QSB/WorldSync/QSBOWRigidbody.cs b/QSB/WorldSync/QSBOWRigidbody.cs index 323d342b..650c4990 100644 --- a/QSB/WorldSync/QSBOWRigidbody.cs +++ b/QSB/WorldSync/QSBOWRigidbody.cs @@ -3,7 +3,7 @@ /// /// todo make sure this isn't totally broken in weird esoteric cases oh god oh fuck /// -internal class QSBOWRigidbody : WorldObject +public class QSBOWRigidbody : WorldObject { public override bool ShouldDisplayDebug() => false; } diff --git a/QSB/WorldSync/WorldObjectsHashMessage.cs b/QSB/WorldSync/WorldObjectsHashMessage.cs index 482f782a..45905df5 100644 --- a/QSB/WorldSync/WorldObjectsHashMessage.cs +++ b/QSB/WorldSync/WorldObjectsHashMessage.cs @@ -8,7 +8,7 @@ namespace QSB.WorldSync; /// /// sends QSBWorldSync.WorldObjectsHash to the server for sanity checking /// -internal class WorldObjectsHashMessage : QSBMessage<(string managerName, string hash, int count)> +public class WorldObjectsHashMessage : QSBMessage<(string managerName, string hash, int count)> { public WorldObjectsHashMessage(string managerName, string hash, int count) : base((managerName, hash, count)) => To = 0; diff --git a/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairTickMessage.cs b/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairTickMessage.cs index 31278a9a..c47ed091 100644 --- a/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairTickMessage.cs +++ b/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairTickMessage.cs @@ -3,7 +3,7 @@ using QSB.ZeroGCaveSync.WorldObjects; namespace QSB.ZeroGCaveSync.Messages; -internal class SatelliteNodeRepairTickMessage : QSBWorldObjectMessage +public class SatelliteNodeRepairTickMessage : QSBWorldObjectMessage { public SatelliteNodeRepairTickMessage(float repairFraction) : base(repairFraction) { } diff --git a/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairedMessage.cs b/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairedMessage.cs index 7540e0c4..d47f1749 100644 --- a/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairedMessage.cs +++ b/QSB/ZeroGCaveSync/Messages/SatelliteNodeRepairedMessage.cs @@ -3,7 +3,7 @@ using QSB.ZeroGCaveSync.WorldObjects; namespace QSB.ZeroGCaveSync.Messages; -internal class SatelliteNodeRepairedMessage : QSBWorldObjectMessage +public class SatelliteNodeRepairedMessage : QSBWorldObjectMessage { public override void OnReceiveRemote() => WorldObject.SetRepaired(); } \ No newline at end of file diff --git a/QSB/ZeroGCaveSync/Patches/ZeroGCavePatches.cs b/QSB/ZeroGCaveSync/Patches/ZeroGCavePatches.cs index 2b102f81..ccc8043a 100644 --- a/QSB/ZeroGCaveSync/Patches/ZeroGCavePatches.cs +++ b/QSB/ZeroGCaveSync/Patches/ZeroGCavePatches.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace QSB.ZeroGCaveSync.Patches; [HarmonyPatch] -internal class ZeroGCavePatches : QSBPatch +public class ZeroGCavePatches : QSBPatch { public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; diff --git a/QSB/ZeroGCaveSync/WorldObjects/QSBSatelliteNode.cs b/QSB/ZeroGCaveSync/WorldObjects/QSBSatelliteNode.cs index 1b1386a5..1f3133a7 100644 --- a/QSB/ZeroGCaveSync/WorldObjects/QSBSatelliteNode.cs +++ b/QSB/ZeroGCaveSync/WorldObjects/QSBSatelliteNode.cs @@ -5,7 +5,7 @@ using QSB.ZeroGCaveSync.Messages; namespace QSB.ZeroGCaveSync.WorldObjects; -internal class QSBSatelliteNode : WorldObject +public class QSBSatelliteNode : WorldObject { public override void SendInitialState(uint to) { diff --git a/QSB/ZeroGCaveSync/ZeroGCaveManager.cs b/QSB/ZeroGCaveSync/ZeroGCaveManager.cs index 93f63462..d9c48273 100644 --- a/QSB/ZeroGCaveSync/ZeroGCaveManager.cs +++ b/QSB/ZeroGCaveSync/ZeroGCaveManager.cs @@ -5,7 +5,7 @@ using System.Threading; namespace QSB.ZeroGCaveSync; -internal class ZeroGCaveManager : WorldObjectManager +public class ZeroGCaveManager : WorldObjectManager { public override WorldObjectScene WorldObjectScene => WorldObjectScene.SolarSystem; diff --git a/QSB/manifest.json b/QSB/manifest.json index 3ce3c11c..2961914b 100644 --- a/QSB/manifest.json +++ b/QSB/manifest.json @@ -7,8 +7,8 @@ "body": "- Disable *all* other mods. (Can heavily affect performance)\n- Make sure you are not running any other network-intensive applications." }, "uniqueName": "Raicuparta.QuantumSpaceBuddies", - "version": "0.29.1", - "owmlVersion": "2.9.3", + "version": "0.30.0", + "owmlVersion": "2.9.5", "dependencies": [ "_nebula.MenuFramework", "JohnCorby.VanillaFix" ], "pathsToPreserve": [ "debugsettings.json" ], "requireLatestVersion": true diff --git a/TRANSLATING.md b/TRANSLATING.md index 8f4ba42a..c61d26cd 100644 --- a/TRANSLATING.md +++ b/TRANSLATING.md @@ -12,13 +12,13 @@ QSB can only be translated to the languages Outer Wilds supports - so if you don - German - Chinese (Simplified) - Spanish (Latin American) +- Turkish ### Un-translated languages : - Italian - Polish - Japanese - Korean -- Turkish ## Translating