mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
66 lines
1.5 KiB
C#
66 lines
1.5 KiB
C#
|
using System;
|
||
|
|
||
|
#if ENABLE_UNET
|
||
|
|
||
|
namespace UnityEngine.Networking
|
||
|
{
|
||
|
[AttributeUsage(AttributeTargets.Class)]
|
||
|
public class NetworkSettingsAttribute : Attribute
|
||
|
{
|
||
|
public int channel = Channels.DefaultReliable;
|
||
|
public float sendInterval = 0.1f;
|
||
|
}
|
||
|
|
||
|
[AttributeUsage(AttributeTargets.Field)]
|
||
|
public class SyncVarAttribute : Attribute
|
||
|
{
|
||
|
public string hook;
|
||
|
}
|
||
|
|
||
|
[AttributeUsage(AttributeTargets.Method)]
|
||
|
public class CommandAttribute : Attribute
|
||
|
{
|
||
|
public int channel = Channels.DefaultReliable; // this is zero
|
||
|
}
|
||
|
|
||
|
[AttributeUsage(AttributeTargets.Method)]
|
||
|
public class ClientRpcAttribute : Attribute
|
||
|
{
|
||
|
public int channel = Channels.DefaultReliable; // this is zero
|
||
|
}
|
||
|
|
||
|
|
||
|
[AttributeUsage(AttributeTargets.Method)]
|
||
|
public class TargetRpcAttribute : Attribute
|
||
|
{
|
||
|
public int channel = Channels.DefaultReliable; // this is zero
|
||
|
}
|
||
|
|
||
|
[AttributeUsage(AttributeTargets.Event)]
|
||
|
public class SyncEventAttribute : Attribute
|
||
|
{
|
||
|
public int channel = Channels.DefaultReliable; // this is zero
|
||
|
}
|
||
|
|
||
|
[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
|