League Toolkit League Toolkit
League Toolkit League Toolkit
DocFX + Singulink = ♥

Search Results for

    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 Source

    TimeGradient(BinaryReader)

    Initializes a new TimeGradient from a

    Declaration
    public TimeGradient(BinaryReader br)
    Parameters
    Type Name Description
    BinaryReader br

    The to read from

    | Improve this Doc View Source

    TimeGradient(TimeGradient)

    Creates a clone of a TimeGradient object

    Declaration
    public TimeGradient(TimeGradient timeGradient)
    Parameters
    Type Name Description
    TimeGradient timeGradient

    The TimeGradient to clone

    | Improve this Doc View Source

    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 Source

    Type

    Type of this TimeGradient

    Declaration
    public int Type { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Values

    The Values of this TimeGradient

    Declaration
    public TimeGradientValue[] Values { get; }
    Property Value
    Type Description
    TimeGradientValue[]

    Methods

    | Improve this Doc View Source

    GetValue(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
    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    Write(BinaryWriter)

    Writes this TimeGradient into a

    Declaration
    public void Write(BinaryWriter bw)
    Parameters
    Type Name Description
    BinaryWriter bw

    The to write to