98 lines
5.9 KiB
C#
98 lines
5.9 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 MiniGameShootingGeasExcel : IFlatbufferObject
|
||
|
{
|
||
|
private Table __p;
|
||
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
||
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
||
|
public static MiniGameShootingGeasExcel GetRootAsMiniGameShootingGeasExcel(ByteBuffer _bb) { return GetRootAsMiniGameShootingGeasExcel(_bb, new MiniGameShootingGeasExcel()); }
|
||
|
public static MiniGameShootingGeasExcel GetRootAsMiniGameShootingGeasExcel(ByteBuffer _bb, MiniGameShootingGeasExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
||
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
||
|
public MiniGameShootingGeasExcel __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.Geas GeasType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Geas)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Geas.ForwardProjectile; } }
|
||
|
public string Icon { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
||
|
#if ENABLE_SPAN_T
|
||
|
public Span<byte> GetIconBytes() { return __p.__vector_as_span<byte>(8, 1); }
|
||
|
#else
|
||
|
public ArraySegment<byte>? GetIconBytes() { return __p.__vector_as_arraysegment(8); }
|
||
|
#endif
|
||
|
public byte[] GetIconArray() { return __p.__vector_as_array<byte>(8); }
|
||
|
public long Probability { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public int MaxOverlapCount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
||
|
public string GeasData { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
||
|
#if ENABLE_SPAN_T
|
||
|
public Span<byte> GetGeasDataBytes() { return __p.__vector_as_span<byte>(14, 1); }
|
||
|
#else
|
||
|
public ArraySegment<byte>? GetGeasDataBytes() { return __p.__vector_as_arraysegment(14); }
|
||
|
#endif
|
||
|
public byte[] GetGeasDataArray() { return __p.__vector_as_array<byte>(14); }
|
||
|
public long NeedGeasId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public bool HideInPausePopup { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
||
|
|
||
|
public static Offset<SCHALE.Common.FlatData.MiniGameShootingGeasExcel> CreateMiniGameShootingGeasExcel(FlatBufferBuilder builder,
|
||
|
long UniqueId = 0,
|
||
|
SCHALE.Common.FlatData.Geas GeasType = SCHALE.Common.FlatData.Geas.ForwardProjectile,
|
||
|
StringOffset IconOffset = default(StringOffset),
|
||
|
long Probability = 0,
|
||
|
int MaxOverlapCount = 0,
|
||
|
StringOffset GeasDataOffset = default(StringOffset),
|
||
|
long NeedGeasId = 0,
|
||
|
bool HideInPausePopup = false) {
|
||
|
builder.StartTable(8);
|
||
|
MiniGameShootingGeasExcel.AddNeedGeasId(builder, NeedGeasId);
|
||
|
MiniGameShootingGeasExcel.AddProbability(builder, Probability);
|
||
|
MiniGameShootingGeasExcel.AddUniqueId(builder, UniqueId);
|
||
|
MiniGameShootingGeasExcel.AddGeasData(builder, GeasDataOffset);
|
||
|
MiniGameShootingGeasExcel.AddMaxOverlapCount(builder, MaxOverlapCount);
|
||
|
MiniGameShootingGeasExcel.AddIcon(builder, IconOffset);
|
||
|
MiniGameShootingGeasExcel.AddGeasType(builder, GeasType);
|
||
|
MiniGameShootingGeasExcel.AddHideInPausePopup(builder, HideInPausePopup);
|
||
|
return MiniGameShootingGeasExcel.EndMiniGameShootingGeasExcel(builder);
|
||
|
}
|
||
|
|
||
|
public static void StartMiniGameShootingGeasExcel(FlatBufferBuilder builder) { builder.StartTable(8); }
|
||
|
public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); }
|
||
|
public static void AddGeasType(FlatBufferBuilder builder, SCHALE.Common.FlatData.Geas geasType) { builder.AddInt(1, (int)geasType, 0); }
|
||
|
public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(2, iconOffset.Value, 0); }
|
||
|
public static void AddProbability(FlatBufferBuilder builder, long probability) { builder.AddLong(3, probability, 0); }
|
||
|
public static void AddMaxOverlapCount(FlatBufferBuilder builder, int maxOverlapCount) { builder.AddInt(4, maxOverlapCount, 0); }
|
||
|
public static void AddGeasData(FlatBufferBuilder builder, StringOffset geasDataOffset) { builder.AddOffset(5, geasDataOffset.Value, 0); }
|
||
|
public static void AddNeedGeasId(FlatBufferBuilder builder, long needGeasId) { builder.AddLong(6, needGeasId, 0); }
|
||
|
public static void AddHideInPausePopup(FlatBufferBuilder builder, bool hideInPausePopup) { builder.AddBool(7, hideInPausePopup, false); }
|
||
|
public static Offset<SCHALE.Common.FlatData.MiniGameShootingGeasExcel> EndMiniGameShootingGeasExcel(FlatBufferBuilder builder) {
|
||
|
int o = builder.EndTable();
|
||
|
return new Offset<SCHALE.Common.FlatData.MiniGameShootingGeasExcel>(o);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
static public class MiniGameShootingGeasExcelVerify
|
||
|
{
|
||
|
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 /*GeasType*/, 4 /*SCHALE.Common.FlatData.Geas*/, 4, false)
|
||
|
&& verifier.VerifyString(tablePos, 8 /*Icon*/, false)
|
||
|
&& verifier.VerifyField(tablePos, 10 /*Probability*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 12 /*MaxOverlapCount*/, 4 /*int*/, 4, false)
|
||
|
&& verifier.VerifyString(tablePos, 14 /*GeasData*/, false)
|
||
|
&& verifier.VerifyField(tablePos, 16 /*NeedGeasId*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 18 /*HideInPausePopup*/, 1 /*bool*/, 1, false)
|
||
|
&& verifier.VerifyTableEnd(tablePos);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|