mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
61 lines
1.2 KiB
C#
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
|