Struct NetworkBehaviourRef<T>
- Namespace
- Netick.Unity
- Assembly
- Netick.Unity.dll
public struct NetworkBehaviourRef<T> : IEquatable<NetworkBehaviourRef<T>> where T : NetworkBehaviour
Type Parameters
T
- Implements
-
- Inherited Members
-
Constructors
NetworkBehaviourRef(NetworkBehaviour)
public NetworkBehaviourRef(NetworkBehaviour beh)
Parameters
beh
NetworkBehaviour
Fields
BehaviourId
public readonly int BehaviourId
Field Value
- int
ObjectId
public readonly int ObjectId
Field Value
- int
Methods
Equals(NetworkBehaviourRef<T>)
public bool Equals(NetworkBehaviourRef<T> other)
Parameters
other
NetworkBehaviourRef<T>
Returns
- bool
Equals(object)
public override bool Equals(object other)
Parameters
other
object
Returns
- bool
GetBehaviour<T>(NetworkSandbox)
public T GetBehaviour<T>(NetworkSandbox sandbox) where T : NetworkBehaviour
Parameters
sandbox
NetworkSandbox
Returns
- T
Type Parameters
T
GetHashCode()
public override int GetHashCode()
Returns
- int
TryGetBehaviour(NetworkSandbox, out T)
public bool TryGetBehaviour(NetworkSandbox sandbox, out T behaviour)
Parameters
sandbox
NetworkSandbox
behaviour
T
Returns
- bool