/**************************************************************************** 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. ****************************************************************************/ // automatically generated by the FlatBuffers compiler, do not modify #ifndef FLATBUFFERS_GENERATED_CSARMATURENODE_FLATBUFFERS_H_ #define FLATBUFFERS_GENERATED_CSARMATURENODE_FLATBUFFERS_H_ #include "flatbuffers/flatbuffers.h" namespace flatbuffers { struct CSArmatureNodeOption; struct ResourceItemData; struct CSArmatureNodeOption : private flatbuffers::Table { const WidgetOptions *nodeOptions() const { return GetPointer(4); } const ResourceItemData *fileData() const { return GetPointer(6); } uint8_t isLoop() const { return GetField(8, 1); } uint8_t isAutoPlay() const { return GetField(10, 1); } const flatbuffers::String *currentAnimationName() const { return GetPointer(12); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, 4 /* nodeOptions */) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, 6 /* fileData */) && verifier.VerifyTable(fileData()) && VerifyField(verifier, 8 /* isLoop */) && VerifyField(verifier, 10 /* isAutoPlay */) && VerifyField(verifier, 12 /* currentAnimationName */) && verifier.Verify(currentAnimationName()) && verifier.EndTable(); } }; struct CSArmatureNodeOptionBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(4, nodeOptions); } void add_fileData(flatbuffers::Offset fileData) { fbb_.AddOffset(6, fileData); } void add_isLoop(uint8_t isLoop) { fbb_.AddElement(8, isLoop, 1); } void add_isAutoPlay(uint8_t isAutoPlay) { fbb_.AddElement(10, isAutoPlay, 1); } void add_currentAnimationName(flatbuffers::Offset currentAnimationName) { fbb_.AddOffset(12, currentAnimationName); } CSArmatureNodeOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } CSArmatureNodeOptionBuilder &operator=(const CSArmatureNodeOptionBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 5)); return o; } }; inline flatbuffers::Offset CreateCSArmatureNodeOption(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, flatbuffers::Offset fileData = 0, uint8_t isLoop = 1, uint8_t isAutoPlay = 1, flatbuffers::Offset currentAnimationName = 0) { CSArmatureNodeOptionBuilder builder_(_fbb); builder_.add_currentAnimationName(currentAnimationName); builder_.add_fileData(fileData); builder_.add_nodeOptions(nodeOptions); builder_.add_isAutoPlay(isAutoPlay); builder_.add_isLoop(isLoop); return builder_.Finish(); } struct ResourceItemData : private flatbuffers::Table { int32_t type() const { return GetField(4, 0); } const flatbuffers::String *path() const { return GetPointer(6); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, 4 /* type */) && VerifyField(verifier, 6 /* path */) && verifier.Verify(path()) && verifier.EndTable(); } }; struct ResourceItemDataBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_type(int32_t type) { fbb_.AddElement(4, type, 0); } void add_path(flatbuffers::Offset path) { fbb_.AddOffset(6, path); } ResourceItemDataBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ResourceItemDataBuilder &operator=(const ResourceItemDataBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 2)); return o; } }; inline flatbuffers::Offset CreateResourceItemData(flatbuffers::FlatBufferBuilder &_fbb, int32_t type = 0, flatbuffers::Offset path = 0) { ResourceItemDataBuilder builder_(_fbb); builder_.add_path(path); builder_.add_type(type); return builder_.Finish(); } inline const CSArmatureNodeOption *GetCSArmatureNodeOption(const void *buf) { return flatbuffers::GetRoot(buf); } inline bool VerifyCSArmatureNodeOptionBuffer(flatbuffers::Verifier &verifier) { return verifier.VerifyBuffer(); } inline void FinishCSArmatureNodeOptionBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset root) { fbb.Finish(root); } } // namespace flatbuffers #endif // FLATBUFFERS_GENERATED_CSARMATURENODE_FLATBUFFERS_H_