public CSectorDataObject(CR2WFile cr2w) : base(cr2w) { type = new CUInt8(cr2w) { Name = "type", Type = "UInt8" }; flags = new CUInt8(cr2w) { Name = "flags", Type = "UInt8" }; radius = new CUInt16(cr2w) { Name = "radius", Type = "UInt16" }; offset = new CUInt64(cr2w) { Name = "offset", Type = "UInt64" }; positionX = new CFloat(cr2w) { Name = "positionX", Type = "Float" }; positionY = new CFloat(cr2w) { Name = "positionY", Type = "Float" }; positionZ = new CFloat(cr2w) { Name = "positionZ", Type = "Float" }; }
public CColor(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { Red = new CUInt8(cr2w, this, nameof(Red)); Green = new CUInt8(cr2w, this, nameof(Green)); Blue = new CUInt8(cr2w, this, nameof(Blue)); Alpha = new CUInt8(cr2w, this, nameof(Alpha)); }
public List <CurvePiece> pieces; // MAX LIMIT 4 public CurveInfo(CR2WFile cr2w) : base(cr2w) { someName = new CName(cr2w) { Name = "someName", Type = "CName" }; someByte = new CUInt8(cr2w) { Name = "someByte", Type = "CUInt8" }; pieces = new List <CurvePiece>(); }
} // MAX LIMIT 4 public CurveInfo(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { someName = new CName(cr2w, this, nameof(someName)) { IsSerialized = true }; someByte = new CUInt8(cr2w, this, nameof(someByte)) { IsSerialized = true }; pieces = new CCompressedBuffer <CurvePiece>(cr2w, this, nameof(pieces)) { IsSerialized = true }; }
public CMaterialGraphParameter(CR2WFile cr2w) : base(cr2w) { unk1 = new CUInt8(cr2w) { Name = "Type", Type = "UInt8" }; unk2 = new CUInt8(cr2w) { Name = "Offset?", Type = "UInt8" }; name = new CName(cr2w) { Name = "Name", Type = "CName" }; }
public CFXTrackItem(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { buffername = new CName(cr2w, this, nameof(buffername)) { IsSerialized = true }; count = new CDynamicInt(cr2w, this, nameof(count)) { IsSerialized = true }; unk = new CUInt8(cr2w, this, nameof(unk)) { IsSerialized = true }; buffer = new CCompressedBuffer <CBufferUInt16 <CFloat> >(cr2w, this, nameof(buffer)) { IsSerialized = true }; }
public CFXTrackItem(CR2WFile cr2w) : base(cr2w) { buffername = new CName(cr2w) { Name = "buffername" }; count = new CDynamicInt(cr2w) { Name = "count" }; unk = new CUInt8(cr2w) { Name = "unk" }; buffer = new CCompressedBuffer <CBufferUInt16 <CFloat> >(cr2w, _ => new CBufferUInt16 <CFloat>(_, x => new CFloat(x))) { Name = "buffer" }; }