121 lines
8.0 KiB
C#
121 lines
8.0 KiB
C#
// <auto-generated>
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
// </auto-generated>
|
|
|
|
namespace SCHALE.Common.FlatData
|
|
{
|
|
|
|
using global::System;
|
|
using global::System.Collections.Generic;
|
|
using global::Google.FlatBuffers;
|
|
|
|
public struct GuideMissionOpenStageConditionExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static GuideMissionOpenStageConditionExcel GetRootAsGuideMissionOpenStageConditionExcel(ByteBuffer _bb) { return GetRootAsGuideMissionOpenStageConditionExcel(_bb, new GuideMissionOpenStageConditionExcel()); }
|
|
public static GuideMissionOpenStageConditionExcel GetRootAsGuideMissionOpenStageConditionExcel(ByteBuffer _bb, GuideMissionOpenStageConditionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public GuideMissionOpenStageConditionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long OrderNumber { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public string TabLocalizeCode { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetTabLocalizeCodeBytes() { return __p.__vector_as_span<byte>(8, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetTabLocalizeCodeBytes() { return __p.__vector_as_arraysegment(8); }
|
|
#endif
|
|
public byte[] GetTabLocalizeCodeArray() { return __p.__vector_as_array<byte>(8); }
|
|
public long ClearScenarioModeId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public string LockScenarioTextLocailzeCode { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetLockScenarioTextLocailzeCodeBytes() { return __p.__vector_as_span<byte>(12, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetLockScenarioTextLocailzeCodeBytes() { return __p.__vector_as_arraysegment(12); }
|
|
#endif
|
|
public byte[] GetLockScenarioTextLocailzeCodeArray() { return __p.__vector_as_array<byte>(12); }
|
|
public string ShortcutScenarioUI { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetShortcutScenarioUIBytes() { return __p.__vector_as_span<byte>(14, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetShortcutScenarioUIBytes() { return __p.__vector_as_arraysegment(14); }
|
|
#endif
|
|
public byte[] GetShortcutScenarioUIArray() { return __p.__vector_as_array<byte>(14); }
|
|
public long ClearStageId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public string LockStageTextLocailzeCode { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetLockStageTextLocailzeCodeBytes() { return __p.__vector_as_span<byte>(18, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetLockStageTextLocailzeCodeBytes() { return __p.__vector_as_arraysegment(18); }
|
|
#endif
|
|
public byte[] GetLockStageTextLocailzeCodeArray() { return __p.__vector_as_array<byte>(18); }
|
|
public string ShortcutStageUI { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetShortcutStageUIBytes() { return __p.__vector_as_span<byte>(20, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetShortcutStageUIBytes() { return __p.__vector_as_arraysegment(20); }
|
|
#endif
|
|
public byte[] GetShortcutStageUIArray() { return __p.__vector_as_array<byte>(20); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.GuideMissionOpenStageConditionExcel> CreateGuideMissionOpenStageConditionExcel(FlatBufferBuilder builder,
|
|
long SeasonId = 0,
|
|
long OrderNumber = 0,
|
|
StringOffset TabLocalizeCodeOffset = default(StringOffset),
|
|
long ClearScenarioModeId = 0,
|
|
StringOffset LockScenarioTextLocailzeCodeOffset = default(StringOffset),
|
|
StringOffset ShortcutScenarioUIOffset = default(StringOffset),
|
|
long ClearStageId = 0,
|
|
StringOffset LockStageTextLocailzeCodeOffset = default(StringOffset),
|
|
StringOffset ShortcutStageUIOffset = default(StringOffset)) {
|
|
builder.StartTable(9);
|
|
GuideMissionOpenStageConditionExcel.AddClearStageId(builder, ClearStageId);
|
|
GuideMissionOpenStageConditionExcel.AddClearScenarioModeId(builder, ClearScenarioModeId);
|
|
GuideMissionOpenStageConditionExcel.AddOrderNumber(builder, OrderNumber);
|
|
GuideMissionOpenStageConditionExcel.AddSeasonId(builder, SeasonId);
|
|
GuideMissionOpenStageConditionExcel.AddShortcutStageUI(builder, ShortcutStageUIOffset);
|
|
GuideMissionOpenStageConditionExcel.AddLockStageTextLocailzeCode(builder, LockStageTextLocailzeCodeOffset);
|
|
GuideMissionOpenStageConditionExcel.AddShortcutScenarioUI(builder, ShortcutScenarioUIOffset);
|
|
GuideMissionOpenStageConditionExcel.AddLockScenarioTextLocailzeCode(builder, LockScenarioTextLocailzeCodeOffset);
|
|
GuideMissionOpenStageConditionExcel.AddTabLocalizeCode(builder, TabLocalizeCodeOffset);
|
|
return GuideMissionOpenStageConditionExcel.EndGuideMissionOpenStageConditionExcel(builder);
|
|
}
|
|
|
|
public static void StartGuideMissionOpenStageConditionExcel(FlatBufferBuilder builder) { builder.StartTable(9); }
|
|
public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); }
|
|
public static void AddOrderNumber(FlatBufferBuilder builder, long orderNumber) { builder.AddLong(1, orderNumber, 0); }
|
|
public static void AddTabLocalizeCode(FlatBufferBuilder builder, StringOffset tabLocalizeCodeOffset) { builder.AddOffset(2, tabLocalizeCodeOffset.Value, 0); }
|
|
public static void AddClearScenarioModeId(FlatBufferBuilder builder, long clearScenarioModeId) { builder.AddLong(3, clearScenarioModeId, 0); }
|
|
public static void AddLockScenarioTextLocailzeCode(FlatBufferBuilder builder, StringOffset lockScenarioTextLocailzeCodeOffset) { builder.AddOffset(4, lockScenarioTextLocailzeCodeOffset.Value, 0); }
|
|
public static void AddShortcutScenarioUI(FlatBufferBuilder builder, StringOffset shortcutScenarioUIOffset) { builder.AddOffset(5, shortcutScenarioUIOffset.Value, 0); }
|
|
public static void AddClearStageId(FlatBufferBuilder builder, long clearStageId) { builder.AddLong(6, clearStageId, 0); }
|
|
public static void AddLockStageTextLocailzeCode(FlatBufferBuilder builder, StringOffset lockStageTextLocailzeCodeOffset) { builder.AddOffset(7, lockStageTextLocailzeCodeOffset.Value, 0); }
|
|
public static void AddShortcutStageUI(FlatBufferBuilder builder, StringOffset shortcutStageUIOffset) { builder.AddOffset(8, shortcutStageUIOffset.Value, 0); }
|
|
public static Offset<SCHALE.Common.FlatData.GuideMissionOpenStageConditionExcel> EndGuideMissionOpenStageConditionExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.GuideMissionOpenStageConditionExcel>(o);
|
|
}
|
|
}
|
|
|
|
|
|
static public class GuideMissionOpenStageConditionExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*OrderNumber*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyString(tablePos, 8 /*TabLocalizeCode*/, false)
|
|
&& verifier.VerifyField(tablePos, 10 /*ClearScenarioModeId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyString(tablePos, 12 /*LockScenarioTextLocailzeCode*/, false)
|
|
&& verifier.VerifyString(tablePos, 14 /*ShortcutScenarioUI*/, false)
|
|
&& verifier.VerifyField(tablePos, 16 /*ClearStageId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyString(tablePos, 18 /*LockStageTextLocailzeCode*/, false)
|
|
&& verifier.VerifyString(tablePos, 20 /*ShortcutStageUI*/, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|