public CEntity(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { Components = new CArray <CPtr <CComponent> >(cr2w, this, nameof(Components)) { IsSerialized = true, Elementtype = "ptr:CComponent" }; BufferV1 = new CCompressedBuffer <SEntityBufferType1>(cr2w, this, nameof(BufferV1)) { IsSerialized = true }; BufferV2 = new CBufferUInt32 <SEntityBufferType2>(cr2w, this, nameof(BufferV2)) { IsSerialized = true }; }
public SEntityBufferType2(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name) { componentName = new CName(cr2w, this, nameof(componentName)) { IsSerialized = true }; sizeofdata = new CUInt32(cr2w, this, nameof(sizeofdata)) { IsSerialized = true }; variables = new CBufferUInt32 <CVariantSizeTypeName>(cr2w, this, nameof(variables)) { IsSerialized = true }; }