// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TagExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static TagExcel GetRootAsTagExcel(ByteBuffer _bb) { return GetRootAsTagExcel(_bb, new TagExcel()); } public static TagExcel GetRootAsTagExcel(ByteBuffer _bb, TagExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public TagExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public SCHALE.Common.FlatData.Tag Furniture { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Tag.A; } } public SCHALE.Common.FlatData.Club None { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None; } } public static Offset CreateTagExcel(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag Furniture = SCHALE.Common.FlatData.Tag.A, SCHALE.Common.FlatData.Club None = SCHALE.Common.FlatData.Club.None) { builder.StartTable(2); TagExcel.AddNone(builder, None); TagExcel.AddFurniture(builder, Furniture); return TagExcel.EndTagExcel(builder); } public static void StartTagExcel(FlatBufferBuilder builder) { builder.StartTable(2); } public static void AddFurniture(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag furniture) { builder.AddInt(0, (int)furniture, 0); } public static void AddNone(FlatBufferBuilder builder, SCHALE.Common.FlatData.Club none) { builder.AddInt(1, (int)none, 0); } public static Offset EndTagExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } public TagExcelT UnPack() { var _o = new TagExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(TagExcelT _o) { byte[] key = TableEncryptionService.CreateKey("Tag"); _o.Furniture = TableEncryptionService.Convert(this.Furniture, key); _o.None = TableEncryptionService.Convert(this.None, key); } public static Offset Pack(FlatBufferBuilder builder, TagExcelT _o) { if (_o == null) return default(Offset); return CreateTagExcel( builder, _o.Furniture, _o.None); } } public class TagExcelT { public SCHALE.Common.FlatData.Tag Furniture { get; set; } public SCHALE.Common.FlatData.Club None { get; set; } public TagExcelT() { this.Furniture = SCHALE.Common.FlatData.Tag.A; this.None = SCHALE.Common.FlatData.Club.None; } } static public class TagExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Furniture*/, 4 /*SCHALE.Common.FlatData.Tag*/, 4, false) && verifier.VerifyField(tablePos, 6 /*None*/, 4 /*SCHALE.Common.FlatData.Club*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }