SpriteFacingComponent
Namespace: Murder.Components
Assembly: Murder.dll
public sealed struct SpriteFacingComponent : IComponent
Implements: IComponent
⭐ Constructors
public SpriteFacingComponent()
⭐ Properties
AngleStart
public float AngleStart { get; public set; }
Returns
float
DefaultFlip
public bool DefaultFlip { get; public set; }
Returns
bool
DefaultSuffix
public string DefaultSuffix { get; public set; }
Returns
string
FacingInfo
public ImmutableArray<T> FacingInfo { get; public set; }
Returns
ImmutableArray<T>
⭐ Methods
Resize(int, int)
public SpriteFacingComponent Resize(int atIndex, int slices)
Returns a new Murder.Components.SpriteFacingComponent.FacingInfo resized. Trims the last items if 'slices' is smaller than current length, and adds default values if larger.
Parameters
atIndex
int
slices
int
Returns
SpriteFacingComponent
GetSuffixFromAngle(float)
public ValueTuple<T1, T2> GetSuffixFromAngle(float angle)
Gets the suffix and flip state based on a specified angle.
Parameters
angle
float
Returns
ValueTuple<T1, T2>
⚡