示例#1
0
 public override void ResetToDefaultParameters()
 {
     Name          = "";
     LocalToParent = new GrimMat4x3();
     Parent        = 0;
     Type          = 0;
     MeshEntity    = null;
 }
示例#2
0
 public GrimModelNode(string name, GrimMat4x3 localToParent, Int32 parent, Int32 type, GrimModelMeshEntity meshEntity)
 {
     Name          = name;
     LocalToParent = localToParent;
     Parent        = parent;
     Type          = type;
     MeshEntity    = meshEntity;
 }
示例#3
0
        protected override void DoRead(System.IO.BinaryReader reader)
        {
            Name          = ReadString(reader);
            LocalToParent = new GrimMat4x3(reader);
            Parent        = reader.ReadInt32();
            Type          = reader.ReadInt32();

            if (Type == 0)
            {
                MeshEntity = new GrimModelMeshEntity(reader);
            }
        }