Table of Contents

Struct SynchronizedInput<T>

Namespace
Backdash.Data
Assembly
Backdash.dll

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

Input T

The input value

Disconnected bool

Is true if input owner is disconnected

Properties

Disconnected

Is true if input owner is disconnected

public bool Disconnected { get; init; }

Property Value

bool

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 T
Disconnected bool

Equals(SynchronizedInput<T>)

public bool Equals(SynchronizedInput<T> other)

Parameters

other SynchronizedInput<T>

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SynchronizedInput<T>, SynchronizedInput<T>)

public static bool operator ==(SynchronizedInput<T> left, SynchronizedInput<T> right)

Parameters

left SynchronizedInput<T>
right SynchronizedInput<T>

Returns

bool

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

SynchronizedInput<T>

operator !=(SynchronizedInput<T>, SynchronizedInput<T>)

public static bool operator !=(SynchronizedInput<T> left, SynchronizedInput<T> right)

Parameters

left SynchronizedInput<T>
right SynchronizedInput<T>

Returns

bool