コード例 #1
0
ファイル: GrnBone.cs プロジェクト: heinezen/Age-of-Mythology
 public void Read(GrnBoneNode boneNode)
 {
     this.ParentIndex = boneNode.ParentIndex;
     this.Position    = boneNode.Position;
     this.Rotation    = boneNode.Rotation;
     this.Scale       = boneNode.Scale;
 }
コード例 #2
0
ファイル: GrnBone.cs プロジェクト: heinezen/Age-of-Mythology
        public void Write(GrnNode boneSecNode)
        {
            GrnBoneNode boneNode = new GrnBoneNode(boneSecNode);

            boneNode.ParentIndex = this.ParentIndex;
            boneNode.Position    = this.Position;
            boneNode.Rotation    = this.Rotation;
            boneNode.Scale       = this.Scale;
            boneSecNode.AppendChild(boneNode);
        }