Struct PreciseTick
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FishNet.Managing.Timing
Assembly: FishNet.Runtime.dll
Syntax
public struct 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
PercentAsByte
Percentage of the tick returned between 0 and 100.
Declaration
public byte PercentAsByte
Field Value
Type | Description |
---|---|
System.Byte |
PercentAsDouble
Percentage of the tick returned between 0d and 1d.
Declaration
public double PercentAsDouble
Field Value
Type | Description |
---|---|
System.Double |
Tick
The current tick.
Declaration
public uint Tick
Field Value
Type | Description |
---|---|
System.UInt32 |
Methods
ToString()
Prints PreciseTick information as a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()