//
// 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 SpecialLobbyIllustExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static SpecialLobbyIllustExcel GetRootAsSpecialLobbyIllustExcel(ByteBuffer _bb) { return GetRootAsSpecialLobbyIllustExcel(_bb, new SpecialLobbyIllustExcel()); }
public static SpecialLobbyIllustExcel GetRootAsSpecialLobbyIllustExcel(ByteBuffer _bb, SpecialLobbyIllustExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public SpecialLobbyIllustExcel __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 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 long CharacterCostumeUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public string PrefabName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span GetPrefabNameBytes() { return __p.__vector_as_span(10, 1); }
#else
public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(10); }
#endif
public byte[] GetPrefabNameArray() { return __p.__vector_as_array(10); }
public string SlotTextureName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span GetSlotTextureNameBytes() { return __p.__vector_as_span(12, 1); }
#else
public ArraySegment? GetSlotTextureNameBytes() { return __p.__vector_as_arraysegment(12); }
#endif
public byte[] GetSlotTextureNameArray() { return __p.__vector_as_array(12); }
public string RewardTextureName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span GetRewardTextureNameBytes() { return __p.__vector_as_span(14, 1); }
#else
public ArraySegment? GetRewardTextureNameBytes() { return __p.__vector_as_arraysegment(14); }
#endif
public byte[] GetRewardTextureNameArray() { return __p.__vector_as_array(14); }
public static Offset CreateSpecialLobbyIllustExcel(FlatBufferBuilder builder,
long UniqueId = 0,
StringOffset DevNameOffset = default(StringOffset),
long CharacterCostumeUniqueId = 0,
StringOffset PrefabNameOffset = default(StringOffset),
StringOffset SlotTextureNameOffset = default(StringOffset),
StringOffset RewardTextureNameOffset = default(StringOffset)) {
builder.StartTable(6);
SpecialLobbyIllustExcel.AddCharacterCostumeUniqueId(builder, CharacterCostumeUniqueId);
SpecialLobbyIllustExcel.AddUniqueId(builder, UniqueId);
SpecialLobbyIllustExcel.AddRewardTextureName(builder, RewardTextureNameOffset);
SpecialLobbyIllustExcel.AddSlotTextureName(builder, SlotTextureNameOffset);
SpecialLobbyIllustExcel.AddPrefabName(builder, PrefabNameOffset);
SpecialLobbyIllustExcel.AddDevName(builder, DevNameOffset);
return SpecialLobbyIllustExcel.EndSpecialLobbyIllustExcel(builder);
}
public static void StartSpecialLobbyIllustExcel(FlatBufferBuilder builder) { builder.StartTable(6); }
public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); }
public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); }
public static void AddCharacterCostumeUniqueId(FlatBufferBuilder builder, long characterCostumeUniqueId) { builder.AddLong(2, characterCostumeUniqueId, 0); }
public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(3, prefabNameOffset.Value, 0); }
public static void AddSlotTextureName(FlatBufferBuilder builder, StringOffset slotTextureNameOffset) { builder.AddOffset(4, slotTextureNameOffset.Value, 0); }
public static void AddRewardTextureName(FlatBufferBuilder builder, StringOffset rewardTextureNameOffset) { builder.AddOffset(5, rewardTextureNameOffset.Value, 0); }
public static Offset EndSpecialLobbyIllustExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset(o);
}
}
static public class SpecialLobbyIllustExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false)
&& verifier.VerifyString(tablePos, 6 /*DevName*/, false)
&& verifier.VerifyField(tablePos, 8 /*CharacterCostumeUniqueId*/, 8 /*long*/, 8, false)
&& verifier.VerifyString(tablePos, 10 /*PrefabName*/, false)
&& verifier.VerifyString(tablePos, 12 /*SlotTextureName*/, false)
&& verifier.VerifyString(tablePos, 14 /*RewardTextureName*/, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}