Skip to content

Commit 30aa055

Browse files
committed
Change more module methods to be public
1 parent 5252e4b commit 30aa055

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

VRCOSC.App/SDK/Modules/Module.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,12 @@ private void invokeMethod(MethodBase method)
348348
/// <summary>
349349
/// Retrieves the player instance that gives you information about the local player, their built-in avatar parameters, and input controls
350350
/// </summary>
351-
protected Player GetPlayer() => AppManager.GetInstance().VRChatClient.Player;
351+
public Player GetPlayer() => AppManager.GetInstance().VRChatClient.Player;
352352

353353
/// <summary>
354354
/// Allows you to access the current state of SteamVR (or any OpenVR runtime)
355355
/// </summary>
356-
protected OVRClient GetOVRClient() => AppManager.GetInstance().OVRClient;
356+
public OVRClient GetOVRClient() => AppManager.GetInstance().OVRClient;
357357

358358
#region Callbacks
359359

@@ -391,7 +391,7 @@ protected virtual void OnPlayerUpdate()
391391
/// Logs to the terminal when the module is running
392392
/// </summary>
393393
/// <param name="message">The message to log to the terminal</param>
394-
protected void Log(string message)
394+
public void Log(string message)
395395
{
396396
Logger.Log($"[{Title}]: {message}", LoggingTarget.Terminal);
397397
}
@@ -400,7 +400,7 @@ protected void Log(string message)
400400
/// Logs to a module debug file when enabled in the settings
401401
/// </summary>
402402
/// <param name="message">The message to log to the file</param>
403-
protected void LogDebug(string message)
403+
public void LogDebug(string message)
404404
{
405405
if (!SettingsManager.GetInstance().GetValue<bool>(VRCOSCSetting.EnableAppDebug)) return;
406406

0 commit comments

Comments
 (0)