public override void Read(BinaryReader file, uint size) { base.Read(file, size); pixelParameters.Read(file, 0); vertexParameters.Read(file, 0); //var count = file.ReadSByte(); //for (var i = 0; i < count; i++) //{ // var item = new CMaterialGraphParameter(cr2w); // item.Read(file, 0); // pixelParameters.AddVariable(item); //} //var vertexCount = file.ReadSByte(); //for (var i = 0; i < vertexCount; i++) //{ // var item = new CMaterialGraphParameter(cr2w); // item.Read(file, 0); // vertexParameters.AddVariable(item); //} var unk1 = file.ReadInt32(); if (unk1 != 0) { // this should be 0... } }
public override void Read(BinaryReader file, uint size) { base.Read(file, size); inputnodes.Read(file, 0); unk1.Read(file, 0); unk2.Read(file, 0); outputnode.Read(file, 0); }
public override void Read(BinaryReader file, uint size) { base.Read(file, size); chunkgroupIndeces.Read(file, size); boneNames.Read(file, 2); bonematrices.Read(file, 64); block3.Read(file, 4); boneIndecesMappingBoneIndex.Read(file, 4); }
public override void Read(BinaryReader file, uint size) { var startpos = file.BaseStream.Position; Unk1.Read(file, 4); Collisiontypes.Read(file, 0); var endpos = file.BaseStream.Position; Data.Read(file, (uint)(size - (endpos - startpos))); }
public override void Read(BinaryReader file, uint size) { base.Read(file, size); unk1.Read(file, 0); unk2.Read(file, 0); variables1.Read(file, 0); unk3.Read(file, 0); descriptions.Read(file, 0); unk4.Read(file, 0); vectorvariables1.Read(file, 0); unk5.Read(file, 0); variables2.Read(file, 0); unk6.Read(file, 0); vectorvariables2.Read(file, 0); }
public override void Read(BinaryReader file, uint size) { //Read the 8 unknown bytes. Unknown1.Read(file, 4); Unknown2.Read(file, 4); Resources.Read(file, 0); Objects.Read(file, 0); // Read the data block. blocksize.Read(file, 0); for (int i = 0; i < Objects.elements.Count; i++) { CSectorDataObject curobj = (CSectorDataObject)Objects.GetEditableVariables()[i]; ulong curoffset = curobj.offset.val; byte type = curobj.type.val; if (!(type == 0x1 || type == 0x2)) { //System.Diagnostics.Debugger.Break(); //throw new NotImplementedException(); } ulong len; if (i < Objects.elements.Count - 1) { CSectorDataObject nextobj = (CSectorDataObject)Objects.GetEditableVariables()[i + 1]; ulong nextoffset = nextobj.offset.val; len = nextoffset - curoffset; } else { len = (ulong)blocksize.val - curoffset; } var blockdata = new SBlockData(cr2w); blockdata.Read(file, (uint)len); BlockData.AddVariable(blockdata); } }
public override void Read(BinaryReader file, uint size) { alpha.Read(file, 2); }
public override void Read(BinaryReader file, uint size) { color.Read(file, 2); }
public override void Read(BinaryReader file, uint size) { base.Read(file, size); buffer.Read(file, size); }
public override void Read(BinaryReader file, uint size) { base.Read(file, size); bufferinputvalues.Read(file, 0); }