예제 #1
0
파일: FDrTrack.cs 프로젝트: whztt07/MoCross
 //============================================================
 public void LoadFrameListConfig(FXmlNode config)
 {
     foreach (FXmlNode node in config.Nodes)
     {
         if (node.IsName("Frame"))
         {
             FDrFrame frame = new FDrFrame();
             frame.LoadModelConfig(node);
             _frameList.Push(frame);
         }
     }
 }
예제 #2
0
파일: FDrTrack.cs 프로젝트: whztt07/MoCross
        //============================================================
        public void DataUnserialize(IInput input)
        {
            // 读取属性信息
            _boneId = 0;
            _objectMatrix.UnserializeAngle(input);
            _localMatrix.UnserializeAngle(input);
            _worldMatrix.UnserializeAngle(input);
            // 读取所有子节点
            int count = input.ReadInt32();

            for (int n = 0; n < count; n++)
            {
                FDrFrame frame = new FDrFrame();
                frame.DataUnserialize(input);
                _frameList.Push(frame);
            }
            // 测试是否含有骨骼缩放
            _optionBoneScale = TestScale() ? EDrFlag.Yes : EDrFlag.Inherit;
        }