// // 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 FieldWorldMapZoneExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static FieldWorldMapZoneExcel GetRootAsFieldWorldMapZoneExcel(ByteBuffer _bb) { return GetRootAsFieldWorldMapZoneExcel(_bb, new FieldWorldMapZoneExcel()); } public static FieldWorldMapZoneExcel GetRootAsFieldWorldMapZoneExcel(ByteBuffer _bb, FieldWorldMapZoneExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public FieldWorldMapZoneExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int GroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int Date { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.FieldConditionType OpenConditionType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldConditionType.Invalid; } } public long OpenConditionId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.FieldConditionType CloseConditionType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldConditionType.Invalid; } } public long CloseConditionId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ResultFieldScene { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FieldStageInteractionId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public uint LocalizeCode { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public static Offset CreateFieldWorldMapZoneExcel(FlatBufferBuilder builder, long Id = 0, int GroupId = 0, int Date = 0, SCHALE.Common.FlatData.FieldConditionType OpenConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid, long OpenConditionId = 0, SCHALE.Common.FlatData.FieldConditionType CloseConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid, long CloseConditionId = 0, long ResultFieldScene = 0, long FieldStageInteractionId = 0, uint LocalizeCode = 0) { builder.StartTable(10); FieldWorldMapZoneExcel.AddFieldStageInteractionId(builder, FieldStageInteractionId); FieldWorldMapZoneExcel.AddResultFieldScene(builder, ResultFieldScene); FieldWorldMapZoneExcel.AddCloseConditionId(builder, CloseConditionId); FieldWorldMapZoneExcel.AddOpenConditionId(builder, OpenConditionId); FieldWorldMapZoneExcel.AddId(builder, Id); FieldWorldMapZoneExcel.AddLocalizeCode(builder, LocalizeCode); FieldWorldMapZoneExcel.AddCloseConditionType(builder, CloseConditionType); FieldWorldMapZoneExcel.AddOpenConditionType(builder, OpenConditionType); FieldWorldMapZoneExcel.AddDate(builder, Date); FieldWorldMapZoneExcel.AddGroupId(builder, GroupId); return FieldWorldMapZoneExcel.EndFieldWorldMapZoneExcel(builder); } public static void StartFieldWorldMapZoneExcel(FlatBufferBuilder builder) { builder.StartTable(10); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddGroupId(FlatBufferBuilder builder, int groupId) { builder.AddInt(1, groupId, 0); } public static void AddDate(FlatBufferBuilder builder, int date) { builder.AddInt(2, date, 0); } public static void AddOpenConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType openConditionType) { builder.AddInt(3, (int)openConditionType, 0); } public static void AddOpenConditionId(FlatBufferBuilder builder, long openConditionId) { builder.AddLong(4, openConditionId, 0); } public static void AddCloseConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType closeConditionType) { builder.AddInt(5, (int)closeConditionType, 0); } public static void AddCloseConditionId(FlatBufferBuilder builder, long closeConditionId) { builder.AddLong(6, closeConditionId, 0); } public static void AddResultFieldScene(FlatBufferBuilder builder, long resultFieldScene) { builder.AddLong(7, resultFieldScene, 0); } public static void AddFieldStageInteractionId(FlatBufferBuilder builder, long fieldStageInteractionId) { builder.AddLong(8, fieldStageInteractionId, 0); } public static void AddLocalizeCode(FlatBufferBuilder builder, uint localizeCode) { builder.AddUint(9, localizeCode, 0); } public static Offset EndFieldWorldMapZoneExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } public FieldWorldMapZoneExcelT UnPack() { var _o = new FieldWorldMapZoneExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(FieldWorldMapZoneExcelT _o) { byte[] key = TableEncryptionService.CreateKey("FieldWorldMapZone"); _o.Id = TableEncryptionService.Convert(this.Id, key); _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); _o.Date = TableEncryptionService.Convert(this.Date, key); _o.OpenConditionType = TableEncryptionService.Convert(this.OpenConditionType, key); _o.OpenConditionId = TableEncryptionService.Convert(this.OpenConditionId, key); _o.CloseConditionType = TableEncryptionService.Convert(this.CloseConditionType, key); _o.CloseConditionId = TableEncryptionService.Convert(this.CloseConditionId, key); _o.ResultFieldScene = TableEncryptionService.Convert(this.ResultFieldScene, key); _o.FieldStageInteractionId = TableEncryptionService.Convert(this.FieldStageInteractionId, key); _o.LocalizeCode = TableEncryptionService.Convert(this.LocalizeCode, key); } public static Offset Pack(FlatBufferBuilder builder, FieldWorldMapZoneExcelT _o) { if (_o == null) return default(Offset); return CreateFieldWorldMapZoneExcel( builder, _o.Id, _o.GroupId, _o.Date, _o.OpenConditionType, _o.OpenConditionId, _o.CloseConditionType, _o.CloseConditionId, _o.ResultFieldScene, _o.FieldStageInteractionId, _o.LocalizeCode); } } public class FieldWorldMapZoneExcelT { public long Id { get; set; } public int GroupId { get; set; } public int Date { get; set; } public SCHALE.Common.FlatData.FieldConditionType OpenConditionType { get; set; } public long OpenConditionId { get; set; } public SCHALE.Common.FlatData.FieldConditionType CloseConditionType { get; set; } public long CloseConditionId { get; set; } public long ResultFieldScene { get; set; } public long FieldStageInteractionId { get; set; } public uint LocalizeCode { get; set; } public FieldWorldMapZoneExcelT() { this.Id = 0; this.GroupId = 0; this.Date = 0; this.OpenConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid; this.OpenConditionId = 0; this.CloseConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid; this.CloseConditionId = 0; this.ResultFieldScene = 0; this.FieldStageInteractionId = 0; this.LocalizeCode = 0; } } static public class FieldWorldMapZoneExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*GroupId*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 8 /*Date*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 10 /*OpenConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, 4, false) && verifier.VerifyField(tablePos, 12 /*OpenConditionId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 14 /*CloseConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, 4, false) && verifier.VerifyField(tablePos, 16 /*CloseConditionId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 18 /*ResultFieldScene*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 20 /*FieldStageInteractionId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 22 /*LocalizeCode*/, 4 /*uint*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }