private static PMXFormat.BoneList ConvertBoneList(PMDFormat pmd) { PMXFormat.BoneList result = new PMXFormat.BoneList(); result.bone = new PMXFormat.Bone[pmd.bone_list.bone.Length]; for (int i = 0, i_max = pmd.bone_list.bone.Length; i < i_max; ++i) { result.bone[i] = ConvertBone(pmd, i); } return(result); }
private PMXFormat.BoneList ReadBoneList() { PMXFormat.BoneList result = new PMXFormat.BoneList(); uint bone_count = binary_reader_.ReadUInt32(); result.bone = new PMXFormat.Bone[bone_count]; for (uint i = 0, i_max = (uint)result.bone.Length; i < i_max; ++i) { result.bone[i] = ReadBone(); } return(result); }
private PMXFormat.BoneList ReadBoneList() { PMXFormat.BoneList result = new PMXFormat.BoneList(); uint bone_count = binary_reader_.ReadUInt32(); result.bone = new PMXFormat.Bone[bone_count]; for (uint i = 0, i_max = (uint)result.bone.Length; i < i_max; ++i) { result.bone[i] = ReadBone(); } return result; }
private static PMXFormat.BoneList ConvertBoneList(PMDFormat pmd) { PMXFormat.BoneList result = new PMXFormat.BoneList(); result.bone = new PMXFormat.Bone[pmd.bone_list.bone.Length]; for (int i = 0, i_max = pmd.bone_list.bone.Length; i < i_max; ++i) { result.bone[i] = ConvertBone(pmd, i); } return result; }