Mirror/Unity-Technologies-networking/Runtime/CustomAttributes.cs
2018-08-17 14:07:54 +02:00

61 lines
1.2 KiB
C#

using System;
#if ENABLE_UNET
namespace UnityEngine.Networking
{
[AttributeUsage(AttributeTargets.Class)]
public class NetworkSettingsAttribute : Attribute
{
public float sendInterval = 0.1f;
}
[AttributeUsage(AttributeTargets.Field)]
public class SyncVarAttribute : Attribute
{
public string hook;
}
[AttributeUsage(AttributeTargets.Method)]
public class CommandAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Method)]
public class ClientRpcAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Method)]
public class TargetRpcAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Event)]
public class SyncEventAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Method)]
public class ServerAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Method)]
public class ServerCallbackAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Method)]
public class ClientAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Method)]
public class ClientCallbackAttribute : Attribute
{
}
}
#endif //ENABLE_UNET