axmol/cocos/editor-support/cocostudio/CSParse3DBinary_generated.h

723 lines
26 KiB
C
Raw Normal View History

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