// // 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 FarmingDungeonLocationManageExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static FarmingDungeonLocationManageExcel GetRootAsFarmingDungeonLocationManageExcel(ByteBuffer _bb) { return GetRootAsFarmingDungeonLocationManageExcel(_bb, new FarmingDungeonLocationManageExcel()); } public static FarmingDungeonLocationManageExcel GetRootAsFarmingDungeonLocationManageExcel(ByteBuffer _bb, FarmingDungeonLocationManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public FarmingDungeonLocationManageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long FarmingDungeonLocationId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None; } } public SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; } } public long Order { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string OpenStartDateTime { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetOpenStartDateTimeBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetOpenStartDateTimeBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetOpenStartDateTimeArray() { return __p.__vector_as_array(14); } public string OpenEndDateTime { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetOpenEndDateTimeBytes() { return __p.__vector_as_span(16, 1); } #else public ArraySegment? GetOpenEndDateTimeBytes() { return __p.__vector_as_arraysegment(16); } #endif public byte[] GetOpenEndDateTimeArray() { return __p.__vector_as_array(16); } public string LocationButtonImagePath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetLocationButtonImagePathBytes() { return __p.__vector_as_span(18, 1); } #else public ArraySegment? GetLocationButtonImagePathBytes() { return __p.__vector_as_arraysegment(18); } #endif public byte[] GetLocationButtonImagePathArray() { return __p.__vector_as_array(18); } public uint LocalizeCodeTitle { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public uint LocalizeCodeInfo { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public static Offset CreateFarmingDungeonLocationManageExcel(FlatBufferBuilder builder, long FarmingDungeonLocationId = 0, SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None, SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType_ = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA, long Order = 0, StringOffset OpenStartDateTimeOffset = default(StringOffset), StringOffset OpenEndDateTimeOffset = default(StringOffset), StringOffset LocationButtonImagePathOffset = default(StringOffset), uint LocalizeCodeTitle = 0, uint LocalizeCodeInfo = 0) { builder.StartTable(10); FarmingDungeonLocationManageExcel.AddOrder(builder, Order); FarmingDungeonLocationManageExcel.AddFarmingDungeonLocationId(builder, FarmingDungeonLocationId); FarmingDungeonLocationManageExcel.AddLocalizeCodeInfo(builder, LocalizeCodeInfo); FarmingDungeonLocationManageExcel.AddLocalizeCodeTitle(builder, LocalizeCodeTitle); FarmingDungeonLocationManageExcel.AddLocationButtonImagePath(builder, LocationButtonImagePathOffset); FarmingDungeonLocationManageExcel.AddOpenEndDateTime(builder, OpenEndDateTimeOffset); FarmingDungeonLocationManageExcel.AddOpenStartDateTime(builder, OpenStartDateTimeOffset); FarmingDungeonLocationManageExcel.AddSchoolDungeonType_(builder, SchoolDungeonType_); FarmingDungeonLocationManageExcel.AddWeekDungeonType_(builder, WeekDungeonType_); FarmingDungeonLocationManageExcel.AddContentType_(builder, ContentType_); return FarmingDungeonLocationManageExcel.EndFarmingDungeonLocationManageExcel(builder); } public static void StartFarmingDungeonLocationManageExcel(FlatBufferBuilder builder) { builder.StartTable(10); } public static void AddFarmingDungeonLocationId(FlatBufferBuilder builder, long farmingDungeonLocationId) { builder.AddLong(0, farmingDungeonLocationId, 0); } public static void AddContentType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType_) { builder.AddInt(1, (int)contentType_, 0); } public static void AddWeekDungeonType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDungeonType weekDungeonType_) { builder.AddInt(2, (int)weekDungeonType_, 0); } public static void AddSchoolDungeonType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.SchoolDungeonType schoolDungeonType_) { builder.AddInt(3, (int)schoolDungeonType_, 0); } public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(4, order, 0); } public static void AddOpenStartDateTime(FlatBufferBuilder builder, StringOffset openStartDateTimeOffset) { builder.AddOffset(5, openStartDateTimeOffset.Value, 0); } public static void AddOpenEndDateTime(FlatBufferBuilder builder, StringOffset openEndDateTimeOffset) { builder.AddOffset(6, openEndDateTimeOffset.Value, 0); } public static void AddLocationButtonImagePath(FlatBufferBuilder builder, StringOffset locationButtonImagePathOffset) { builder.AddOffset(7, locationButtonImagePathOffset.Value, 0); } public static void AddLocalizeCodeTitle(FlatBufferBuilder builder, uint localizeCodeTitle) { builder.AddUint(8, localizeCodeTitle, 0); } public static void AddLocalizeCodeInfo(FlatBufferBuilder builder, uint localizeCodeInfo) { builder.AddUint(9, localizeCodeInfo, 0); } public static Offset EndFarmingDungeonLocationManageExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } public FarmingDungeonLocationManageExcelT UnPack() { var _o = new FarmingDungeonLocationManageExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(FarmingDungeonLocationManageExcelT _o) { byte[] key = TableEncryptionService.CreateKey("FarmingDungeonLocationManage"); _o.FarmingDungeonLocationId = TableEncryptionService.Convert(this.FarmingDungeonLocationId, key); _o.ContentType_ = TableEncryptionService.Convert(this.ContentType_, key); _o.WeekDungeonType_ = TableEncryptionService.Convert(this.WeekDungeonType_, key); _o.SchoolDungeonType_ = TableEncryptionService.Convert(this.SchoolDungeonType_, key); _o.Order = TableEncryptionService.Convert(this.Order, key); _o.OpenStartDateTime = TableEncryptionService.Convert(this.OpenStartDateTime, key); _o.OpenEndDateTime = TableEncryptionService.Convert(this.OpenEndDateTime, key); _o.LocationButtonImagePath = TableEncryptionService.Convert(this.LocationButtonImagePath, key); _o.LocalizeCodeTitle = TableEncryptionService.Convert(this.LocalizeCodeTitle, key); _o.LocalizeCodeInfo = TableEncryptionService.Convert(this.LocalizeCodeInfo, key); } public static Offset Pack(FlatBufferBuilder builder, FarmingDungeonLocationManageExcelT _o) { if (_o == null) return default(Offset); var _OpenStartDateTime = _o.OpenStartDateTime == null ? default(StringOffset) : builder.CreateString(_o.OpenStartDateTime); var _OpenEndDateTime = _o.OpenEndDateTime == null ? default(StringOffset) : builder.CreateString(_o.OpenEndDateTime); var _LocationButtonImagePath = _o.LocationButtonImagePath == null ? default(StringOffset) : builder.CreateString(_o.LocationButtonImagePath); return CreateFarmingDungeonLocationManageExcel( builder, _o.FarmingDungeonLocationId, _o.ContentType_, _o.WeekDungeonType_, _o.SchoolDungeonType_, _o.Order, _OpenStartDateTime, _OpenEndDateTime, _LocationButtonImagePath, _o.LocalizeCodeTitle, _o.LocalizeCodeInfo); } } public class FarmingDungeonLocationManageExcelT { public long FarmingDungeonLocationId { get; set; } public SCHALE.Common.FlatData.ContentType ContentType_ { get; set; } public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ { get; set; } public SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType_ { get; set; } public long Order { get; set; } public string OpenStartDateTime { get; set; } public string OpenEndDateTime { get; set; } public string LocationButtonImagePath { get; set; } public uint LocalizeCodeTitle { get; set; } public uint LocalizeCodeInfo { get; set; } public FarmingDungeonLocationManageExcelT() { this.FarmingDungeonLocationId = 0; this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; this.WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None; this.SchoolDungeonType_ = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; this.Order = 0; this.OpenStartDateTime = null; this.OpenEndDateTime = null; this.LocationButtonImagePath = null; this.LocalizeCodeTitle = 0; this.LocalizeCodeInfo = 0; } } static public class FarmingDungeonLocationManageExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*FarmingDungeonLocationId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*ContentType_*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) && verifier.VerifyField(tablePos, 8 /*WeekDungeonType_*/, 4 /*SCHALE.Common.FlatData.WeekDungeonType*/, 4, false) && verifier.VerifyField(tablePos, 10 /*SchoolDungeonType_*/, 4 /*SCHALE.Common.FlatData.SchoolDungeonType*/, 4, false) && verifier.VerifyField(tablePos, 12 /*Order*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 14 /*OpenStartDateTime*/, false) && verifier.VerifyString(tablePos, 16 /*OpenEndDateTime*/, false) && verifier.VerifyString(tablePos, 18 /*LocationButtonImagePath*/, false) && verifier.VerifyField(tablePos, 20 /*LocalizeCodeTitle*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 22 /*LocalizeCodeInfo*/, 4 /*uint*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }