1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-25 16:34:17 +00:00
better-tee/Assets/Packages/Mirror/Runtime/CustomAttributes.cs
2019-09-17 17:43:32 +02:00

58 lines
1.7 KiB
C#

using System;
using System.ComponentModel;
using UnityEngine;
namespace Mirror
{
[EditorBrowsable(EditorBrowsableState.Never), Obsolete("Use NetworkBehaviour.syncInterval field instead. Can be modified in the Inspector too.")]
[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
{
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 {}
// For Scene property Drawer
public class SceneAttribute : PropertyAttribute {}
}