private static Bone[] ReadBones(string path)
        {
            var bones = new List <Bone>();

            using (var file = new StreamReader(path))
            {
                while (!file.EndOfStream)
                {
                    var input    = file.ReadLine();
                    var boneInfo = BoneInfo.FromString(input);

                    if (boneInfo != null)
                    {
                        bones.Add(new Bone(boneInfo));
                    }
                }
            }

            return(bones.ToArray());
        }
Esempio n. 2
0
 public BoneInfo(BoneInfo boneInfo) :
     this(boneInfo.Index, boneInfo.Name, boneInfo.Enabled, boneInfo.X, boneInfo.Y, boneInfo.Z, boneInfo.Scale)
 {
 }
Esempio n. 3
0
 public void Reset()
 {
     Values = new BoneInfo(DefaultValues);
 }
Esempio n. 4
0
 public Bone(BoneInfo boneInfo)
 {
     DefaultValues = new BoneInfo(boneInfo);
     Values        = new BoneInfo(boneInfo);
 }