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

509 lines
24 KiB
C
Raw Normal View History

/****************************************************************************
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
2015-02-19 12:08:09 +08:00
// 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"
namespace flatbuffers {
struct CSParseBinary;
struct NodeTree;
struct Options;
struct WidgetOptions;
struct LayoutComponentTable;
struct SingleNodeOptions;
struct SpriteOptions;
struct ParticleSystemOptions;
struct GameMapOptions;
struct ButtonOptions;
struct CheckBoxOptions;
struct ImageViewOptions;
struct TextAtlasOptions;
struct TextBMFontOptions;
struct TextOptions;
struct TextFieldOptions;
struct LoadingBarOptions;
struct SliderOptions;
struct PanelOptions;
struct ScrollViewOptions;
struct PageViewOptions;
struct ListViewOptions;
struct ProjectNodeOptions;
struct ComponentOptions;
struct ComAudioOptions;
struct AnimationInfo;
struct NodeAction;
struct TimeLine;
struct Frame;
struct PointFrame;
struct ScaleFrame;
struct ColorFrame;
struct TextureFrame;
struct EventFrame;
struct IntFrame;
struct BoolFrame;
struct InnerActionFrame;
struct EasingData;
struct RotationSkew;
struct Position;
struct Scale;
struct AnchorPoint;
struct Color;
struct ColorVector;
struct FlatSize;
struct CapInsets;
struct BlendFunc;
struct ResourceData;
struct BlendFrame;
} // namespace flatbuffers
2015-02-19 12:08:09 +08:00
namespace flatbuffers {
struct Node3DOption;
2015-02-23 00:34:30 +08:00
struct Sprite3DOptions;
struct Particle3DOptions;
struct UserCameraOptions;
struct GameNode3DOption;
2015-09-29 11:27:01 +08:00
struct Light3DOption;
2015-02-23 00:34:30 +08:00
struct Vector2;
2015-02-19 12:08:09 +08:00
struct Vector3;
MANUALLY_ALIGNED_STRUCT(4) Vector2 {
2015-02-23 00:34:30 +08:00
private:
float x_;
float y_;
public:
Vector2(float x, float y)
: x_(flatbuffers::EndianScalar(x)), y_(flatbuffers::EndianScalar(y)) { }
2015-02-23 00:34:30 +08:00
float x() const { return flatbuffers::EndianScalar(x_); }
float y() const { return flatbuffers::EndianScalar(y_); }
};
STRUCT_END(Vector2, 8);
MANUALLY_ALIGNED_STRUCT(4) Vector3 {
2015-02-19 12:08:09 +08:00
private:
float x_;
float y_;
float z_;
public:
Vector3(float x, float y, float z)
: x_(flatbuffers::EndianScalar(x)), y_(flatbuffers::EndianScalar(y)), z_(flatbuffers::EndianScalar(z)) { }
2015-02-19 12:08:09 +08:00
float x() const { return flatbuffers::EndianScalar(x_); }
float y() const { return flatbuffers::EndianScalar(y_); }
float z() const { return flatbuffers::EndianScalar(z_); }
};
STRUCT_END(Vector3, 12);
struct Node3DOption : private flatbuffers::Table {
const flatbuffers::WidgetOptions *nodeOptions() const { return GetPointer<const flatbuffers::WidgetOptions *>(4); }
const Vector3 *position3D() const { return GetStruct<const Vector3 *>(6); }
const Vector3 *rotation3D() const { return GetStruct<const Vector3 *>(8); }
const Vector3 *scale3D() const { return GetStruct<const Vector3 *>(10); }
int32_t cameramask() const { return GetField<int32_t>(12, 0); }
2015-02-19 12:08:09 +08:00
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 4 /* nodeOptions */) &&
2015-02-19 12:08:09 +08:00
verifier.VerifyTable(nodeOptions()) &&
VerifyField<Vector3>(verifier, 6 /* position3D */) &&
VerifyField<Vector3>(verifier, 8 /* rotation3D */) &&
VerifyField<Vector3>(verifier, 10 /* scale3D */) &&
VerifyField<int32_t>(verifier, 12 /* cameramask */) &&
2015-02-19 12:08:09 +08:00
verifier.EndTable();
}
};
struct Node3DOptionBuilder {
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_nodeOptions(flatbuffers::Offset<flatbuffers::WidgetOptions> nodeOptions) { fbb_.AddOffset(4, nodeOptions); }
void add_position3D(const Vector3 *position3D) { fbb_.AddStruct(6, position3D); }
void add_rotation3D(const Vector3 *rotation3D) { fbb_.AddStruct(8, rotation3D); }
void add_scale3D(const Vector3 *scale3D) { fbb_.AddStruct(10, scale3D); }
void add_cameramask(int32_t cameramask) { fbb_.AddElement<int32_t>(12, cameramask, 0); }
2015-02-19 12:08:09 +08:00
Node3DOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
Node3DOptionBuilder &operator=(const Node3DOptionBuilder &);
flatbuffers::Offset<Node3DOption> Finish() {
auto o = flatbuffers::Offset<Node3DOption>(fbb_.EndTable(start_, 5));
return o;
}
};
inline flatbuffers::Offset<Node3DOption> CreateNode3DOption(flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<flatbuffers::WidgetOptions> nodeOptions = 0,
const Vector3 *position3D = 0,
const Vector3 *rotation3D = 0,
const Vector3 *scale3D = 0,
int32_t cameramask = 0) {
2015-02-19 12:08:09 +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();
}
struct Sprite3DOptions : private flatbuffers::Table {
const Node3DOption *node3DOption() const { return GetPointer<const Node3DOption *>(4); }
const flatbuffers::ResourceData *fileData() const { return GetPointer<const flatbuffers::ResourceData *>(6); }
uint8_t runAction() const { return GetField<uint8_t>(8, 0); }
uint8_t isFlipped() const { return GetField<uint8_t>(10, 0); }
int32_t lightFlag() const { return GetField<int32_t>(12, 0); }
2015-02-23 00:34:30 +08:00
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 4 /* node3DOption */) &&
2015-02-23 00:34:30 +08:00
verifier.VerifyTable(node3DOption()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 6 /* fileData */) &&
2015-02-23 00:34:30 +08:00
verifier.VerifyTable(fileData()) &&
VerifyField<uint8_t>(verifier, 8 /* runAction */) &&
VerifyField<uint8_t>(verifier, 10 /* isFlipped */) &&
VerifyField<int32_t>(verifier, 12 /* lightFlag */) &&
2015-02-23 00:34:30 +08:00
verifier.EndTable();
}
};
struct Sprite3DOptionsBuilder {
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_node3DOption(flatbuffers::Offset<Node3DOption> node3DOption) { fbb_.AddOffset(4, node3DOption); }
void add_fileData(flatbuffers::Offset<flatbuffers::ResourceData> fileData) { fbb_.AddOffset(6, fileData); }
void add_runAction(uint8_t runAction) { fbb_.AddElement<uint8_t>(8, runAction, 0); }
void add_isFlipped(uint8_t isFlipped) { fbb_.AddElement<uint8_t>(10, isFlipped, 0); }
void add_lightFlag(int32_t lightFlag) { fbb_.AddElement<int32_t>(12, lightFlag, 0); }
2015-02-23 00:34:30 +08:00
Sprite3DOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
Sprite3DOptionsBuilder &operator=(const Sprite3DOptionsBuilder &);
flatbuffers::Offset<Sprite3DOptions> Finish() {
2015-09-29 11:27:01 +08:00
auto o = flatbuffers::Offset<Sprite3DOptions>(fbb_.EndTable(start_, 5));
2015-02-23 00:34:30 +08:00
return o;
}
};
inline flatbuffers::Offset<Sprite3DOptions> CreateSprite3DOptions(flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<Node3DOption> node3DOption = 0,
flatbuffers::Offset<flatbuffers::ResourceData> fileData = 0,
uint8_t runAction = 0,
uint8_t isFlipped = 0,
int32_t lightFlag = 0) {
2015-02-23 00:34:30 +08:00
Sprite3DOptionsBuilder builder_(_fbb);
2015-09-29 11:27:01 +08:00
builder_.add_lightFlag(lightFlag);
2015-02-23 00:34:30 +08:00
builder_.add_fileData(fileData);
builder_.add_node3DOption(node3DOption);
builder_.add_isFlipped(isFlipped);
2015-02-23 00:34:30 +08:00
builder_.add_runAction(runAction);
return builder_.Finish();
}
struct Particle3DOptions : private flatbuffers::Table {
const Node3DOption *node3DOption() const { return GetPointer<const Node3DOption *>(4); }
const flatbuffers::ResourceData *fileData() const { return GetPointer<const flatbuffers::ResourceData *>(6); }
2015-02-23 00:34:30 +08:00
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 4 /* node3DOption */) &&
2015-02-23 00:34:30 +08:00
verifier.VerifyTable(node3DOption()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 6 /* fileData */) &&
2015-02-23 00:34:30 +08:00
verifier.VerifyTable(fileData()) &&
verifier.EndTable();
}
};
struct Particle3DOptionsBuilder {
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_node3DOption(flatbuffers::Offset<Node3DOption> node3DOption) { fbb_.AddOffset(4, node3DOption); }
void add_fileData(flatbuffers::Offset<flatbuffers::ResourceData> fileData) { fbb_.AddOffset(6, fileData); }
2015-02-23 00:34:30 +08:00
Particle3DOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
Particle3DOptionsBuilder &operator=(const Particle3DOptionsBuilder &);
flatbuffers::Offset<Particle3DOptions> Finish() {
auto o = flatbuffers::Offset<Particle3DOptions>(fbb_.EndTable(start_, 2));
return o;
}
};
inline flatbuffers::Offset<Particle3DOptions> CreateParticle3DOptions(flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<Node3DOption> node3DOption = 0,
flatbuffers::Offset<flatbuffers::ResourceData> fileData = 0) {
2015-02-23 00:34:30 +08:00
Particle3DOptionsBuilder builder_(_fbb);
builder_.add_fileData(fileData);
builder_.add_node3DOption(node3DOption);
return builder_.Finish();
}
struct UserCameraOptions : private flatbuffers::Table {
const Node3DOption *node3DOption() const { return GetPointer<const Node3DOption *>(4); }
float fov() const { return GetField<float>(6, 60); }
float nearClip() const { return GetField<float>(8, 1); }
float farClip() const { return GetField<float>(10, 1000); }
int32_t cameraFlag() const { return GetField<int32_t>(12, 0); }
uint8_t skyBoxEnabled() const { return GetField<uint8_t>(14, 0); }
const flatbuffers::ResourceData *leftFileData() const { return GetPointer<const flatbuffers::ResourceData *>(16); }
const flatbuffers::ResourceData *rightFileData() const { return GetPointer<const flatbuffers::ResourceData *>(18); }
const flatbuffers::ResourceData *upFileData() const { return GetPointer<const flatbuffers::ResourceData *>(20); }
const flatbuffers::ResourceData *downFileData() const { return GetPointer<const flatbuffers::ResourceData *>(22); }
const flatbuffers::ResourceData *forwardFileData() const { return GetPointer<const flatbuffers::ResourceData *>(24); }
const flatbuffers::ResourceData *backFileData() const { return GetPointer<const flatbuffers::ResourceData *>(26); }
2015-02-23 00:34:30 +08:00
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 4 /* node3DOption */) &&
2015-02-23 00:34:30 +08:00
verifier.VerifyTable(node3DOption()) &&
VerifyField<float>(verifier, 6 /* fov */) &&
VerifyField<float>(verifier, 8 /* nearClip */) &&
VerifyField<float>(verifier, 10 /* farClip */) &&
VerifyField<int32_t>(verifier, 12 /* cameraFlag */) &&
VerifyField<uint8_t>(verifier, 14 /* skyBoxEnabled */) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 16 /* leftFileData */) &&
2015-07-03 17:52:42 +08:00
verifier.VerifyTable(leftFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 18 /* rightFileData */) &&
2015-07-03 17:52:42 +08:00
verifier.VerifyTable(rightFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 20 /* upFileData */) &&
2015-07-03 17:52:42 +08:00
verifier.VerifyTable(upFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 22 /* downFileData */) &&
2015-07-03 17:52:42 +08:00
verifier.VerifyTable(downFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 24 /* forwardFileData */) &&
2015-07-03 17:52:42 +08:00
verifier.VerifyTable(forwardFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 26 /* backFileData */) &&
2015-07-03 17:52:42 +08:00
verifier.VerifyTable(backFileData()) &&
2015-02-23 00:34:30 +08:00
verifier.EndTable();
}
};
struct UserCameraOptionsBuilder {
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_node3DOption(flatbuffers::Offset<Node3DOption> node3DOption) { fbb_.AddOffset(4, node3DOption); }
void add_fov(float fov) { fbb_.AddElement<float>(6, fov, 60); }
void add_nearClip(float nearClip) { fbb_.AddElement<float>(8, nearClip, 1); }
void add_farClip(float farClip) { fbb_.AddElement<float>(10, farClip, 1000); }
void add_cameraFlag(int32_t cameraFlag) { fbb_.AddElement<int32_t>(12, cameraFlag, 0); }
void add_skyBoxEnabled(uint8_t skyBoxEnabled) { fbb_.AddElement<uint8_t>(14, skyBoxEnabled, 0); }
void add_leftFileData(flatbuffers::Offset<flatbuffers::ResourceData> leftFileData) { fbb_.AddOffset(16, leftFileData); }
void add_rightFileData(flatbuffers::Offset<flatbuffers::ResourceData> rightFileData) { fbb_.AddOffset(18, rightFileData); }
void add_upFileData(flatbuffers::Offset<flatbuffers::ResourceData> upFileData) { fbb_.AddOffset(20, upFileData); }
void add_downFileData(flatbuffers::Offset<flatbuffers::ResourceData> downFileData) { fbb_.AddOffset(22, downFileData); }
void add_forwardFileData(flatbuffers::Offset<flatbuffers::ResourceData> forwardFileData) { fbb_.AddOffset(24, forwardFileData); }
void add_backFileData(flatbuffers::Offset<flatbuffers::ResourceData> backFileData) { fbb_.AddOffset(26, backFileData); }
2015-02-23 00:34:30 +08:00
UserCameraOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
UserCameraOptionsBuilder &operator=(const UserCameraOptionsBuilder &);
flatbuffers::Offset<UserCameraOptions> Finish() {
2015-07-03 17:52:42 +08:00
auto o = flatbuffers::Offset<UserCameraOptions>(fbb_.EndTable(start_, 12));
2015-02-23 00:34:30 +08:00
return o;
}
};
inline flatbuffers::Offset<UserCameraOptions> CreateUserCameraOptions(flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<Node3DOption> node3DOption = 0,
float fov = 60,
float nearClip = 1,
float farClip = 1000,
int32_t cameraFlag = 0,
uint8_t skyBoxEnabled = 0,
flatbuffers::Offset<flatbuffers::ResourceData> leftFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> rightFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> upFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> downFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> forwardFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> backFileData = 0) {
2015-02-23 00:34:30 +08:00
UserCameraOptionsBuilder builder_(_fbb);
2015-07-03 17:52:42 +08:00
builder_.add_backFileData(backFileData);
builder_.add_forwardFileData(forwardFileData);
builder_.add_downFileData(downFileData);
builder_.add_upFileData(upFileData);
builder_.add_rightFileData(rightFileData);
builder_.add_leftFileData(leftFileData);
2015-02-23 00:34:30 +08:00
builder_.add_cameraFlag(cameraFlag);
builder_.add_farClip(farClip);
builder_.add_nearClip(nearClip);
2015-02-23 00:34:30 +08:00
builder_.add_fov(fov);
builder_.add_node3DOption(node3DOption);
builder_.add_skyBoxEnabled(skyBoxEnabled);
return builder_.Finish();
}
struct GameNode3DOption : private flatbuffers::Table {
const flatbuffers::String *name() const { return GetPointer<const flatbuffers::String *>(4); }
int32_t skyBoxMask() const { return GetField<int32_t>(6, 0); }
uint8_t skyBoxEnabled() const { return GetField<uint8_t>(8, 0); }
const flatbuffers::ResourceData *leftFileData() const { return GetPointer<const flatbuffers::ResourceData *>(10); }
const flatbuffers::ResourceData *rightFileData() const { return GetPointer<const flatbuffers::ResourceData *>(12); }
const flatbuffers::ResourceData *upFileData() const { return GetPointer<const flatbuffers::ResourceData *>(14); }
const flatbuffers::ResourceData *downFileData() const { return GetPointer<const flatbuffers::ResourceData *>(16); }
const flatbuffers::ResourceData *forwardFileData() const { return GetPointer<const flatbuffers::ResourceData *>(18); }
const flatbuffers::ResourceData *backFileData() const { return GetPointer<const flatbuffers::ResourceData *>(20); }
const flatbuffers::String *frameEvent() const { return GetPointer<const flatbuffers::String *>(22); }
const flatbuffers::String *customProperty() const { return GetPointer<const flatbuffers::String *>(24); }
uint8_t useDefaultLight() const { return GetField<uint8_t>(26, 0); }
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 4 /* name */) &&
verifier.Verify(name()) &&
VerifyField<int32_t>(verifier, 6 /* skyBoxMask */) &&
VerifyField<uint8_t>(verifier, 8 /* skyBoxEnabled */) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 10 /* leftFileData */) &&
verifier.VerifyTable(leftFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 12 /* rightFileData */) &&
verifier.VerifyTable(rightFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 14 /* upFileData */) &&
verifier.VerifyTable(upFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 16 /* downFileData */) &&
verifier.VerifyTable(downFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 18 /* forwardFileData */) &&
verifier.VerifyTable(forwardFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 20 /* backFileData */) &&
verifier.VerifyTable(backFileData()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 22 /* frameEvent */) &&
verifier.Verify(frameEvent()) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 24 /* customProperty */) &&
verifier.Verify(customProperty()) &&
VerifyField<uint8_t>(verifier, 26 /* useDefaultLight */) &&
verifier.EndTable();
}
};
struct GameNode3DOptionBuilder {
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_name(flatbuffers::Offset<flatbuffers::String> name) { fbb_.AddOffset(4, name); }
void add_skyBoxMask(int32_t skyBoxMask) { fbb_.AddElement<int32_t>(6, skyBoxMask, 0); }
void add_skyBoxEnabled(uint8_t skyBoxEnabled) { fbb_.AddElement<uint8_t>(8, skyBoxEnabled, 0); }
void add_leftFileData(flatbuffers::Offset<flatbuffers::ResourceData> leftFileData) { fbb_.AddOffset(10, leftFileData); }
void add_rightFileData(flatbuffers::Offset<flatbuffers::ResourceData> rightFileData) { fbb_.AddOffset(12, rightFileData); }
void add_upFileData(flatbuffers::Offset<flatbuffers::ResourceData> upFileData) { fbb_.AddOffset(14, upFileData); }
void add_downFileData(flatbuffers::Offset<flatbuffers::ResourceData> downFileData) { fbb_.AddOffset(16, downFileData); }
void add_forwardFileData(flatbuffers::Offset<flatbuffers::ResourceData> forwardFileData) { fbb_.AddOffset(18, forwardFileData); }
void add_backFileData(flatbuffers::Offset<flatbuffers::ResourceData> backFileData) { fbb_.AddOffset(20, backFileData); }
void add_frameEvent(flatbuffers::Offset<flatbuffers::String> frameEvent) { fbb_.AddOffset(22, frameEvent); }
void add_customProperty(flatbuffers::Offset<flatbuffers::String> customProperty) { fbb_.AddOffset(24, customProperty); }
void add_useDefaultLight(uint8_t useDefaultLight) { fbb_.AddElement<uint8_t>(26, useDefaultLight, 0); }
GameNode3DOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
GameNode3DOptionBuilder &operator=(const GameNode3DOptionBuilder &);
flatbuffers::Offset<GameNode3DOption> Finish() {
2015-09-29 18:33:28 +08:00
auto o = flatbuffers::Offset<GameNode3DOption>(fbb_.EndTable(start_, 12));
return o;
}
};
inline flatbuffers::Offset<GameNode3DOption> CreateGameNode3DOption(flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<flatbuffers::String> name = 0,
int32_t skyBoxMask = 0,
uint8_t skyBoxEnabled = 0,
flatbuffers::Offset<flatbuffers::ResourceData> leftFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> rightFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> upFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> downFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> forwardFileData = 0,
flatbuffers::Offset<flatbuffers::ResourceData> backFileData = 0,
flatbuffers::Offset<flatbuffers::String> frameEvent = 0,
flatbuffers::Offset<flatbuffers::String> customProperty = 0,
uint8_t useDefaultLight = 0) {
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);
2015-09-29 18:33:28 +08:00
builder_.add_useDefaultLight(useDefaultLight);
builder_.add_skyBoxEnabled(skyBoxEnabled);
2015-02-23 00:34:30 +08:00
return builder_.Finish();
}
struct Light3DOption : private flatbuffers::Table {
const Node3DOption *node3DOption() const { return GetPointer<const Node3DOption *>(4); }
uint8_t enabled() const { return GetField<uint8_t>(6, 0); }
int32_t type() const { return GetField<int32_t>(8, 0); }
int32_t flag() const { return GetField<int32_t>(10, 0); }
float intensity() const { return GetField<float>(12, 0); }
float range() const { return GetField<float>(14, 0); }
float outerAngle() const { return GetField<float>(16, 0); }
2015-09-29 11:27:01 +08:00
bool Verify(flatbuffers::Verifier &verifier) const {
return VerifyTableStart(verifier) &&
VerifyField<flatbuffers::uoffset_t>(verifier, 4 /* node3DOption */) &&
2015-09-29 11:27:01 +08:00
verifier.VerifyTable(node3DOption()) &&
VerifyField<uint8_t>(verifier, 6 /* enabled */) &&
VerifyField<int32_t>(verifier, 8 /* type */) &&
VerifyField<int32_t>(verifier, 10 /* flag */) &&
VerifyField<float>(verifier, 12 /* intensity */) &&
VerifyField<float>(verifier, 14 /* range */) &&
VerifyField<float>(verifier, 16 /* outerAngle */) &&
2015-09-29 11:27:01 +08:00
verifier.EndTable();
}
};
struct Light3DOptionBuilder {
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
void add_node3DOption(flatbuffers::Offset<Node3DOption> node3DOption) { fbb_.AddOffset(4, node3DOption); }
void add_enabled(uint8_t enabled) { fbb_.AddElement<uint8_t>(6, enabled, 0); }
void add_type(int32_t type) { fbb_.AddElement<int32_t>(8, type, 0); }
void add_flag(int32_t flag) { fbb_.AddElement<int32_t>(10, flag, 0); }
void add_intensity(float intensity) { fbb_.AddElement<float>(12, intensity, 0); }
void add_range(float range) { fbb_.AddElement<float>(14, range, 0); }
void add_outerAngle(float outerAngle) { fbb_.AddElement<float>(16, outerAngle, 0); }
2015-09-29 11:27:01 +08:00
Light3DOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
Light3DOptionBuilder &operator=(const Light3DOptionBuilder &);
flatbuffers::Offset<Light3DOption> Finish() {
auto o = flatbuffers::Offset<Light3DOption>(fbb_.EndTable(start_, 7));
return o;
}
};
inline flatbuffers::Offset<Light3DOption> CreateLight3DOption(flatbuffers::FlatBufferBuilder &_fbb,
flatbuffers::Offset<Node3DOption> node3DOption = 0,
uint8_t enabled = 0,
int32_t type = 0,
int32_t flag = 0,
float intensity = 0,
float range = 0,
float outerAngle = 0) {
2015-09-29 11:27:01 +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();
}
inline const Node3DOption *GetNode3DOption(const void *buf) { return flatbuffers::GetRoot<Node3DOption>(buf); }
2015-02-19 12:08:09 +08:00
inline bool VerifyNode3DOptionBuffer(flatbuffers::Verifier &verifier) { return verifier.VerifyBuffer<Node3DOption>(); }
2015-02-19 12:08:09 +08:00
inline void FinishNode3DOptionBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset<Node3DOption> root) { fbb.Finish(root); }
2015-02-19 12:08:09 +08:00
} // namespace flatbuffers
#endif // FLATBUFFERS_GENERATED_CSPARSE3DBINARY_FLATBUFFERS_H_