Struct SyncVar<T>
Assembly: LiteEntitySystem.dll
Syntax
public struct SyncVar<T> : IEquatable<T>, IEquatable<SyncVar<T>> where T : unmanaged
Type Parameters
Properties
Value
Declaration
public T Value { get; set; }
Property Value
Methods
Equals(SyncVar<T>)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(SyncVar<T> tv)
Parameters
Type |
Name |
Description |
SyncVar<T> |
tv |
|
Returns
Type |
Description |
bool |
true if the current object is equal to the other parameter; otherwise, false.
|
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
object |
o |
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
Equals(T)
Indicates whether the current object is equal to another object of the same type.
Declaration
Parameters
Type |
Name |
Description |
T |
v |
|
Returns
Type |
Description |
bool |
true if the current object is equal to the other parameter; otherwise, false.
|
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
The fully qualified type name.
|
Overrides
Operators
operator ==(SyncVar<T>, SyncVar<T>)
Declaration
public static bool operator ==(SyncVar<T> a, SyncVar<T> b)
Parameters
Returns
operator ==(SyncVar<T>, T)
Declaration
public static bool operator ==(SyncVar<T> a, T b)
Parameters
Type |
Name |
Description |
SyncVar<T> |
a |
|
T |
b |
|
Returns
operator ==(T, SyncVar<T>)
Declaration
public static bool operator ==(T a, SyncVar<T> b)
Parameters
Type |
Name |
Description |
T |
a |
|
SyncVar<T> |
b |
|
Returns
implicit operator T(SyncVar<T>)
Declaration
public static implicit operator T(SyncVar<T> sv)
Parameters
Type |
Name |
Description |
SyncVar<T> |
sv |
|
Returns
operator !=(SyncVar<T>, SyncVar<T>)
Declaration
public static bool operator !=(SyncVar<T> a, SyncVar<T> b)
Parameters
Returns
operator !=(SyncVar<T>, T)
Declaration
public static bool operator !=(SyncVar<T> a, T b)
Parameters
Type |
Name |
Description |
SyncVar<T> |
a |
|
T |
b |
|
Returns
operator !=(T, SyncVar<T>)
Declaration
public static bool operator !=(T a, SyncVar<T> b)
Parameters
Type |
Name |
Description |
T |
a |
|
SyncVar<T> |
b |
|
Returns
Implements