Show / Hide Table of Contents

    Interface IDirectionalAnimation

    Allows grouping animations for different directions together (for example, walking left and right). This is used by the character when choosing a directional animation: if you don't assign all of the directions, the engine will attempt to choose the best direction based on what you have assigned. So, for example, if you only assign Left and Right animations for your walk animation, and the player is attempting to walk down-right, the engine will use the Right animation.

    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public interface IDirectionalAnimation

    Properties

    | Improve this Doc View Source

    Down

    Gets or sets the down direction animation.

    Declaration
    IAnimation Down { get; set; }
    Property Value
    Type Description
    IAnimation

    The down direction animation.

    | Improve this Doc View Source

    DownLeft

    Gets or sets the down and left direction animation.

    Declaration
    IAnimation DownLeft { get; set; }
    Property Value
    Type Description
    IAnimation

    The down and left direction animation.

    | Improve this Doc View Source

    DownRight

    Gets or sets the down and right direction animation.

    Declaration
    IAnimation DownRight { get; set; }
    Property Value
    Type Description
    IAnimation

    The down and right direction animation.

    | Improve this Doc View Source

    Left

    Gets or sets the left direction animation.

    Declaration
    IAnimation Left { get; set; }
    Property Value
    Type Description
    IAnimation

    The left direction animation.

    | Improve this Doc View Source

    Right

    Gets or sets the right direction animation.

    Declaration
    IAnimation Right { get; set; }
    Property Value
    Type Description
    IAnimation

    The right direction animation.

    | Improve this Doc View Source

    Up

    Gets or sets the up direction animation.

    Declaration
    IAnimation Up { get; set; }
    Property Value
    Type Description
    IAnimation

    The up direction animation.

    | Improve this Doc View Source

    UpLeft

    Gets or sets the up and left direction animation.

    Declaration
    IAnimation UpLeft { get; set; }
    Property Value
    Type Description
    IAnimation

    The up and left direction animation.

    | Improve this Doc View Source

    UpRight

    Gets or sets the up and right direction animation.

    Declaration
    IAnimation UpRight { get; set; }
    Property Value
    Type Description
    IAnimation

    The up and right direction animation.

    Methods

    | Improve this Doc View Source

    GetAllDirections()

    Allows to iterate on all assigned directions.

    Declaration
    IEnumerable<IAnimation> GetAllDirections()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IAnimation>

    All assigned directions.

    | Improve this Doc View Source

    GetAnimation(Direction)

    Gets the animation matching with a specific direction.

    Declaration
    IAnimation GetAnimation(Direction direction)
    Parameters
    Type Name Description
    Direction direction

    Direction for which we want the matching animation.

    Returns
    Type Description
    IAnimation

    The matching animation

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX