Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ModelBone.cs
Go to the documentation of this file.
2
3public sealed class ModelBone
4{
5 private string name;
6
7 internal Matrix transform;
8
9 private int index;
10
12
14
15 public string Name => name;
16
17 public int Index => index;
18
20 {
21 get
22 {
23 return transform;
24 }
25 set
26 {
27 transform = value;
28 }
29 }
30
32
34
35 internal ModelBone(string name, Matrix transform, int index)
36 {
37 this.name = name;
38 this.transform = transform;
39 this.index = index;
40 }
41
42 internal void SetParentAndChildren(ModelBone newParent, ModelBone[] newChildren)
43 {
44 parent = newParent;
45 children = new ModelBoneCollection(newChildren);
46 }
47}
void SetParentAndChildren(ModelBone newParent, ModelBone[] newChildren)
Definition ModelBone.cs:42
ModelBone(string name, Matrix transform, int index)
Definition ModelBone.cs:35