// // 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 ContentsShortcutExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static ContentsShortcutExcel GetRootAsContentsShortcutExcel(ByteBuffer _bb) { return GetRootAsContentsShortcutExcel(_bb, new ContentsShortcutExcel()); } public static ContentsShortcutExcel GetRootAsContentsShortcutExcel(ByteBuffer _bb, ContentsShortcutExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ContentsShortcutExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long UniqueId { 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 long EventContentId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ScenarioModeVolume { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ScenarioModeChapter { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string ShortcutOpenTime { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetShortcutOpenTimeBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetShortcutOpenTimeBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetShortcutOpenTimeArray() { return __p.__vector_as_array(14); } public string ShortcutCloseTime { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetShortcutCloseTimeBytes() { return __p.__vector_as_span(16, 1); } #else public ArraySegment? GetShortcutCloseTimeBytes() { return __p.__vector_as_arraysegment(16); } #endif public byte[] GetShortcutCloseTimeArray() { return __p.__vector_as_array(16); } public long ConditionContentId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } public int ConquestStepIndex { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long ShortcutContentId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string ShortcutUIName(int j) { int o = __p.__offset(26); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int ShortcutUINameLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } public string Localize { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetLocalizeBytes() { return __p.__vector_as_span(28, 1); } #else public ArraySegment? GetLocalizeBytes() { return __p.__vector_as_arraysegment(28); } #endif public byte[] GetLocalizeArray() { return __p.__vector_as_array(28); } public static Offset CreateContentsShortcutExcel(FlatBufferBuilder builder, long UniqueId = 0, SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, long EventContentId = 0, long ScenarioModeVolume = 0, long ScenarioModeChapter = 0, StringOffset ShortcutOpenTimeOffset = default(StringOffset), StringOffset ShortcutCloseTimeOffset = default(StringOffset), long ConditionContentId = 0, SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, int ConquestStepIndex = 0, long ShortcutContentId = 0, VectorOffset ShortcutUINameOffset = default(VectorOffset), StringOffset LocalizeOffset = default(StringOffset)) { builder.StartTable(13); ContentsShortcutExcel.AddShortcutContentId(builder, ShortcutContentId); ContentsShortcutExcel.AddConditionContentId(builder, ConditionContentId); ContentsShortcutExcel.AddScenarioModeChapter(builder, ScenarioModeChapter); ContentsShortcutExcel.AddScenarioModeVolume(builder, ScenarioModeVolume); ContentsShortcutExcel.AddEventContentId(builder, EventContentId); ContentsShortcutExcel.AddUniqueId(builder, UniqueId); ContentsShortcutExcel.AddLocalize(builder, LocalizeOffset); ContentsShortcutExcel.AddShortcutUIName(builder, ShortcutUINameOffset); ContentsShortcutExcel.AddConquestStepIndex(builder, ConquestStepIndex); ContentsShortcutExcel.AddConquestMapDifficulty(builder, ConquestMapDifficulty); ContentsShortcutExcel.AddShortcutCloseTime(builder, ShortcutCloseTimeOffset); ContentsShortcutExcel.AddShortcutOpenTime(builder, ShortcutOpenTimeOffset); ContentsShortcutExcel.AddContentType_(builder, ContentType_); return ContentsShortcutExcel.EndContentsShortcutExcel(builder); } public static void StartContentsShortcutExcel(FlatBufferBuilder builder) { builder.StartTable(13); } public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } public static void AddContentType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType_) { builder.AddInt(1, (int)contentType_, 0); } public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(2, eventContentId, 0); } public static void AddScenarioModeVolume(FlatBufferBuilder builder, long scenarioModeVolume) { builder.AddLong(3, scenarioModeVolume, 0); } public static void AddScenarioModeChapter(FlatBufferBuilder builder, long scenarioModeChapter) { builder.AddLong(4, scenarioModeChapter, 0); } public static void AddShortcutOpenTime(FlatBufferBuilder builder, StringOffset shortcutOpenTimeOffset) { builder.AddOffset(5, shortcutOpenTimeOffset.Value, 0); } public static void AddShortcutCloseTime(FlatBufferBuilder builder, StringOffset shortcutCloseTimeOffset) { builder.AddOffset(6, shortcutCloseTimeOffset.Value, 0); } public static void AddConditionContentId(FlatBufferBuilder builder, long conditionContentId) { builder.AddLong(7, conditionContentId, 0); } public static void AddConquestMapDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty conquestMapDifficulty) { builder.AddInt(8, (int)conquestMapDifficulty, 0); } public static void AddConquestStepIndex(FlatBufferBuilder builder, int conquestStepIndex) { builder.AddInt(9, conquestStepIndex, 0); } public static void AddShortcutContentId(FlatBufferBuilder builder, long shortcutContentId) { builder.AddLong(10, shortcutContentId, 0); } public static void AddShortcutUIName(FlatBufferBuilder builder, VectorOffset shortcutUINameOffset) { builder.AddOffset(11, shortcutUINameOffset.Value, 0); } public static VectorOffset CreateShortcutUINameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartShortcutUINameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddLocalize(FlatBufferBuilder builder, StringOffset localizeOffset) { builder.AddOffset(12, localizeOffset.Value, 0); } public static Offset EndContentsShortcutExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } public ContentsShortcutExcelT UnPack() { var _o = new ContentsShortcutExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(ContentsShortcutExcelT _o) { byte[] key = TableEncryptionService.CreateKey("ContentsShortcut"); _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); _o.ContentType_ = TableEncryptionService.Convert(this.ContentType_, key); _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); _o.ScenarioModeVolume = TableEncryptionService.Convert(this.ScenarioModeVolume, key); _o.ScenarioModeChapter = TableEncryptionService.Convert(this.ScenarioModeChapter, key); _o.ShortcutOpenTime = TableEncryptionService.Convert(this.ShortcutOpenTime, key); _o.ShortcutCloseTime = TableEncryptionService.Convert(this.ShortcutCloseTime, key); _o.ConditionContentId = TableEncryptionService.Convert(this.ConditionContentId, key); _o.ConquestMapDifficulty = TableEncryptionService.Convert(this.ConquestMapDifficulty, key); _o.ConquestStepIndex = TableEncryptionService.Convert(this.ConquestStepIndex, key); _o.ShortcutContentId = TableEncryptionService.Convert(this.ShortcutContentId, key); _o.ShortcutUIName = new List(); for (var _j = 0; _j < this.ShortcutUINameLength; ++_j) {_o.ShortcutUIName.Add(TableEncryptionService.Convert(this.ShortcutUIName(_j), key));} _o.Localize = TableEncryptionService.Convert(this.Localize, key); } public static Offset Pack(FlatBufferBuilder builder, ContentsShortcutExcelT _o) { if (_o == null) return default(Offset); var _ShortcutOpenTime = _o.ShortcutOpenTime == null ? default(StringOffset) : builder.CreateString(_o.ShortcutOpenTime); var _ShortcutCloseTime = _o.ShortcutCloseTime == null ? default(StringOffset) : builder.CreateString(_o.ShortcutCloseTime); var _ShortcutUIName = default(VectorOffset); if (_o.ShortcutUIName != null) { var __ShortcutUIName = new StringOffset[_o.ShortcutUIName.Count]; for (var _j = 0; _j < __ShortcutUIName.Length; ++_j) { __ShortcutUIName[_j] = builder.CreateString(_o.ShortcutUIName[_j]); } _ShortcutUIName = CreateShortcutUINameVector(builder, __ShortcutUIName); } var _Localize = _o.Localize == null ? default(StringOffset) : builder.CreateString(_o.Localize); return CreateContentsShortcutExcel( builder, _o.UniqueId, _o.ContentType_, _o.EventContentId, _o.ScenarioModeVolume, _o.ScenarioModeChapter, _ShortcutOpenTime, _ShortcutCloseTime, _o.ConditionContentId, _o.ConquestMapDifficulty, _o.ConquestStepIndex, _o.ShortcutContentId, _ShortcutUIName, _Localize); } } public class ContentsShortcutExcelT { public long UniqueId { get; set; } public SCHALE.Common.FlatData.ContentType ContentType_ { get; set; } public long EventContentId { get; set; } public long ScenarioModeVolume { get; set; } public long ScenarioModeChapter { get; set; } public string ShortcutOpenTime { get; set; } public string ShortcutCloseTime { get; set; } public long ConditionContentId { get; set; } public SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty { get; set; } public int ConquestStepIndex { get; set; } public long ShortcutContentId { get; set; } public List ShortcutUIName { get; set; } public string Localize { get; set; } public ContentsShortcutExcelT() { this.UniqueId = 0; this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; this.EventContentId = 0; this.ScenarioModeVolume = 0; this.ScenarioModeChapter = 0; this.ShortcutOpenTime = null; this.ShortcutCloseTime = null; this.ConditionContentId = 0; this.ConquestMapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; this.ConquestStepIndex = 0; this.ShortcutContentId = 0; this.ShortcutUIName = null; this.Localize = null; } } static public class ContentsShortcutExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*ContentType_*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) && verifier.VerifyField(tablePos, 8 /*EventContentId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 10 /*ScenarioModeVolume*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 12 /*ScenarioModeChapter*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 14 /*ShortcutOpenTime*/, false) && verifier.VerifyString(tablePos, 16 /*ShortcutCloseTime*/, false) && verifier.VerifyField(tablePos, 18 /*ConditionContentId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 20 /*ConquestMapDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) && verifier.VerifyField(tablePos, 22 /*ConquestStepIndex*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 24 /*ShortcutContentId*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfStrings(tablePos, 26 /*ShortcutUIName*/, false) && verifier.VerifyString(tablePos, 28 /*Localize*/, false) && verifier.VerifyTableEnd(tablePos); } } }