Class TimeGradient
Represents a Time Gradient
Inheritance
System.Object
TimeGradient
Namespace: LeagueToolkit.Core.Primitives
Assembly: LeagueToolkit.dll
Syntax
public class TimeGradient : object
Constructors
| Improve this Doc View SourceTimeGradient(BinaryReader)
Initializes a new TimeGradient from a
Declaration
public TimeGradient(BinaryReader br)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | br | The |
TimeGradient(TimeGradient)
Creates a clone of a TimeGradient object
Declaration
public TimeGradient(TimeGradient timeGradient)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeGradient | timeGradient | The TimeGradient to clone |
TimeGradient(Int32, TimeGradientValue[])
Initializes a new TimeGradient
Declaration
public TimeGradient(int type, TimeGradientValue[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | type | Type of this TimeGradient |
| TimeGradientValue[] | values | The Values of this TimeGradient |
Properties
| Improve this Doc View SourceType
Type of this TimeGradient
Declaration
public int Type { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Values
The Values of this TimeGradient
Declaration
public TimeGradientValue[] Values { get; }
Property Value
| Type | Description |
|---|---|
| TimeGradientValue[] |
Methods
| Improve this Doc View SourceGetValue(Single)
Gets a value from this TimeGradient at the specified time
Declaration
public Vector4 GetValue(float time)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | time | The time at which to get the value |
Returns
| Type | Description |
|---|---|
| Vector4 |
GetValueCount()
Gets the TimeGradientValue count of this TimeGradient
Declaration
public uint GetValueCount()
Returns
| Type | Description |
|---|---|
| System.UInt32 |
Remarks
This method should be used instead of assuming each gradient has 8 values, as most of the gradients won't have all 8 values set
Write(BinaryWriter)
Writes this TimeGradient into a
Declaration
public void Write(BinaryWriter bw)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | bw | The |