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());
        }
예제 #2
0
 public BoneInfo(BoneInfo boneInfo) :
     this(boneInfo.Index, boneInfo.Name, boneInfo.Enabled, boneInfo.X, boneInfo.Y, boneInfo.Z, boneInfo.Scale)
 {
 }
예제 #3
0
 public void Reset()
 {
     Values = new BoneInfo(DefaultValues);
 }
예제 #4
0
 public Bone(BoneInfo boneInfo)
 {
     DefaultValues = new BoneInfo(boneInfo);
     Values        = new BoneInfo(boneInfo);
 }