public CTextureArray(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { rawfile = new CBytes(cr2w, this, nameof(rawfile)) { IsSerialized = true }; }
public CBitmapTexture(CR2WFile cr2w) : base(cr2w) { unk = new CUInt32(cr2w) { Name = "unk" }; MipsCount = new CUInt32(cr2w) { Name = "MipsCount" }; Mipdata = new CCompressedBuffer <SMipData>(cr2w, _ => new SMipData(_)) { Name = "Mipdata" }; unk2 = new CUInt32(cr2w) { Name = "unk2" }; Mips = new CCompressedBuffer <CByteArray>(cr2w, _ => new CByteArray(_)) { Name = "mips" }; ResidentmipSize = new CUInt32(cr2w) { Name = "filesize" }; Residentmip = new CBytes(cr2w) { Name = "Image" }; }
public SBlockData(CR2WFile cr2w) : base(cr2w) { rotationMatrix = new CMatrix3x3(cr2w) { Name = "rotationMatrix" }; position = new CVector3D(cr2w) { Name = "position" }; streamingRadius = new CUInt16(cr2w) { Name = "streamingRadius" }; flags = new CUInt16(cr2w) { Name = "flags" }; occlusionSystemID = new CUInt32(cr2w) { Name = "occlusionSystemID" }; resourceIndex = new CUInt32(cr2w) { Name = "resourceIndex" }; tail = new CBytes(cr2w) { Name = "tail" }; }
public CCubeTexture(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { Rawfile = new CBytes(cr2w, this, "Image") { IsSerialized = true }; }
public CIndexed2dArray(CR2WFile cr2w) : base(cr2w) { arrays = new CBytes(cr2w) { Name = "Serialized data" }; }
public CBitmapTexture(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { MipsCount = new CUInt32(cr2w, this, nameof(MipsCount)) { IsSerialized = true }; Mipdata = new CCompressedBuffer <SMipData>(cr2w, this, nameof(Mipdata)) { IsSerialized = true }; unk1 = new CUInt16(cr2w, this, nameof(unk1)) { IsSerialized = true }; unk2 = new CUInt16(cr2w, this, nameof(unk2)) { IsSerialized = true }; ResidentmipSize = new CUInt32(cr2w, this, nameof(ResidentmipSize)) { IsSerialized = true }; Residentmip = new CBytes(cr2w, this, nameof(Residentmip)) { IsSerialized = true }; }
public CSwarmCellMap(CR2WFile cr2w) : base(cr2w) { data = new CBytes(cr2w) { Name = "Data" }; cornerPosition = new CVector3D(cr2w) { Name = "Corner position" }; dataSizeX = new CInt32(cr2w) { Name = "Data size X" }; dataSizeY = new CInt32(cr2w) { Name = "Data size Y" }; dataSizeZ = new CInt32(cr2w) { Name = "Data size Z" }; dataSize = new CInt32(cr2w) { Name = "Data size in bits" }; sizeInKbytes = new CFloat(cr2w) { Name = "Data size in Kilobytes" }; }
public CBitmapTexture(CR2WFile cr2w) : base(cr2w) { unk = new CUInt32(cr2w) { Name = "unk" }; MipsCount = new CUInt32(cr2w) { Name = "MipsCount" }; mips = new CCompressedBuffer <CVector3 <CUInt32> >(cr2w, _ => new CVector3 <CUInt32>(_, x => new CUInt32(x))) { Name = "mips" }; filesize = new CUInt32(cr2w) { Name = "filesize" }; unk2 = new CUInt32(cr2w) { Name = "unk2" }; Image = new CBytes(cr2w) { Name = "Image" }; }
public CGenericGrassMask(CR2WFile cr2w) : base(cr2w) { grassmask = new CBytes(cr2w) { Name = "Grass mask data", Bytes = new byte[0] }; }
public CGenericGrassMask(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { grassmask = new CBytes(cr2w, this, nameof(grassmask)) { Bytes = new byte[0], IsSerialized = true }; }
public override void Read(BinaryReader file, uint size) { Buffer = new CBytes(cr2w, this, nameof(Buffer)) { Bytes = new byte[0], IsSerialized = true }; Buffer.Read(file, size); }
public SMeshBlock5(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { bytesize = new CUInt16(cr2w, this, nameof(bytesize)) { IsSerialized = true }; unk1 = new CBytes(cr2w, this, nameof(unk1)) { IsSerialized = true }; }
public SMeshBlock5(CR2WFile cr2w) : base(cr2w) { bytesize = new CUInt16(cr2w) { Name = "size" }; unk1 = new CBytes(cr2w) { Name = "unk1" }; }
public EntityHandle(CR2WFile cr2w) : base(cr2w) { id = new CUInt16(cr2w) { Name = "id" }; guid = new CGUID(cr2w) { Name = "guid" }; unk1 = new CBytes(cr2w) { Name = "unk1", Bytes = Array.Empty <byte>() }; }
public CPhysicalCollision(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { Unk1 = new CUInt32(cr2w, this, nameof(Unk1)) { IsSerialized = true }; Data = new CBytes(cr2w, this, nameof(Data)) { IsSerialized = true }; Collisiontypes = new CBufferVLQInt32 <CName>(cr2w, this, nameof(Collisiontypes)) { IsSerialized = true }; }
public CPhysicalCollision(CR2WFile cr2w) : base(cr2w) { Unk1 = new CUInt32(cr2w) { Name = nameof(Unk1) }; Data = new CBytes(cr2w) { Name = nameof(Data) }; Collisiontypes = new CBufferVLQ <CName>(cr2w, _ => new CName(_)) { Name = nameof(Collisiontypes) }; }
public CTextureArray(CR2WFile cr2w) : base(cr2w) { texturecachekey = new CUInt32(cr2w) { Name = "texturecachekey" }; encodedformat = new CUInt16(cr2w) { Name = "encodedformat" }; width = new CUInt16(cr2w) // or width { Name = "width" }; height = new CUInt16(cr2w) // or height { Name = "height" }; slices = new CUInt16(cr2w) // ? { Name = "slices" }; mipmapscount = new CUInt16(cr2w) { Name = "mipmapscount" }; residentmip = new CUInt16(cr2w) //? { Name = "residentmip" }; filesize = new CUInt32(cr2w) { Name = "filesize" }; ffffffff = new CInt32(cr2w) { Name = "ffffffff" }; rawfile = new CBytes(cr2w) { Name = "rawfile" }; }
public CCameraCompressedPose(CR2WFile cr2w) : base(cr2w) { bytes1 = new CBytes(cr2w) { Name = nameof(bytes1) }; float1 = new CFloat(cr2w) { Name = nameof(float1) }; float2 = new CFloat(cr2w) { Name = nameof(float2) }; bytes2 = new CBytes(cr2w) { Name = nameof(bytes2) }; }
public CSwarmCellMap(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { Data = new CBytes(cr2w, this, nameof(Data)) { IsSerialized = true }; CornerPositionX = new CFloat(cr2w, this, nameof(CornerPositionX)) { IsSerialized = true }; CornerPositionY = new CFloat(cr2w, this, nameof(CornerPositionY)) { IsSerialized = true }; CornerPositionZ = new CFloat(cr2w, this, nameof(CornerPositionZ)) { IsSerialized = true }; DataSizeX = new CInt32(cr2w, this, nameof(DataSizeX)) { IsSerialized = true }; DataSizeY = new CInt32(cr2w, this, nameof(DataSizeY)) { IsSerialized = true }; DataSizeZ = new CInt32(cr2w, this, nameof(DataSizeZ)) { IsSerialized = true }; DataSizeBits = new CInt32(cr2w, this, nameof(DataSizeBits)) { IsSerialized = true }; SizeInKbytes = new CFloat(cr2w, this, nameof(SizeInKbytes)) { IsSerialized = true }; }
public CCubeTexture(CR2WFile cr2w) : base(cr2w) { texturecachekey = new CUInt32(cr2w) { Name = "texturecachekey" }; residentmip = new CUInt16(cr2w) { Name = "residentmip" }; encodedformat = new CUInt16(cr2w) { Name = "encodedformat" }; edge = new CUInt16(cr2w) { Name = "edge" }; mipmapscount = new CUInt16(cr2w) { Name = "mipmapscount" }; filesize = new CUInt32(cr2w) { Name = "filesize" }; ffffffff = new CInt32(cr2w) { Name = "ffffffff" }; rawfile = new CBytes(cr2w) { Name = "rawfile" }; }
public EntityHandle(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { id = new CUInt16(cr2w, this, nameof(id)); guid = new CGUID(cr2w, this, nameof(guid)); unk1 = new CBytes(cr2w, this, nameof(unk1)); }
public SBlockDataMeshObject(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { unk1 = new CBytes(cr2w, parent, nameof(unk1)); }
public CClipMapCookedData(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { Data = new CBytes(cr2w, this, nameof(Data)); }
public SAppearanceAttachment(CR2WFile cr2w) : base(cr2w) { bytes = new CBytes(cr2w); bytes.Name = "unknownBytes"; }