// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::Google.FlatBuffers; public struct ConquestMapExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static ConquestMapExcel GetRootAsConquestMapExcel(ByteBuffer _bb) { return GetRootAsConquestMapExcel(_bb, new ConquestMapExcel()); } public static ConquestMapExcel GetRootAsConquestMapExcel(ByteBuffer _bb, ConquestMapExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ConquestMapExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetDevNameBytes() { return __p.__vector_as_span(6, 1); } #else public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } public int StepIndex { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string ConquestMap { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetConquestMapBytes() { return __p.__vector_as_span(12, 1); } #else public ArraySegment? GetConquestMapBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetConquestMapArray() { return __p.__vector_as_array(12); } public long StepEnterScenarioGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ConquestConditionType StepOpenConditionType(int j) { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ConquestConditionType)0; } public int StepOpenConditionTypeLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetStepOpenConditionTypeBytes() { return __p.__vector_as_span(16, 4); } #else public ArraySegment? GetStepOpenConditionTypeBytes() { return __p.__vector_as_arraysegment(16); } #endif public SCHALE.Common.FlatData.ConquestConditionType[] GetStepOpenConditionTypeArray() { int o = __p.__offset(16); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ConquestConditionType[] a = new SCHALE.Common.FlatData.ConquestConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(p + i * 4); } return a; } public string StepOpenConditionParameter(int j) { int o = __p.__offset(18); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int StepOpenConditionParameterLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } public string MapGoalLocalize { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetMapGoalLocalizeBytes() { return __p.__vector_as_span(20, 1); } #else public ArraySegment? GetMapGoalLocalizeBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetMapGoalLocalizeArray() { return __p.__vector_as_array(20); } public string StepGoalLocalize { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStepGoalLocalizeBytes() { return __p.__vector_as_span(22, 1); } #else public ArraySegment? GetStepGoalLocalizeBytes() { return __p.__vector_as_arraysegment(22); } #endif public byte[] GetStepGoalLocalizeArray() { return __p.__vector_as_array(22); } public string StepNameLocalize { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStepNameLocalizeBytes() { return __p.__vector_as_span(24, 1); } #else public ArraySegment? GetStepNameLocalizeBytes() { return __p.__vector_as_arraysegment(24); } #endif public byte[] GetStepNameLocalizeArray() { return __p.__vector_as_array(24); } public string ConquestMapBG { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetConquestMapBGBytes() { return __p.__vector_as_span(26, 1); } #else public ArraySegment? GetConquestMapBGBytes() { return __p.__vector_as_arraysegment(26); } #endif public byte[] GetConquestMapBGArray() { return __p.__vector_as_array(26); } public long CameraSettingId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateConquestMapExcel(FlatBufferBuilder builder, long EventContentId = 0, StringOffset DevNameOffset = default(StringOffset), SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, int StepIndex = 0, StringOffset ConquestMapOffset = default(StringOffset), long StepEnterScenarioGroupId = 0, VectorOffset StepOpenConditionTypeOffset = default(VectorOffset), VectorOffset StepOpenConditionParameterOffset = default(VectorOffset), StringOffset MapGoalLocalizeOffset = default(StringOffset), StringOffset StepGoalLocalizeOffset = default(StringOffset), StringOffset StepNameLocalizeOffset = default(StringOffset), StringOffset ConquestMapBGOffset = default(StringOffset), long CameraSettingId = 0) { builder.StartTable(13); ConquestMapExcel.AddCameraSettingId(builder, CameraSettingId); ConquestMapExcel.AddStepEnterScenarioGroupId(builder, StepEnterScenarioGroupId); ConquestMapExcel.AddEventContentId(builder, EventContentId); ConquestMapExcel.AddConquestMapBG(builder, ConquestMapBGOffset); ConquestMapExcel.AddStepNameLocalize(builder, StepNameLocalizeOffset); ConquestMapExcel.AddStepGoalLocalize(builder, StepGoalLocalizeOffset); ConquestMapExcel.AddMapGoalLocalize(builder, MapGoalLocalizeOffset); ConquestMapExcel.AddStepOpenConditionParameter(builder, StepOpenConditionParameterOffset); ConquestMapExcel.AddStepOpenConditionType(builder, StepOpenConditionTypeOffset); ConquestMapExcel.AddConquestMap(builder, ConquestMapOffset); ConquestMapExcel.AddStepIndex(builder, StepIndex); ConquestMapExcel.AddMapDifficulty(builder, MapDifficulty); ConquestMapExcel.AddDevName(builder, DevNameOffset); return ConquestMapExcel.EndConquestMapExcel(builder); } public static void StartConquestMapExcel(FlatBufferBuilder builder) { builder.StartTable(13); } public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } public static void AddMapDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty mapDifficulty) { builder.AddInt(2, (int)mapDifficulty, 0); } public static void AddStepIndex(FlatBufferBuilder builder, int stepIndex) { builder.AddInt(3, stepIndex, 0); } public static void AddConquestMap(FlatBufferBuilder builder, StringOffset conquestMapOffset) { builder.AddOffset(4, conquestMapOffset.Value, 0); } public static void AddStepEnterScenarioGroupId(FlatBufferBuilder builder, long stepEnterScenarioGroupId) { builder.AddLong(5, stepEnterScenarioGroupId, 0); } public static void AddStepOpenConditionType(FlatBufferBuilder builder, VectorOffset stepOpenConditionTypeOffset) { builder.AddOffset(6, stepOpenConditionTypeOffset.Value, 0); } public static VectorOffset CreateStepOpenConditionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } public static VectorOffset CreateStepOpenConditionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStepOpenConditionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStepOpenConditionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartStepOpenConditionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddStepOpenConditionParameter(FlatBufferBuilder builder, VectorOffset stepOpenConditionParameterOffset) { builder.AddOffset(7, stepOpenConditionParameterOffset.Value, 0); } public static VectorOffset CreateStepOpenConditionParameterVector(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 CreateStepOpenConditionParameterVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStepOpenConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStepOpenConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartStepOpenConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddMapGoalLocalize(FlatBufferBuilder builder, StringOffset mapGoalLocalizeOffset) { builder.AddOffset(8, mapGoalLocalizeOffset.Value, 0); } public static void AddStepGoalLocalize(FlatBufferBuilder builder, StringOffset stepGoalLocalizeOffset) { builder.AddOffset(9, stepGoalLocalizeOffset.Value, 0); } public static void AddStepNameLocalize(FlatBufferBuilder builder, StringOffset stepNameLocalizeOffset) { builder.AddOffset(10, stepNameLocalizeOffset.Value, 0); } public static void AddConquestMapBG(FlatBufferBuilder builder, StringOffset conquestMapBGOffset) { builder.AddOffset(11, conquestMapBGOffset.Value, 0); } public static void AddCameraSettingId(FlatBufferBuilder builder, long cameraSettingId) { builder.AddLong(12, cameraSettingId, 0); } public static Offset EndConquestMapExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class ConquestMapExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 6 /*DevName*/, false) && verifier.VerifyField(tablePos, 8 /*MapDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) && verifier.VerifyField(tablePos, 10 /*StepIndex*/, 4 /*int*/, 4, false) && verifier.VerifyString(tablePos, 12 /*ConquestMap*/, false) && verifier.VerifyField(tablePos, 14 /*StepEnterScenarioGroupId*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfData(tablePos, 16 /*StepOpenConditionType*/, 4 /*SCHALE.Common.FlatData.ConquestConditionType*/, false) && verifier.VerifyVectorOfStrings(tablePos, 18 /*StepOpenConditionParameter*/, false) && verifier.VerifyString(tablePos, 20 /*MapGoalLocalize*/, false) && verifier.VerifyString(tablePos, 22 /*StepGoalLocalize*/, false) && verifier.VerifyString(tablePos, 24 /*StepNameLocalize*/, false) && verifier.VerifyString(tablePos, 26 /*ConquestMapBG*/, false) && verifier.VerifyField(tablePos, 28 /*CameraSettingId*/, 8 /*long*/, 8, false) && verifier.VerifyTableEnd(tablePos); } } }