// automatically generated by the FlatBuffers compiler, do not modify #ifndef FLATBUFFERS_GENERATED_CSPARSE3DBINARY_FLATBUFFERS_H_ #define FLATBUFFERS_GENERATED_CSPARSE3DBINARY_FLATBUFFERS_H_ #include "flatbuffers/flatbuffers.h" #include "CSParseBinary_generated.h" namespace flatbuffers { struct Node3DOption; struct Sprite3DOptions; struct Particle3DOptions; struct UserCameraOptions; struct GameNode3DOption; struct Light3DOption; struct Node3DOption FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_NODEOPTIONS = 4, VT_POSITION3D = 6, VT_ROTATION3D = 8, VT_SCALE3D = 10, VT_CAMERAMASK = 12 }; const WidgetOptions* nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } const FVec3* position3D() const { return GetStruct(VT_POSITION3D); } const FVec3* rotation3D() const { return GetStruct(VT_ROTATION3D); } const FVec3* scale3D() const { return GetStruct(VT_SCALE3D); } int32_t cameramask() const { return GetField(VT_CAMERAMASK, 0); } bool Verify(flatbuffers::Verifier& verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, VT_POSITION3D) && VerifyField(verifier, VT_ROTATION3D) && VerifyField(verifier, VT_SCALE3D) && VerifyField(verifier, VT_CAMERAMASK) && verifier.EndTable(); } }; struct Node3DOptionBuilder { flatbuffers::FlatBufferBuilder& fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(Node3DOption::VT_NODEOPTIONS, nodeOptions); } void add_position3D(const FVec3* position3D) { fbb_.AddStruct(Node3DOption::VT_POSITION3D, position3D); } void add_rotation3D(const FVec3* rotation3D) { fbb_.AddStruct(Node3DOption::VT_ROTATION3D, rotation3D); } void add_scale3D(const FVec3* scale3D) { fbb_.AddStruct(Node3DOption::VT_SCALE3D, scale3D); } void add_cameramask(int32_t cameramask) { fbb_.AddElement(Node3DOption::VT_CAMERAMASK, cameramask, 0); } explicit Node3DOptionBuilder(flatbuffers::FlatBufferBuilder& _fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } Node3DOptionBuilder& operator=(const Node3DOptionBuilder&); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateNode3DOption(flatbuffers::FlatBufferBuilder& _fbb, flatbuffers::Offset nodeOptions = 0, const FVec3* position3D = 0, const FVec3* rotation3D = 0, const FVec3* scale3D = 0, int32_t cameramask = 0) { Node3DOptionBuilder builder_(_fbb); builder_.add_cameramask(cameramask); builder_.add_scale3D(scale3D); builder_.add_rotation3D(rotation3D); builder_.add_position3D(position3D); builder_.add_nodeOptions(nodeOptions); return builder_.Finish(); } struct Sprite3DOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_NODE3DOPTION = 4, VT_FILEDATA = 6, VT_RUNACTION = 8, VT_ISFLIPPED = 10, VT_LIGHTFLAG = 12 }; const Node3DOption* node3DOption() const { return GetPointer(VT_NODE3DOPTION); } const ResourceData* fileData() const { return GetPointer(VT_FILEDATA); } bool runAction() const { return GetField(VT_RUNACTION, 0) != 0; } bool isFlipped() const { return GetField(VT_ISFLIPPED, 0) != 0; } int32_t lightFlag() const { return GetField(VT_LIGHTFLAG, 0); } bool Verify(flatbuffers::Verifier& verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NODE3DOPTION) && verifier.VerifyTable(node3DOption()) && VerifyOffset(verifier, VT_FILEDATA) && verifier.VerifyTable(fileData()) && VerifyField(verifier, VT_RUNACTION) && VerifyField(verifier, VT_ISFLIPPED) && VerifyField(verifier, VT_LIGHTFLAG) && verifier.EndTable(); } }; struct Sprite3DOptionsBuilder { flatbuffers::FlatBufferBuilder& fbb_; flatbuffers::uoffset_t start_; void add_node3DOption(flatbuffers::Offset node3DOption) { fbb_.AddOffset(Sprite3DOptions::VT_NODE3DOPTION, node3DOption); } void add_fileData(flatbuffers::Offset fileData) { fbb_.AddOffset(Sprite3DOptions::VT_FILEDATA, fileData); } void add_runAction(bool runAction) { fbb_.AddElement(Sprite3DOptions::VT_RUNACTION, static_cast(runAction), 0); } void add_isFlipped(bool isFlipped) { fbb_.AddElement(Sprite3DOptions::VT_ISFLIPPED, static_cast(isFlipped), 0); } void add_lightFlag(int32_t lightFlag) { fbb_.AddElement(Sprite3DOptions::VT_LIGHTFLAG, lightFlag, 0); } explicit Sprite3DOptionsBuilder(flatbuffers::FlatBufferBuilder& _fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } Sprite3DOptionsBuilder& operator=(const Sprite3DOptionsBuilder&); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateSprite3DOptions(flatbuffers::FlatBufferBuilder& _fbb, flatbuffers::Offset node3DOption = 0, flatbuffers::Offset fileData = 0, bool runAction = false, bool isFlipped = false, int32_t lightFlag = 0) { Sprite3DOptionsBuilder builder_(_fbb); builder_.add_lightFlag(lightFlag); builder_.add_fileData(fileData); builder_.add_node3DOption(node3DOption); builder_.add_isFlipped(isFlipped); builder_.add_runAction(runAction); return builder_.Finish(); } struct Particle3DOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_NODE3DOPTION = 4, VT_FILEDATA = 6 }; const Node3DOption* node3DOption() const { return GetPointer(VT_NODE3DOPTION); } const ResourceData* fileData() const { return GetPointer(VT_FILEDATA); } bool Verify(flatbuffers::Verifier& verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NODE3DOPTION) && verifier.VerifyTable(node3DOption()) && VerifyOffset(verifier, VT_FILEDATA) && verifier.VerifyTable(fileData()) && verifier.EndTable(); } }; struct Particle3DOptionsBuilder { flatbuffers::FlatBufferBuilder& fbb_; flatbuffers::uoffset_t start_; void add_node3DOption(flatbuffers::Offset node3DOption) { fbb_.AddOffset(Particle3DOptions::VT_NODE3DOPTION, node3DOption); } void add_fileData(flatbuffers::Offset fileData) { fbb_.AddOffset(Particle3DOptions::VT_FILEDATA, fileData); } explicit Particle3DOptionsBuilder(flatbuffers::FlatBufferBuilder& _fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } Particle3DOptionsBuilder& operator=(const Particle3DOptionsBuilder&); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateParticle3DOptions( flatbuffers::FlatBufferBuilder& _fbb, flatbuffers::Offset node3DOption = 0, flatbuffers::Offset fileData = 0) { Particle3DOptionsBuilder builder_(_fbb); builder_.add_fileData(fileData); builder_.add_node3DOption(node3DOption); return builder_.Finish(); } struct UserCameraOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_NODE3DOPTION = 4, VT_FOV = 6, VT_NEARCLIP = 8, VT_FARCLIP = 10, VT_CAMERAFLAG = 12, VT_SKYBOXENABLED = 14, VT_LEFTFILEDATA = 16, VT_RIGHTFILEDATA = 18, VT_UPFILEDATA = 20, VT_DOWNFILEDATA = 22, VT_FORWARDFILEDATA = 24, VT_BACKFILEDATA = 26 }; const Node3DOption* node3DOption() const { return GetPointer(VT_NODE3DOPTION); } float fov() const { return GetField(VT_FOV, 60.0f); } float nearClip() const { return GetField(VT_NEARCLIP, 1.0f); } float farClip() const { return GetField(VT_FARCLIP, 1000.0f); } int32_t cameraFlag() const { return GetField(VT_CAMERAFLAG, 0); } bool skyBoxEnabled() const { return GetField(VT_SKYBOXENABLED, 0) != 0; } const ResourceData* leftFileData() const { return GetPointer(VT_LEFTFILEDATA); } const ResourceData* rightFileData() const { return GetPointer(VT_RIGHTFILEDATA); } const ResourceData* upFileData() const { return GetPointer(VT_UPFILEDATA); } const ResourceData* downFileData() const { return GetPointer(VT_DOWNFILEDATA); } const ResourceData* forwardFileData() const { return GetPointer(VT_FORWARDFILEDATA); } const ResourceData* backFileData() const { return GetPointer(VT_BACKFILEDATA); } bool Verify(flatbuffers::Verifier& verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NODE3DOPTION) && verifier.VerifyTable(node3DOption()) && VerifyField(verifier, VT_FOV) && VerifyField(verifier, VT_NEARCLIP) && VerifyField(verifier, VT_FARCLIP) && VerifyField(verifier, VT_CAMERAFLAG) && VerifyField(verifier, VT_SKYBOXENABLED) && VerifyOffset(verifier, VT_LEFTFILEDATA) && verifier.VerifyTable(leftFileData()) && VerifyOffset(verifier, VT_RIGHTFILEDATA) && verifier.VerifyTable(rightFileData()) && VerifyOffset(verifier, VT_UPFILEDATA) && verifier.VerifyTable(upFileData()) && VerifyOffset(verifier, VT_DOWNFILEDATA) && verifier.VerifyTable(downFileData()) && VerifyOffset(verifier, VT_FORWARDFILEDATA) && verifier.VerifyTable(forwardFileData()) && VerifyOffset(verifier, VT_BACKFILEDATA) && verifier.VerifyTable(backFileData()) && verifier.EndTable(); } }; struct UserCameraOptionsBuilder { flatbuffers::FlatBufferBuilder& fbb_; flatbuffers::uoffset_t start_; void add_node3DOption(flatbuffers::Offset node3DOption) { fbb_.AddOffset(UserCameraOptions::VT_NODE3DOPTION, node3DOption); } void add_fov(float fov) { fbb_.AddElement(UserCameraOptions::VT_FOV, fov, 60.0f); } void add_nearClip(float nearClip) { fbb_.AddElement(UserCameraOptions::VT_NEARCLIP, nearClip, 1.0f); } void add_farClip(float farClip) { fbb_.AddElement(UserCameraOptions::VT_FARCLIP, farClip, 1000.0f); } void add_cameraFlag(int32_t cameraFlag) { fbb_.AddElement(UserCameraOptions::VT_CAMERAFLAG, cameraFlag, 0); } void add_skyBoxEnabled(bool skyBoxEnabled) { fbb_.AddElement(UserCameraOptions::VT_SKYBOXENABLED, static_cast(skyBoxEnabled), 0); } void add_leftFileData(flatbuffers::Offset leftFileData) { fbb_.AddOffset(UserCameraOptions::VT_LEFTFILEDATA, leftFileData); } void add_rightFileData(flatbuffers::Offset rightFileData) { fbb_.AddOffset(UserCameraOptions::VT_RIGHTFILEDATA, rightFileData); } void add_upFileData(flatbuffers::Offset upFileData) { fbb_.AddOffset(UserCameraOptions::VT_UPFILEDATA, upFileData); } void add_downFileData(flatbuffers::Offset downFileData) { fbb_.AddOffset(UserCameraOptions::VT_DOWNFILEDATA, downFileData); } void add_forwardFileData(flatbuffers::Offset forwardFileData) { fbb_.AddOffset(UserCameraOptions::VT_FORWARDFILEDATA, forwardFileData); } void add_backFileData(flatbuffers::Offset backFileData) { fbb_.AddOffset(UserCameraOptions::VT_BACKFILEDATA, backFileData); } explicit UserCameraOptionsBuilder(flatbuffers::FlatBufferBuilder& _fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } UserCameraOptionsBuilder& operator=(const UserCameraOptionsBuilder&); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateUserCameraOptions( flatbuffers::FlatBufferBuilder& _fbb, flatbuffers::Offset node3DOption = 0, float fov = 60.0f, float nearClip = 1.0f, float farClip = 1000.0f, int32_t cameraFlag = 0, bool skyBoxEnabled = false, flatbuffers::Offset leftFileData = 0, flatbuffers::Offset rightFileData = 0, flatbuffers::Offset upFileData = 0, flatbuffers::Offset downFileData = 0, flatbuffers::Offset forwardFileData = 0, flatbuffers::Offset backFileData = 0) { UserCameraOptionsBuilder builder_(_fbb); builder_.add_backFileData(backFileData); builder_.add_forwardFileData(forwardFileData); builder_.add_downFileData(downFileData); builder_.add_upFileData(upFileData); builder_.add_rightFileData(rightFileData); builder_.add_leftFileData(leftFileData); builder_.add_cameraFlag(cameraFlag); builder_.add_farClip(farClip); builder_.add_nearClip(nearClip); builder_.add_fov(fov); builder_.add_node3DOption(node3DOption); builder_.add_skyBoxEnabled(skyBoxEnabled); return builder_.Finish(); } struct GameNode3DOption FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_NAME = 4, VT_SKYBOXMASK = 6, VT_SKYBOXENABLED = 8, VT_LEFTFILEDATA = 10, VT_RIGHTFILEDATA = 12, VT_UPFILEDATA = 14, VT_DOWNFILEDATA = 16, VT_FORWARDFILEDATA = 18, VT_BACKFILEDATA = 20, VT_FRAMEEVENT = 22, VT_CUSTOMPROPERTY = 24, VT_USEDEFAULTLIGHT = 26 }; const flatbuffers::String* name() const { return GetPointer(VT_NAME); } int32_t skyBoxMask() const { return GetField(VT_SKYBOXMASK, 0); } bool skyBoxEnabled() const { return GetField(VT_SKYBOXENABLED, 0) != 0; } const ResourceData* leftFileData() const { return GetPointer(VT_LEFTFILEDATA); } const ResourceData* rightFileData() const { return GetPointer(VT_RIGHTFILEDATA); } const ResourceData* upFileData() const { return GetPointer(VT_UPFILEDATA); } const ResourceData* downFileData() const { return GetPointer(VT_DOWNFILEDATA); } const ResourceData* forwardFileData() const { return GetPointer(VT_FORWARDFILEDATA); } const ResourceData* backFileData() const { return GetPointer(VT_BACKFILEDATA); } const flatbuffers::String* frameEvent() const { return GetPointer(VT_FRAMEEVENT); } const flatbuffers::String* customProperty() const { return GetPointer(VT_CUSTOMPROPERTY); } bool useDefaultLight() const { return GetField(VT_USEDEFAULTLIGHT, 0) != 0; } bool Verify(flatbuffers::Verifier& verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NAME) && verifier.VerifyString(name()) && VerifyField(verifier, VT_SKYBOXMASK) && VerifyField(verifier, VT_SKYBOXENABLED) && VerifyOffset(verifier, VT_LEFTFILEDATA) && verifier.VerifyTable(leftFileData()) && VerifyOffset(verifier, VT_RIGHTFILEDATA) && verifier.VerifyTable(rightFileData()) && VerifyOffset(verifier, VT_UPFILEDATA) && verifier.VerifyTable(upFileData()) && VerifyOffset(verifier, VT_DOWNFILEDATA) && verifier.VerifyTable(downFileData()) && VerifyOffset(verifier, VT_FORWARDFILEDATA) && verifier.VerifyTable(forwardFileData()) && VerifyOffset(verifier, VT_BACKFILEDATA) && verifier.VerifyTable(backFileData()) && VerifyOffset(verifier, VT_FRAMEEVENT) && verifier.VerifyString(frameEvent()) && VerifyOffset(verifier, VT_CUSTOMPROPERTY) && verifier.VerifyString(customProperty()) && VerifyField(verifier, VT_USEDEFAULTLIGHT) && verifier.EndTable(); } }; struct GameNode3DOptionBuilder { flatbuffers::FlatBufferBuilder& fbb_; flatbuffers::uoffset_t start_; void add_name(flatbuffers::Offset name) { fbb_.AddOffset(GameNode3DOption::VT_NAME, name); } void add_skyBoxMask(int32_t skyBoxMask) { fbb_.AddElement(GameNode3DOption::VT_SKYBOXMASK, skyBoxMask, 0); } void add_skyBoxEnabled(bool skyBoxEnabled) { fbb_.AddElement(GameNode3DOption::VT_SKYBOXENABLED, static_cast(skyBoxEnabled), 0); } void add_leftFileData(flatbuffers::Offset leftFileData) { fbb_.AddOffset(GameNode3DOption::VT_LEFTFILEDATA, leftFileData); } void add_rightFileData(flatbuffers::Offset rightFileData) { fbb_.AddOffset(GameNode3DOption::VT_RIGHTFILEDATA, rightFileData); } void add_upFileData(flatbuffers::Offset upFileData) { fbb_.AddOffset(GameNode3DOption::VT_UPFILEDATA, upFileData); } void add_downFileData(flatbuffers::Offset downFileData) { fbb_.AddOffset(GameNode3DOption::VT_DOWNFILEDATA, downFileData); } void add_forwardFileData(flatbuffers::Offset forwardFileData) { fbb_.AddOffset(GameNode3DOption::VT_FORWARDFILEDATA, forwardFileData); } void add_backFileData(flatbuffers::Offset backFileData) { fbb_.AddOffset(GameNode3DOption::VT_BACKFILEDATA, backFileData); } void add_frameEvent(flatbuffers::Offset frameEvent) { fbb_.AddOffset(GameNode3DOption::VT_FRAMEEVENT, frameEvent); } void add_customProperty(flatbuffers::Offset customProperty) { fbb_.AddOffset(GameNode3DOption::VT_CUSTOMPROPERTY, customProperty); } void add_useDefaultLight(bool useDefaultLight) { fbb_.AddElement(GameNode3DOption::VT_USEDEFAULTLIGHT, static_cast(useDefaultLight), 0); } explicit GameNode3DOptionBuilder(flatbuffers::FlatBufferBuilder& _fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } GameNode3DOptionBuilder& operator=(const GameNode3DOptionBuilder&); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateGameNode3DOption( flatbuffers::FlatBufferBuilder& _fbb, flatbuffers::Offset name = 0, int32_t skyBoxMask = 0, bool skyBoxEnabled = false, flatbuffers::Offset leftFileData = 0, flatbuffers::Offset rightFileData = 0, flatbuffers::Offset upFileData = 0, flatbuffers::Offset downFileData = 0, flatbuffers::Offset forwardFileData = 0, flatbuffers::Offset backFileData = 0, flatbuffers::Offset frameEvent = 0, flatbuffers::Offset customProperty = 0, bool useDefaultLight = false) { GameNode3DOptionBuilder builder_(_fbb); builder_.add_customProperty(customProperty); builder_.add_frameEvent(frameEvent); builder_.add_backFileData(backFileData); builder_.add_forwardFileData(forwardFileData); builder_.add_downFileData(downFileData); builder_.add_upFileData(upFileData); builder_.add_rightFileData(rightFileData); builder_.add_leftFileData(leftFileData); builder_.add_skyBoxMask(skyBoxMask); builder_.add_name(name); builder_.add_useDefaultLight(useDefaultLight); builder_.add_skyBoxEnabled(skyBoxEnabled); return builder_.Finish(); } inline flatbuffers::Offset CreateGameNode3DOptionDirect( flatbuffers::FlatBufferBuilder& _fbb, const char* name = nullptr, int32_t skyBoxMask = 0, bool skyBoxEnabled = false, flatbuffers::Offset leftFileData = 0, flatbuffers::Offset rightFileData = 0, flatbuffers::Offset upFileData = 0, flatbuffers::Offset downFileData = 0, flatbuffers::Offset forwardFileData = 0, flatbuffers::Offset backFileData = 0, const char* frameEvent = nullptr, const char* customProperty = nullptr, bool useDefaultLight = false) { auto name__ = name ? _fbb.CreateString(name) : 0; auto frameEvent__ = frameEvent ? _fbb.CreateString(frameEvent) : 0; auto customProperty__ = customProperty ? _fbb.CreateString(customProperty) : 0; return flatbuffers::CreateGameNode3DOption(_fbb, name__, skyBoxMask, skyBoxEnabled, leftFileData, rightFileData, upFileData, downFileData, forwardFileData, backFileData, frameEvent__, customProperty__, useDefaultLight); } struct Light3DOption FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_NODE3DOPTION = 4, VT_ENABLED = 6, VT_TYPE = 8, VT_FLAG = 10, VT_INTENSITY = 12, VT_RANGE = 14, VT_OUTERANGLE = 16 }; const Node3DOption* node3DOption() const { return GetPointer(VT_NODE3DOPTION); } bool enabled() const { return GetField(VT_ENABLED, 0) != 0; } int32_t type() const { return GetField(VT_TYPE, 0); } int32_t flag() const { return GetField(VT_FLAG, 0); } float intensity() const { return GetField(VT_INTENSITY, 0.0f); } float range() const { return GetField(VT_RANGE, 0.0f); } float outerAngle() const { return GetField(VT_OUTERANGLE, 0.0f); } bool Verify(flatbuffers::Verifier& verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NODE3DOPTION) && verifier.VerifyTable(node3DOption()) && VerifyField(verifier, VT_ENABLED) && VerifyField(verifier, VT_TYPE) && VerifyField(verifier, VT_FLAG) && VerifyField(verifier, VT_INTENSITY) && VerifyField(verifier, VT_RANGE) && VerifyField(verifier, VT_OUTERANGLE) && verifier.EndTable(); } }; struct Light3DOptionBuilder { flatbuffers::FlatBufferBuilder& fbb_; flatbuffers::uoffset_t start_; void add_node3DOption(flatbuffers::Offset node3DOption) { fbb_.AddOffset(Light3DOption::VT_NODE3DOPTION, node3DOption); } void add_enabled(bool enabled) { fbb_.AddElement(Light3DOption::VT_ENABLED, static_cast(enabled), 0); } void add_type(int32_t type) { fbb_.AddElement(Light3DOption::VT_TYPE, type, 0); } void add_flag(int32_t flag) { fbb_.AddElement(Light3DOption::VT_FLAG, flag, 0); } void add_intensity(float intensity) { fbb_.AddElement(Light3DOption::VT_INTENSITY, intensity, 0.0f); } void add_range(float range) { fbb_.AddElement(Light3DOption::VT_RANGE, range, 0.0f); } void add_outerAngle(float outerAngle) { fbb_.AddElement(Light3DOption::VT_OUTERANGLE, outerAngle, 0.0f); } explicit Light3DOptionBuilder(flatbuffers::FlatBufferBuilder& _fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } Light3DOptionBuilder& operator=(const Light3DOptionBuilder&); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateLight3DOption(flatbuffers::FlatBufferBuilder& _fbb, flatbuffers::Offset node3DOption = 0, bool enabled = false, int32_t type = 0, int32_t flag = 0, float intensity = 0.0f, float range = 0.0f, float outerAngle = 0.0f) { Light3DOptionBuilder builder_(_fbb); builder_.add_outerAngle(outerAngle); builder_.add_range(range); builder_.add_intensity(intensity); builder_.add_flag(flag); builder_.add_type(type); builder_.add_node3DOption(node3DOption); builder_.add_enabled(enabled); return builder_.Finish(); } inline const flatbuffers::Node3DOption* GetNode3DOption(const void* buf) { return flatbuffers::GetRoot(buf); } inline const flatbuffers::Node3DOption* GetSizePrefixedNode3DOption(const void* buf) { return flatbuffers::GetSizePrefixedRoot(buf); } inline bool VerifyNode3DOptionBuffer(flatbuffers::Verifier& verifier) { return verifier.VerifyBuffer(nullptr); } inline bool VerifySizePrefixedNode3DOptionBuffer(flatbuffers::Verifier& verifier) { return verifier.VerifySizePrefixedBuffer(nullptr); } inline void FinishNode3DOptionBuffer(flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset root) { fbb.Finish(root); } inline void FinishSizePrefixedNode3DOptionBuffer(flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset root) { fbb.FinishSizePrefixed(root); } } // namespace flatbuffers #endif // FLATBUFFERS_GENERATED_CSPARSE3DBINARY_FLATBUFFERS_H_