Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
|
Represents value with a timestamp on it. The timestamp typically represents the time the value was received, using an IScheduler's clock to obtain the current time. More...
Public Member Functions | |
Timestamped (T value, DateTimeOffset timestamp) | |
Constructs a timestamped value. More... | |
bool | Equals (Timestamped< T > other) |
Determines whether the current Timestamped<T> value has the same Value and Timestamp as a specified Timestamped<T> value. More... | |
override bool | Equals (object obj) |
Determines whether the specified System.Object is equal to the current Timestamped<T>. More... | |
override int | GetHashCode () |
Returns the hash code for the current Timestamped<T> value. More... | |
override string | ToString () |
Returns a string representation of the current Timestamped<T> value. More... | |
Static Public Member Functions | |
static bool | operator== (Timestamped< T > first, Timestamped< T > second) |
Determines whether the two specified Timestamped<T> values have the same Value and Timestamp. More... | |
static bool | operator!= (Timestamped< T > first, Timestamped< T > second) |
Determines whether the two specified Timestamped<T> values don't have the same Value and Timestamp. More... | |
static Timestamped< T > | Create< T > (T value, DateTimeOffset timestamp) |
Creates an instance of a Timestamped<T>. This is syntactic sugar that uses type inference to avoid specifying a type in a constructor call, which is very useful when using anonymous types. More... | |
Properties | |
T | Value [get] |
Gets the value. | |
DateTimeOffset | Timestamp [get] |
Gets the timestamp. | |
Represents value with a timestamp on it. The timestamp typically represents the time the value was received, using an IScheduler's clock to obtain the current time.
A helper class with a factory method for creating Timestamped<T> instances.
T | The type of the value being timestamped. |
UniRx.Timestamped< T >.Timestamped | ( | T | value, |
DateTimeOffset | timestamp | ||
) |
Constructs a timestamped value.
value | The value to be annotated with a timestamp. |
timestamp | Timestamp associated with the value. |
|
static |
Creates an instance of a Timestamped<T>. This is syntactic sugar that uses type inference to avoid specifying a type in a constructor call, which is very useful when using anonymous types.
value | The value to be annotated with a timestamp. |
timestamp | Timestamp associated with the value. |
override bool UniRx.Timestamped< T >.Equals | ( | object | obj | ) |
Determines whether the specified System.Object is equal to the current Timestamped<T>.
obj | The System.Object to compare with the current Timestamped<T>. |
bool UniRx.Timestamped< T >.Equals | ( | Timestamped< T > | other | ) |
Determines whether the current Timestamped<T> value has the same Value and Timestamp as a specified Timestamped<T> value.
other | An object to compare to the current Timestamped<T> value. |
override int UniRx.Timestamped< T >.GetHashCode | ( | ) |
Returns the hash code for the current Timestamped<T> value.
|
static |
Determines whether the two specified Timestamped<T> values don't have the same Value and Timestamp.
first | The first Timestamped<T> value to compare. |
second | The second Timestamped<T> value to compare. |
|
static |
Determines whether the two specified Timestamped<T> values have the same Value and Timestamp.
first | The first Timestamped<T> value to compare. |
second | The second Timestamped<T> value to compare. |
override string UniRx.Timestamped< T >.ToString | ( | ) |
Returns a string representation of the current Timestamped<T> value.