Updated Server/Client attribute help text. (#3942)
Some checks are pending
Main / Run Unity Tests (push) Waiting to run
Main / Semantic Release (push) Blocked by required conditions
Main / Delete Old Workflow Runs (push) Waiting to run

Hopefully adds additional support in preventing confusion.
This commit is contained in:
JesusLuvsYooh 2024-11-11 12:06:29 +00:00 committed by GitHub
parent 1187a59b18
commit 1e04c9833b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,28 +48,28 @@ public class TargetRpcAttribute : Attribute
} }
/// <summary> /// <summary>
/// Prevents clients from running this method. /// Only an active server will run this method.
/// <para>Prints a warning if a client tries to execute this method.</para> /// <para>Prints a warning if a client or in-active server tries to execute this method.</para>
/// </summary> /// </summary>
[AttributeUsage(AttributeTargets.Method)] [AttributeUsage(AttributeTargets.Method)]
public class ServerAttribute : Attribute {} public class ServerAttribute : Attribute {}
/// <summary> /// <summary>
/// Prevents clients from running this method. /// Only an active server will run this method.
/// <para>No warning is thrown.</para> /// <para>No warning is thrown.</para>
/// </summary> /// </summary>
[AttributeUsage(AttributeTargets.Method)] [AttributeUsage(AttributeTargets.Method)]
public class ServerCallbackAttribute : Attribute {} public class ServerCallbackAttribute : Attribute {}
/// <summary> /// <summary>
/// Prevents the server from running this method. /// Only an active client will run this method.
/// <para>Prints a warning if the server tries to execute this method.</para> /// <para>Prints a warning if the server or in-active client tries to execute this method.</para>
/// </summary> /// </summary>
[AttributeUsage(AttributeTargets.Method)] [AttributeUsage(AttributeTargets.Method)]
public class ClientAttribute : Attribute {} public class ClientAttribute : Attribute {}
/// <summary> /// <summary>
/// Prevents the server from running this method. /// Only an active client will run this method.
/// <para>No warning is printed.</para> /// <para>No warning is printed.</para>
/// </summary> /// </summary>
[AttributeUsage(AttributeTargets.Method)] [AttributeUsage(AttributeTargets.Method)]