2015-07-23 11:51:49 +08:00
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
|
2015-07-23 11:51:49 +08:00
|
|
|
#ifndef FLATBUFFERS_GENERATED_CSBONEBINARY_FLATBUFFERS_H_
|
|
|
|
#define FLATBUFFERS_GENERATED_CSBONEBINARY_FLATBUFFERS_H_
|
|
|
|
|
|
|
|
#include "flatbuffers/flatbuffers.h"
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
// Ensure the included flatbuffers.h is the same version as when this file was
|
|
|
|
// generated, otherwise it may not be compatible.
|
|
|
|
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
|
|
|
|
FLATBUFFERS_VERSION_MINOR == 0 &&
|
|
|
|
FLATBUFFERS_VERSION_REVISION == 8,
|
|
|
|
"Non-compatible flatbuffers version included");
|
|
|
|
|
2020-10-21 10:12:00 +08:00
|
|
|
#include "CSParseBinary_generated.h"
|
2015-07-23 11:51:49 +08:00
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
namespace flatbuffers {
|
2015-07-23 11:51:49 +08:00
|
|
|
|
|
|
|
struct BoneOptions;
|
2022-09-15 20:15:28 +08:00
|
|
|
struct BoneOptionsBuilder;
|
2015-07-23 11:51:49 +08:00
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
struct BoneOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
|
|
|
typedef BoneOptionsBuilder Builder;
|
|
|
|
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
|
|
VT_NODEOPTIONS = 4,
|
|
|
|
VT_LENGTH = 6,
|
|
|
|
VT_BLENDFUNC = 8
|
|
|
|
};
|
|
|
|
const flatbuffers::WidgetOptions *nodeOptions() const {
|
|
|
|
return GetPointer<const flatbuffers::WidgetOptions *>(VT_NODEOPTIONS);
|
|
|
|
}
|
|
|
|
float length() const {
|
|
|
|
return GetField<float>(VT_LENGTH, 0.0f);
|
|
|
|
}
|
|
|
|
const flatbuffers::BlendFunc *blendFunc() const {
|
|
|
|
return GetStruct<const flatbuffers::BlendFunc *>(VT_BLENDFUNC);
|
|
|
|
}
|
|
|
|
bool Verify(flatbuffers::Verifier &verifier) const {
|
|
|
|
return VerifyTableStart(verifier) &&
|
|
|
|
VerifyOffset(verifier, VT_NODEOPTIONS) &&
|
|
|
|
verifier.VerifyTable(nodeOptions()) &&
|
|
|
|
VerifyField<float>(verifier, VT_LENGTH, 4) &&
|
|
|
|
VerifyField<flatbuffers::BlendFunc>(verifier, VT_BLENDFUNC, 4) &&
|
|
|
|
verifier.EndTable();
|
|
|
|
}
|
2015-07-23 11:51:49 +08:00
|
|
|
};
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
struct BoneOptionsBuilder {
|
|
|
|
typedef BoneOptions Table;
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb_;
|
|
|
|
flatbuffers::uoffset_t start_;
|
|
|
|
void add_nodeOptions(flatbuffers::Offset<flatbuffers::WidgetOptions> nodeOptions) {
|
|
|
|
fbb_.AddOffset(BoneOptions::VT_NODEOPTIONS, nodeOptions);
|
|
|
|
}
|
|
|
|
void add_length(float length) {
|
|
|
|
fbb_.AddElement<float>(BoneOptions::VT_LENGTH, length, 0.0f);
|
|
|
|
}
|
|
|
|
void add_blendFunc(const flatbuffers::BlendFunc *blendFunc) {
|
|
|
|
fbb_.AddStruct(BoneOptions::VT_BLENDFUNC, blendFunc);
|
|
|
|
}
|
|
|
|
explicit BoneOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
|
|
|
: fbb_(_fbb) {
|
|
|
|
start_ = fbb_.StartTable();
|
|
|
|
}
|
|
|
|
flatbuffers::Offset<BoneOptions> Finish() {
|
|
|
|
const auto end = fbb_.EndTable(start_);
|
|
|
|
auto o = flatbuffers::Offset<BoneOptions>(end);
|
|
|
|
return o;
|
|
|
|
}
|
2015-07-23 11:51:49 +08:00
|
|
|
};
|
|
|
|
|
2021-12-25 10:04:45 +08:00
|
|
|
inline flatbuffers::Offset<BoneOptions> CreateBoneOptions(
|
2022-09-15 20:15:28 +08:00
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
2019-11-24 23:15:56 +08:00
|
|
|
flatbuffers::Offset<flatbuffers::WidgetOptions> nodeOptions = 0,
|
2022-09-15 20:15:28 +08:00
|
|
|
float length = 0.0f,
|
|
|
|
const flatbuffers::BlendFunc *blendFunc = nullptr) {
|
|
|
|
BoneOptionsBuilder builder_(_fbb);
|
|
|
|
builder_.add_blendFunc(blendFunc);
|
|
|
|
builder_.add_length(length);
|
|
|
|
builder_.add_nodeOptions(nodeOptions);
|
|
|
|
return builder_.Finish();
|
|
|
|
}
|
|
|
|
|
|
|
|
inline const flatbuffers::BoneOptions *GetBoneOptions(const void *buf) {
|
|
|
|
return flatbuffers::GetRoot<flatbuffers::BoneOptions>(buf);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline const flatbuffers::BoneOptions *GetSizePrefixedBoneOptions(const void *buf) {
|
|
|
|
return flatbuffers::GetSizePrefixedRoot<flatbuffers::BoneOptions>(buf);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool VerifyBoneOptionsBuffer(
|
|
|
|
flatbuffers::Verifier &verifier) {
|
|
|
|
return verifier.VerifyBuffer<flatbuffers::BoneOptions>(nullptr);
|
2015-07-23 11:51:49 +08:00
|
|
|
}
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline bool VerifySizePrefixedBoneOptionsBuffer(
|
|
|
|
flatbuffers::Verifier &verifier) {
|
|
|
|
return verifier.VerifySizePrefixedBuffer<flatbuffers::BoneOptions>(nullptr);
|
2017-02-14 14:32:09 +08:00
|
|
|
}
|
2015-07-23 11:51:49 +08:00
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline void FinishBoneOptionsBuffer(
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::BoneOptions> root) {
|
|
|
|
fbb.Finish(root);
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
2017-06-15 13:42:50 +08:00
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline void FinishSizePrefixedBoneOptionsBuffer(
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::BoneOptions> root) {
|
|
|
|
fbb.FinishSizePrefixed(root);
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
2017-06-15 13:42:50 +08:00
|
|
|
|
2015-07-23 11:51:49 +08:00
|
|
|
} // namespace flatbuffers
|
|
|
|
|
|
|
|
#endif // FLATBUFFERS_GENERATED_CSBONEBINARY_FLATBUFFERS_H_
|