예제 #1
0
        //============================================================
        public void Unserialize(IInput input)
        {
            int count = input.ReadInt16();

            for (int n = 0; n < count; n++)
            {
                FDxRsGeometry geometry = new FDxRsGeometry();
                geometry.Unserialize(input);
                _geometries.Set(geometry.Name, geometry);
            }
        }
예제 #2
0
 //============================================================
 public void Unserialize(IInput input)
 {
     // 读取设置
     _id           = input.ReadInt32();
     _modelCode    = input.ReadString();
     _geometryName = input.ReadString();
     _materialCode = input.ReadString();
     // 存储矩阵
     _originMatrix.Unserialize(input);
     _worldMatrix.Unserialize(input);
     // 读取模型
     _model    = RDxCore.ModelResourceConsole.Get(_modelCode);
     _geometry = _model.Mesh.Geometries.Get(_geometryName);
     _material = _template.Materials.Get(_materialCode);
 }