public void ReadFromFile(MemoryStream stream, bool isBigEndian) { parent = stream.ReadInt16(isBigEndian); namepos1 = stream.ReadUInt16(isBigEndian); namepos2 = stream.ReadUInt16(isBigEndian); frameIndex = stream.ReadInt16(isBigEndian); flags = (NameTableFlags)stream.ReadInt16(isBigEndian); }
public void ReadFromFile(BinaryReader reader) { parent = reader.ReadInt16(); namepos1 = reader.ReadUInt16(); namepos2 = reader.ReadUInt16(); frameIndex = reader.ReadInt16(); flags = (NameTableFlags)reader.ReadInt16(); }
public FrameObjectBase(FrameObjectBase other) : base(other) { name = new Hash(other.name.String); secondaryFlags = other.secondaryFlags; localTransform = new Matrix(other.localTransform.ToArray()); unk3 = other.unk3; parentIndex1 = new ParentStruct(other.parentIndex1); parentIndex2 = new ParentStruct(other.parentIndex2); unk6 = -1; isOnTable = other.isOnTable; nameTableFlags = other.nameTableFlags; }