Struct SynchronizedInput<T>
Synchronized input result
public readonly struct SynchronizedInput<T> : IEquatable<SynchronizedInput<T>> where T : struct
Type Parameters
T
Type of the Input
- Implements
- Inherited Members
Constructors
SynchronizedInput(T, bool)
Synchronized input result
public SynchronizedInput(T Input, bool Disconnected)
Parameters
Properties
Disconnected
Is true if input owner is disconnected
public bool Disconnected { get; init; }
Property Value
Input
The input value
public T Input { get; init; }
Property Value
- T
Methods
Deconstruct(out T, out bool)
public void Deconstruct(out T Input, out bool Disconnected)
Parameters
Input
TDisconnected
bool
Equals(SynchronizedInput<T>)
public bool Equals(SynchronizedInput<T> other)
Parameters
other
SynchronizedInput<T>
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SynchronizedInput<T>, SynchronizedInput<T>)
public static bool operator ==(SynchronizedInput<T> left, SynchronizedInput<T> right)
Parameters
left
SynchronizedInput<T>right
SynchronizedInput<T>
Returns
implicit operator T(SynchronizedInput<T>)
Returns the input associated with this type
public static implicit operator T(SynchronizedInput<T> input)
Parameters
input
SynchronizedInput<T>
Returns
- T
implicit operator SynchronizedInput<T>(T)
Returns non-disconnected input associated with this type
public static implicit operator SynchronizedInput<T>(T input)
Parameters
input
T
Returns
operator !=(SynchronizedInput<T>, SynchronizedInput<T>)
public static bool operator !=(SynchronizedInput<T> left, SynchronizedInput<T> right)
Parameters
left
SynchronizedInput<T>right
SynchronizedInput<T>