Table of Contents

Class Slot

Namespace
PlumJsonAnimator.Models.SkeletonNameSpace
Assembly
PlumJsonAnimator.dll

Provides methods for work with slots

public class Slot : Bone, INotifyPropertyChanged, IRenamable
Inheritance
Slot
Implements
Inherited Members

Constructors

Slot(GlobalState, Bone)

public Slot(GlobalState globalState, Bone b)

Parameters

globalState GlobalState
b Bone

Slot(GlobalState, int, string)

public Slot(GlobalState globalState, int id, string path)

Parameters

globalState GlobalState
id int
path string

Slot(GlobalState, string, Bone)

public Slot(GlobalState globalState, string name, Bone b)

Parameters

globalState GlobalState
name string
b Bone

Fields

drawOrders

public SortedDictionary<double, DrawOrderOffset> drawOrders

Field Value

SortedDictionary<double, DrawOrderOffset>

isUpdatingFromCode

public bool isUpdatingFromCode

Field Value

bool

Properties

A

public override double A { get; set; }

Property Value

double

BoundedBone

public Bone? BoundedBone { get; set; }

Property Value

Bone

CurrentAttachment

public Attachment? CurrentAttachment { get; set; }

Property Value

Attachment

CurrentDrawOrderOffset

public int CurrentDrawOrderOffset { get; set; }

Property Value

int

GetName

public string GetName { get; set; }

Property Value

string

IsBone

public override bool IsBone { get; }

Property Value

bool

LengthX

public override double LengthX { get; set; }

Property Value

double

LengthY

public override double LengthY { get; set; }

Property Value

double

X

public override double X { get; set; }

Property Value

double

Y

public override double Y { get; set; }

Property Value

double

Methods

DrawSlot(Canvas)

public void DrawSlot(Canvas canvas)

Parameters

canvas Canvas

GenerateCode()

public string GenerateCode()

Returns

string

GenerateJSONData()

public SlotData GenerateJSONData()

Returns

SlotData

Move(double, double)

Moves slot to target position

public override void Move(double x, double y)

Parameters

x double

Target x coordinate

y double

Target y coordinate

Rotate(double)

Rotates slot

public override void Rotate(double a)

Parameters

a double

Target angle

Scale(double, double)

Changes slot size

public override void Scale(double x, double y)

Parameters

x double

X click coordinate

y double

Y click coordinate

SetName(string?)

Sets name to IRenamble object

public void SetName(string? name)

Parameters

name string

New name

UpdateAttachment()

Sets actual attachment to slot according current skin

public void UpdateAttachment()

UpdateDrawOrderOffset()

Updates draw order offset according current animation time

public void UpdateDrawOrderOffset()