Struct PreciseTick
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: FishNet.Runtime.dll
Syntax
public readonly struct PreciseTick : IEquatable<PreciseTick>
Constructors
PreciseTick(UInt32, Byte)
Creates a precise tick where the percentage is a byte between 0 and 100.
Declaration
public PreciseTick(uint tick, byte percentAsByte)
Parameters
Type |
Name |
Description |
System.UInt32 |
tick |
|
System.Byte |
percentAsByte |
|
PreciseTick(UInt32, Double)
Creates a precise tick where the percentage is a double between 0d and 1d.
Declaration
public PreciseTick(uint tick, double percent)
Parameters
Type |
Name |
Description |
System.UInt32 |
tick |
|
System.Double |
percent |
|
Fields
MAXIMUM_BYTE_PERCENT
Maximum value a percent can be as a byte.
Declaration
public const byte MAXIMUM_BYTE_PERCENT = 100
Field Value
Type |
Description |
System.Byte |
|
MAXIMUM_DOUBLE_PERCENT
Maximum value a percent can be as a double.
Declaration
public const double MAXIMUM_DOUBLE_PERCENT = 1
Field Value
Type |
Description |
System.Double |
|
PercentAsByte
Percentage of the tick returned between 0 and 100.
Declaration
public readonly byte PercentAsByte
Field Value
Type |
Description |
System.Byte |
|
PercentAsDouble
Percentage of the tick returned between 0d and 1d.
Declaration
public readonly double PercentAsDouble
Field Value
Type |
Description |
System.Double |
|
Tick
Declaration
public readonly uint Tick
Field Value
Type |
Description |
System.UInt32 |
|
Methods
Equals(PreciseTick)
Declaration
public readonly bool Equals(PreciseTick other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
IsValid()
Declaration
public readonly bool IsValid()
Returns
Type |
Description |
System.Boolean |
|
ToString()
Prints PreciseTick information as a string.
Declaration
public override readonly string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Equality(PreciseTick, PreciseTick)
Declaration
public static bool operator ==(PreciseTick a, PreciseTick b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GreaterThan(PreciseTick, PreciseTick)
Declaration
public static bool operator>(PreciseTick a, PreciseTick b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GreaterThanOrEqual(PreciseTick, PreciseTick)
Declaration
public static bool operator >=(PreciseTick a, PreciseTick b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(PreciseTick, PreciseTick)
Declaration
public static bool operator !=(PreciseTick a, PreciseTick b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
LessThan(PreciseTick, PreciseTick)
Declaration
public static bool operator <(PreciseTick a, PreciseTick b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
LessThanOrEqual(PreciseTick, PreciseTick)
Declaration
public static bool operator <=(PreciseTick a, PreciseTick b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>
Extension Methods