axmol/extensions/cocostudio/WidgetReader/SkeletonReader/CSBoneBinary_generated.h

73 lines
2.8 KiB
C
Raw Normal View History

2019-11-23 20:27:39 +08:00
// automatically generated by the FlatBuffers compiler, do not modify
#ifndef FLATBUFFERS_GENERATED_CSBONEBINARY_FLATBUFFERS_H_
#define FLATBUFFERS_GENERATED_CSBONEBINARY_FLATBUFFERS_H_
#include "flatbuffers/flatbuffers.h"
#include "CSParseBinary_generated.h"
2019-11-23 20:27:39 +08:00
namespace flatbuffers {
struct BoneOptions;
2019-11-24 23:15:56 +08:00
struct BoneOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
enum {
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); }
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
VerifyField<flatbuffers::uoffset_t>(verifier, VT_NODEOPTIONS) &&
2019-11-23 20:27:39 +08:00
verifier.VerifyTable(nodeOptions()) &&
2019-11-24 23:15:56 +08:00
VerifyField<float>(verifier, VT_LENGTH) &&
VerifyField<flatbuffers::BlendFunc>(verifier, VT_BLENDFUNC) &&
2019-11-23 20:27:39 +08:00
verifier.EndTable();
}
};
struct BoneOptionsBuilder {
flatbuffers::FlatBufferBuilder &fbb_;
flatbuffers::uoffset_t start_;
2019-11-24 23:15:56 +08:00
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); }
2019-11-23 20:27:39 +08:00
BoneOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
BoneOptionsBuilder &operator=(const BoneOptionsBuilder &);
flatbuffers::Offset<BoneOptions> Finish() {
auto o = flatbuffers::Offset<BoneOptions>(fbb_.EndTable(start_, 3));
return o;
}
};
inline flatbuffers::Offset<BoneOptions> CreateBoneOptions(flatbuffers::FlatBufferBuilder &_fbb,
2019-11-24 23:15:56 +08:00
flatbuffers::Offset<flatbuffers::WidgetOptions> nodeOptions = 0,
float length = 0.0f,
const flatbuffers::BlendFunc *blendFunc = 0) {
2019-11-23 20:27:39 +08:00
BoneOptionsBuilder builder_(_fbb);
builder_.add_blendFunc(blendFunc);
builder_.add_length(length);
builder_.add_nodeOptions(nodeOptions);
return builder_.Finish();
}
2019-11-24 23:15:56 +08:00
inline const flatbuffers::BoneOptions *GetBoneOptions(const void *buf) {
return flatbuffers::GetRoot<flatbuffers::BoneOptions>(buf);
2019-11-23 20:27:39 +08:00
}
2019-11-24 23:15:56 +08:00
inline bool VerifyBoneOptionsBuffer(flatbuffers::Verifier &verifier) {
return verifier.VerifyBuffer<flatbuffers::BoneOptions>(nullptr);
}
2019-11-23 20:27:39 +08:00
2019-11-24 23:15:56 +08:00
inline void FinishBoneOptionsBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset<flatbuffers::BoneOptions> root) {
fbb.Finish(root);
}
2019-11-23 20:27:39 +08:00
} // namespace flatbuffers
#endif // FLATBUFFERS_GENERATED_CSBONEBINARY_FLATBUFFERS_H_