From b67fe66a91d5971c2900311114cb043512a1e8d6 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Wed, 30 Jan 2019 07:24:58 -0600 Subject: [PATCH] 4.x syntax --- Assets/Mirror/Runtime/NetworkBehaviour.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkBehaviour.cs b/Assets/Mirror/Runtime/NetworkBehaviour.cs index d1ad5ec0e..2fac0b9c8 100644 --- a/Assets/Mirror/Runtime/NetworkBehaviour.cs +++ b/Assets/Mirror/Runtime/NetworkBehaviour.cs @@ -20,17 +20,17 @@ public class NetworkBehaviour : MonoBehaviour // this prevents recursion when SyncVar hook functions are called. bool m_SyncVarGuard; - public bool localPlayerAuthority { get { return netIdentity.localPlayerAuthority; } } - public bool isServer { get { return netIdentity.isServer; } } - public bool isClient { get { return netIdentity.isClient; } } - public bool isLocalPlayer { get { return netIdentity.isLocalPlayer; } } - public bool isServerOnly { get { return isServer && !isClient; } } - public bool isClientOnly { get { return isClient && !isServer; } } - public bool hasAuthority { get { return netIdentity.hasAuthority; } } - public uint netId { get { return netIdentity.netId; } } - public NetworkConnection connectionToServer { get { return netIdentity.connectionToServer; } } - public NetworkConnection connectionToClient { get { return netIdentity.connectionToClient; } } - protected ulong syncVarDirtyBits { get { return m_SyncVarDirtyBits; } } + public bool localPlayerAuthority => netIdentity.localPlayerAuthority; + public bool isServer => netIdentity.isServer; + public bool isClient => netIdentity.isClient; + public bool isLocalPlayer => netIdentity.isLocalPlayer; + public bool isServerOnly => isServer && !isClient; + public bool isClientOnly => isClient && !isServer; + public bool hasAuthority => netIdentity.hasAuthority; + public uint netId => netIdentity.netId; + public NetworkConnection connectionToServer => netIdentity.connectionToServer; + public NetworkConnection connectionToClient => netIdentity.connectionToClient; + protected ulong syncVarDirtyBits => m_SyncVarDirtyBits; protected bool syncVarHookGuard { get { return m_SyncVarGuard; } set { m_SyncVarGuard = value; }} // objects that can synchronize themselves, such as synclists