forked from Raphael/SCHALE.GameServer
102 lines
9.0 KiB
C#
102 lines
9.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 FieldTutorialExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static FieldTutorialExcel GetRootAsFieldTutorialExcel(ByteBuffer _bb) { return GetRootAsFieldTutorialExcel(_bb, new FieldTutorialExcel()); }
|
|
public static FieldTutorialExcel GetRootAsFieldTutorialExcel(ByteBuffer _bb, FieldTutorialExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public FieldTutorialExcel __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 SCHALE.Common.FlatData.FieldTutorialType TutorialType(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.FieldTutorialType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.FieldTutorialType)0; }
|
|
public int TutorialTypeLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<SCHALE.Common.FlatData.FieldTutorialType> GetTutorialTypeBytes() { return __p.__vector_as_span<SCHALE.Common.FlatData.FieldTutorialType>(6, 4); }
|
|
#else
|
|
public ArraySegment<byte>? GetTutorialTypeBytes() { return __p.__vector_as_arraysegment(6); }
|
|
#endif
|
|
public SCHALE.Common.FlatData.FieldTutorialType[] GetTutorialTypeArray() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.FieldTutorialType[] a = new SCHALE.Common.FlatData.FieldTutorialType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.FieldTutorialType)__p.bb.GetInt(p + i * 4); } return a; }
|
|
public SCHALE.Common.FlatData.FieldConditionType ConditionType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.FieldConditionType)0; }
|
|
public int ConditionTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<SCHALE.Common.FlatData.FieldConditionType> GetConditionTypeBytes() { return __p.__vector_as_span<SCHALE.Common.FlatData.FieldConditionType>(8, 4); }
|
|
#else
|
|
public ArraySegment<byte>? GetConditionTypeBytes() { return __p.__vector_as_arraysegment(8); }
|
|
#endif
|
|
public SCHALE.Common.FlatData.FieldConditionType[] GetConditionTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.FieldConditionType[] a = new SCHALE.Common.FlatData.FieldConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(p + i * 4); } return a; }
|
|
public long ConditionId(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
|
|
public int ConditionIdLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<long> GetConditionIdBytes() { return __p.__vector_as_span<long>(10, 8); }
|
|
#else
|
|
public ArraySegment<byte>? GetConditionIdBytes() { return __p.__vector_as_arraysegment(10); }
|
|
#endif
|
|
public long[] GetConditionIdArray() { return __p.__vector_as_array<long>(10); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.FieldTutorialExcel> CreateFieldTutorialExcel(FlatBufferBuilder builder,
|
|
long SeasonId = 0,
|
|
VectorOffset TutorialTypeOffset = default(VectorOffset),
|
|
VectorOffset ConditionTypeOffset = default(VectorOffset),
|
|
VectorOffset ConditionIdOffset = default(VectorOffset)) {
|
|
builder.StartTable(4);
|
|
FieldTutorialExcel.AddSeasonId(builder, SeasonId);
|
|
FieldTutorialExcel.AddConditionId(builder, ConditionIdOffset);
|
|
FieldTutorialExcel.AddConditionType(builder, ConditionTypeOffset);
|
|
FieldTutorialExcel.AddTutorialType(builder, TutorialTypeOffset);
|
|
return FieldTutorialExcel.EndFieldTutorialExcel(builder);
|
|
}
|
|
|
|
public static void StartFieldTutorialExcel(FlatBufferBuilder builder) { builder.StartTable(4); }
|
|
public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); }
|
|
public static void AddTutorialType(FlatBufferBuilder builder, VectorOffset tutorialTypeOffset) { builder.AddOffset(1, tutorialTypeOffset.Value, 0); }
|
|
public static VectorOffset CreateTutorialTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldTutorialType[] 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 CreateTutorialTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldTutorialType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateTutorialTypeVectorBlock(FlatBufferBuilder builder, ArraySegment<SCHALE.Common.FlatData.FieldTutorialType> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateTutorialTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<SCHALE.Common.FlatData.FieldTutorialType>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartTutorialTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
|
public static void AddConditionType(FlatBufferBuilder builder, VectorOffset conditionTypeOffset) { builder.AddOffset(2, conditionTypeOffset.Value, 0); }
|
|
public static VectorOffset CreateConditionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType[] 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 CreateConditionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateConditionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment<SCHALE.Common.FlatData.FieldConditionType> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateConditionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<SCHALE.Common.FlatData.FieldConditionType>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartConditionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
|
public static void AddConditionId(FlatBufferBuilder builder, VectorOffset conditionIdOffset) { builder.AddOffset(3, conditionIdOffset.Value, 0); }
|
|
public static VectorOffset CreateConditionIdVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); }
|
|
public static VectorOffset CreateConditionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateConditionIdVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateConditionIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartConditionIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
|
|
public static Offset<SCHALE.Common.FlatData.FieldTutorialExcel> EndFieldTutorialExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.FieldTutorialExcel>(o);
|
|
}
|
|
}
|
|
|
|
|
|
static public class FieldTutorialExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 6 /*TutorialType*/, 4 /*SCHALE.Common.FlatData.FieldTutorialType*/, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 8 /*ConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 10 /*ConditionId*/, 8 /*long*/, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|