SCHALE.GameServer/SCHALE.Common/FlatData/ContentsShortcutExcel.cs

135 lines
10 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 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<byte> GetShortcutOpenTimeBytes() { return __p.__vector_as_span<byte>(14, 1); }
#else
public ArraySegment<byte>? GetShortcutOpenTimeBytes() { return __p.__vector_as_arraysegment(14); }
#endif
public byte[] GetShortcutOpenTimeArray() { return __p.__vector_as_array<byte>(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<byte> GetShortcutCloseTimeBytes() { return __p.__vector_as_span<byte>(16, 1); }
#else
public ArraySegment<byte>? GetShortcutCloseTimeBytes() { return __p.__vector_as_arraysegment(16); }
#endif
public byte[] GetShortcutCloseTimeArray() { return __p.__vector_as_array<byte>(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<byte> GetLocalizeBytes() { return __p.__vector_as_span<byte>(28, 1); }
#else
public ArraySegment<byte>? GetLocalizeBytes() { return __p.__vector_as_arraysegment(28); }
#endif
public byte[] GetLocalizeArray() { return __p.__vector_as_array<byte>(28); }
public static Offset<SCHALE.Common.FlatData.ContentsShortcutExcel> 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<StringOffset> 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<StringOffset>(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<SCHALE.Common.FlatData.ContentsShortcutExcel> EndContentsShortcutExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.ContentsShortcutExcel>(o);
}
}
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);
}
}
}