示例#1
0
 public virtual void ReadFromFile(BinaryReader reader)
 {
     name            = new Hash(reader);
     unk0            = reader.ReadInt32();
     transformMatrix = new TransformMatrix(reader);
     unk3            = reader.ReadInt16();
     parentIndex1    = new ParentStruct(reader.ReadInt32());
     parentIndex2    = new ParentStruct(reader.ReadInt32());
     unk6            = reader.ReadInt16();
     UpdateNode();
 }
示例#2
0
 public FrameObjectBase() : base()
 {
     //do example name.
     name = new Hash();
     name.Set("NewObject");
     unk0            = 1;
     transformMatrix = new TransformMatrix();
     unk3            = -1;
     parentIndex1    = new ParentStruct(-1);
     parentIndex2    = new ParentStruct(-1);
     unk6            = -1;
     UpdateNode();
 }