Skip to content

Commit

Permalink
Updated Server/Client attribute help text. (#3942)
Browse files Browse the repository at this point in the history
Hopefully adds additional support in preventing confusion.
  • Loading branch information
JesusLuvsYooh authored Nov 11, 2024
1 parent 1187a59 commit 1e04c98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Assets/Mirror/Core/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,28 @@ public class TargetRpcAttribute : Attribute
}

/// <summary>
/// Prevents clients from running this method.
/// <para>Prints a warning if a client tries to execute this method.</para>
/// Only an active server will run this method.
/// <para>Prints a warning if a client or in-active server tries to execute this method.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class ServerAttribute : Attribute {}

/// <summary>
/// Prevents clients from running this method.
/// Only an active server will run this method.
/// <para>No warning is thrown.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class ServerCallbackAttribute : Attribute {}

/// <summary>
/// Prevents the server from running this method.
/// <para>Prints a warning if the server tries to execute this method.</para>
/// Only an active client will run this method.
/// <para>Prints a warning if the server or in-active client tries to execute this method.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class ClientAttribute : Attribute {}

/// <summary>
/// Prevents the server from running this method.
/// Only an active client will run this method.
/// <para>No warning is printed.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
Expand Down

0 comments on commit 1e04c98

Please sign in to comment.