AnimationOverloadComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct AnimationOverloadComponent : IComponent

Implements: IComponent

⭐ Constructors

public AnimationOverloadComponent()
public AnimationOverloadComponent(ImmutableArray<T> animationId, Guid customSprite, float start, bool loop, bool ignoreFacing)

Parameters
animationId ImmutableArray<T>
customSprite Guid
start float
loop bool
ignoreFacing bool

public AnimationOverloadComponent(ImmutableArray<T> animations, float duration, bool loop, bool ignoreFacing, int current, float sortOffset, Guid customSprite, float start)

Parameters
animations ImmutableArray<T>
duration float
loop bool
ignoreFacing bool
current int
sortOffset float
customSprite Guid
start float

public AnimationOverloadComponent(ImmutableArray<T> animations, float duration, bool loop, bool ignoreFacing, int current, float sortOffset, Guid customSprite)

Parameters
animations ImmutableArray<T>
duration float
loop bool
ignoreFacing bool
current int
sortOffset float
customSprite Guid

public AnimationOverloadComponent(string animationId, bool loop, bool ignoreFacing, float startTime)

Parameters
animationId string
loop bool
ignoreFacing bool
startTime float

public AnimationOverloadComponent(string animationId, bool loop, bool ignoreFacing)

Parameters
animationId string
loop bool
ignoreFacing bool

public AnimationOverloadComponent(string animationId, float duration, bool loop, bool ignoreFacing, float startTime)

Parameters
animationId string
duration float
loop bool
ignoreFacing bool
startTime float

public AnimationOverloadComponent(string animationId, float duration, bool loop, bool ignoreFacing, int current, float sortOffset, Guid customSprite)

Parameters
animationId string
duration float
loop bool
ignoreFacing bool
current int
sortOffset float
customSprite Guid

public AnimationOverloadComponent(string animationId, float duration, bool loop, bool ignoreFacing)

Parameters
animationId string
duration float
loop bool
ignoreFacing bool

public AnimationOverloadComponent(string animationId, Guid customSprite, float start, bool loop, bool ignoreFacing)

Parameters
animationId string
customSprite Guid
start float
loop bool
ignoreFacing bool

⭐ Properties

AnimationCount

public int AnimationCount { get; }

Returns
int

AnimationId

public string AnimationId { get; }

Returns
string

AtLast

public bool AtLast { get; }

Returns
bool

Current

public readonly int Current;

Returns
int

CurrentAnimation

public string CurrentAnimation { get; }

Returns
string

CustomSprite

public SpriteAsset CustomSprite { get; }

Returns
SpriteAsset

Duration

public readonly float Duration;

Returns
float

IgnoreFacing

public readonly bool IgnoreFacing;

Returns
bool

Loop

public readonly bool Loop;

Returns
bool

NoLoop

public AnimationOverloadComponent NoLoop { get; }

Returns
AnimationOverloadComponent

Now

public AnimationOverloadComponent Now { get; }

Returns
AnimationOverloadComponent

SortOffset

public readonly float SortOffset;

Returns
float

Start

public readonly float Start;

Returns
float

⭐ Methods

PlayNext()

public AnimationOverloadComponent PlayNext()

Returns
AnimationOverloadComponent