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
globalStateGlobalStatebBone
Slot(GlobalState, int, string)
public Slot(GlobalState globalState, int id, string path)
Parameters
globalStateGlobalStateidintpathstring
Slot(GlobalState, string, Bone)
public Slot(GlobalState globalState, string name, Bone b)
Parameters
globalStateGlobalStatenamestringbBone
Fields
drawOrders
public SortedDictionary<double, DrawOrderOffset> drawOrders
Field Value
isUpdatingFromCode
public bool isUpdatingFromCode
Field Value
Properties
A
public override double A { get; set; }
Property Value
BoundedBone
public Bone? BoundedBone { get; set; }
Property Value
CurrentAttachment
public Attachment? CurrentAttachment { get; set; }
Property Value
CurrentDrawOrderOffset
public int CurrentDrawOrderOffset { get; set; }
Property Value
GetName
public string GetName { get; set; }
Property Value
IsBone
public override bool IsBone { get; }
Property Value
LengthX
public override double LengthX { get; set; }
Property Value
LengthY
public override double LengthY { get; set; }
Property Value
X
public override double X { get; set; }
Property Value
Y
public override double Y { get; set; }
Property Value
Methods
DrawSlot(Canvas)
public void DrawSlot(Canvas canvas)
Parameters
canvasCanvas
GenerateCode()
public string GenerateCode()
Returns
GenerateJSONData()
public SlotData GenerateJSONData()
Returns
Move(double, double)
Moves slot to target position
public override void Move(double x, double y)
Parameters
Rotate(double)
Rotates slot
public override void Rotate(double a)
Parameters
adoubleTarget angle
Scale(double, double)
Changes slot size
public override void Scale(double x, double y)
Parameters
SetName(string?)
Sets name to IRenamble object
public void SetName(string? name)
Parameters
namestringNew 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()