forked from Raphael/SCHALE.GameServer
152 lines
16 KiB
C#
152 lines
16 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 ConquestErosionExcel : IFlatbufferObject
|
||
|
{
|
||
|
private Table __p;
|
||
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
||
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
||
|
public static ConquestErosionExcel GetRootAsConquestErosionExcel(ByteBuffer _bb) { return GetRootAsConquestErosionExcel(_bb, new ConquestErosionExcel()); }
|
||
|
public static ConquestErosionExcel GetRootAsConquestErosionExcel(ByteBuffer _bb, ConquestErosionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
||
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
||
|
public ConquestErosionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
||
|
|
||
|
public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public SCHALE.Common.FlatData.ConquestErosionType ErosionType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestErosionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestErosionType.None; } }
|
||
|
public int Phase { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
||
|
public bool PhaseAlarm { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
||
|
public int StepIndex { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
||
|
public SCHALE.Common.FlatData.ConquestConditionType PhaseStartConditionType(int j) { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ConquestConditionType)0; }
|
||
|
public int PhaseStartConditionTypeLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } }
|
||
|
#if ENABLE_SPAN_T
|
||
|
public Span<SCHALE.Common.FlatData.ConquestConditionType> GetPhaseStartConditionTypeBytes() { return __p.__vector_as_span<SCHALE.Common.FlatData.ConquestConditionType>(16, 4); }
|
||
|
#else
|
||
|
public ArraySegment<byte>? GetPhaseStartConditionTypeBytes() { return __p.__vector_as_arraysegment(16); }
|
||
|
#endif
|
||
|
public SCHALE.Common.FlatData.ConquestConditionType[] GetPhaseStartConditionTypeArray() { int o = __p.__offset(16); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ConquestConditionType[] a = new SCHALE.Common.FlatData.ConquestConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(p + i * 4); } return a; }
|
||
|
public string PhaseStartConditionParameter(int j) { int o = __p.__offset(18); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; }
|
||
|
public int PhaseStartConditionParameterLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } }
|
||
|
public SCHALE.Common.FlatData.ConquestConditionType PhaseBeforeExposeConditionType(int j) { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ConquestConditionType)0; }
|
||
|
public int PhaseBeforeExposeConditionTypeLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } }
|
||
|
#if ENABLE_SPAN_T
|
||
|
public Span<SCHALE.Common.FlatData.ConquestConditionType> GetPhaseBeforeExposeConditionTypeBytes() { return __p.__vector_as_span<SCHALE.Common.FlatData.ConquestConditionType>(20, 4); }
|
||
|
#else
|
||
|
public ArraySegment<byte>? GetPhaseBeforeExposeConditionTypeBytes() { return __p.__vector_as_arraysegment(20); }
|
||
|
#endif
|
||
|
public SCHALE.Common.FlatData.ConquestConditionType[] GetPhaseBeforeExposeConditionTypeArray() { int o = __p.__offset(20); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ConquestConditionType[] a = new SCHALE.Common.FlatData.ConquestConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(p + i * 4); } return a; }
|
||
|
public string PhaseBeforeExposeConditionParameter(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; }
|
||
|
public int PhaseBeforeExposeConditionParameterLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } }
|
||
|
public SCHALE.Common.FlatData.ParcelType ErosionBattleConditionParcelType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } }
|
||
|
public long ErosionBattleConditionParcelUniqueId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public long ErosionBattleConditionParcelAmount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public long ConquestRewardId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
|
||
|
public static Offset<SCHALE.Common.FlatData.ConquestErosionExcel> CreateConquestErosionExcel(FlatBufferBuilder builder,
|
||
|
long EventContentId = 0,
|
||
|
long Id = 0,
|
||
|
SCHALE.Common.FlatData.ConquestErosionType ErosionType = SCHALE.Common.FlatData.ConquestErosionType.None,
|
||
|
int Phase = 0,
|
||
|
bool PhaseAlarm = false,
|
||
|
int StepIndex = 0,
|
||
|
VectorOffset PhaseStartConditionTypeOffset = default(VectorOffset),
|
||
|
VectorOffset PhaseStartConditionParameterOffset = default(VectorOffset),
|
||
|
VectorOffset PhaseBeforeExposeConditionTypeOffset = default(VectorOffset),
|
||
|
VectorOffset PhaseBeforeExposeConditionParameterOffset = default(VectorOffset),
|
||
|
SCHALE.Common.FlatData.ParcelType ErosionBattleConditionParcelType = SCHALE.Common.FlatData.ParcelType.None,
|
||
|
long ErosionBattleConditionParcelUniqueId = 0,
|
||
|
long ErosionBattleConditionParcelAmount = 0,
|
||
|
long ConquestRewardId = 0) {
|
||
|
builder.StartTable(14);
|
||
|
ConquestErosionExcel.AddConquestRewardId(builder, ConquestRewardId);
|
||
|
ConquestErosionExcel.AddErosionBattleConditionParcelAmount(builder, ErosionBattleConditionParcelAmount);
|
||
|
ConquestErosionExcel.AddErosionBattleConditionParcelUniqueId(builder, ErosionBattleConditionParcelUniqueId);
|
||
|
ConquestErosionExcel.AddId(builder, Id);
|
||
|
ConquestErosionExcel.AddEventContentId(builder, EventContentId);
|
||
|
ConquestErosionExcel.AddErosionBattleConditionParcelType(builder, ErosionBattleConditionParcelType);
|
||
|
ConquestErosionExcel.AddPhaseBeforeExposeConditionParameter(builder, PhaseBeforeExposeConditionParameterOffset);
|
||
|
ConquestErosionExcel.AddPhaseBeforeExposeConditionType(builder, PhaseBeforeExposeConditionTypeOffset);
|
||
|
ConquestErosionExcel.AddPhaseStartConditionParameter(builder, PhaseStartConditionParameterOffset);
|
||
|
ConquestErosionExcel.AddPhaseStartConditionType(builder, PhaseStartConditionTypeOffset);
|
||
|
ConquestErosionExcel.AddStepIndex(builder, StepIndex);
|
||
|
ConquestErosionExcel.AddPhase(builder, Phase);
|
||
|
ConquestErosionExcel.AddErosionType(builder, ErosionType);
|
||
|
ConquestErosionExcel.AddPhaseAlarm(builder, PhaseAlarm);
|
||
|
return ConquestErosionExcel.EndConquestErosionExcel(builder);
|
||
|
}
|
||
|
|
||
|
public static void StartConquestErosionExcel(FlatBufferBuilder builder) { builder.StartTable(14); }
|
||
|
public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); }
|
||
|
public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); }
|
||
|
public static void AddErosionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestErosionType erosionType) { builder.AddInt(2, (int)erosionType, 0); }
|
||
|
public static void AddPhase(FlatBufferBuilder builder, int phase) { builder.AddInt(3, phase, 0); }
|
||
|
public static void AddPhaseAlarm(FlatBufferBuilder builder, bool phaseAlarm) { builder.AddBool(4, phaseAlarm, false); }
|
||
|
public static void AddStepIndex(FlatBufferBuilder builder, int stepIndex) { builder.AddInt(5, stepIndex, 0); }
|
||
|
public static void AddPhaseStartConditionType(FlatBufferBuilder builder, VectorOffset phaseStartConditionTypeOffset) { builder.AddOffset(6, phaseStartConditionTypeOffset.Value, 0); }
|
||
|
public static VectorOffset CreatePhaseStartConditionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] 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 CreatePhaseStartConditionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
||
|
public static VectorOffset CreatePhaseStartConditionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment<SCHALE.Common.FlatData.ConquestConditionType> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
||
|
public static VectorOffset CreatePhaseStartConditionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<SCHALE.Common.FlatData.ConquestConditionType>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
||
|
public static void StartPhaseStartConditionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
||
|
public static void AddPhaseStartConditionParameter(FlatBufferBuilder builder, VectorOffset phaseStartConditionParameterOffset) { builder.AddOffset(7, phaseStartConditionParameterOffset.Value, 0); }
|
||
|
public static VectorOffset CreatePhaseStartConditionParameterVector(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 CreatePhaseStartConditionParameterVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
||
|
public static VectorOffset CreatePhaseStartConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment<StringOffset> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
||
|
public static VectorOffset CreatePhaseStartConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<StringOffset>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
||
|
public static void StartPhaseStartConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
||
|
public static void AddPhaseBeforeExposeConditionType(FlatBufferBuilder builder, VectorOffset phaseBeforeExposeConditionTypeOffset) { builder.AddOffset(8, phaseBeforeExposeConditionTypeOffset.Value, 0); }
|
||
|
public static VectorOffset CreatePhaseBeforeExposeConditionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] 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 CreatePhaseBeforeExposeConditionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
||
|
public static VectorOffset CreatePhaseBeforeExposeConditionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment<SCHALE.Common.FlatData.ConquestConditionType> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
||
|
public static VectorOffset CreatePhaseBeforeExposeConditionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<SCHALE.Common.FlatData.ConquestConditionType>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
||
|
public static void StartPhaseBeforeExposeConditionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
||
|
public static void AddPhaseBeforeExposeConditionParameter(FlatBufferBuilder builder, VectorOffset phaseBeforeExposeConditionParameterOffset) { builder.AddOffset(9, phaseBeforeExposeConditionParameterOffset.Value, 0); }
|
||
|
public static VectorOffset CreatePhaseBeforeExposeConditionParameterVector(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 CreatePhaseBeforeExposeConditionParameterVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
||
|
public static VectorOffset CreatePhaseBeforeExposeConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment<StringOffset> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
||
|
public static VectorOffset CreatePhaseBeforeExposeConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<StringOffset>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
||
|
public static void StartPhaseBeforeExposeConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
||
|
public static void AddErosionBattleConditionParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType erosionBattleConditionParcelType) { builder.AddInt(10, (int)erosionBattleConditionParcelType, 0); }
|
||
|
public static void AddErosionBattleConditionParcelUniqueId(FlatBufferBuilder builder, long erosionBattleConditionParcelUniqueId) { builder.AddLong(11, erosionBattleConditionParcelUniqueId, 0); }
|
||
|
public static void AddErosionBattleConditionParcelAmount(FlatBufferBuilder builder, long erosionBattleConditionParcelAmount) { builder.AddLong(12, erosionBattleConditionParcelAmount, 0); }
|
||
|
public static void AddConquestRewardId(FlatBufferBuilder builder, long conquestRewardId) { builder.AddLong(13, conquestRewardId, 0); }
|
||
|
public static Offset<SCHALE.Common.FlatData.ConquestErosionExcel> EndConquestErosionExcel(FlatBufferBuilder builder) {
|
||
|
int o = builder.EndTable();
|
||
|
return new Offset<SCHALE.Common.FlatData.ConquestErosionExcel>(o);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
static public class ConquestErosionExcelVerify
|
||
|
{
|
||
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
||
|
{
|
||
|
return verifier.VerifyTableStart(tablePos)
|
||
|
&& verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 6 /*Id*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 8 /*ErosionType*/, 4 /*SCHALE.Common.FlatData.ConquestErosionType*/, 4, false)
|
||
|
&& verifier.VerifyField(tablePos, 10 /*Phase*/, 4 /*int*/, 4, false)
|
||
|
&& verifier.VerifyField(tablePos, 12 /*PhaseAlarm*/, 1 /*bool*/, 1, false)
|
||
|
&& verifier.VerifyField(tablePos, 14 /*StepIndex*/, 4 /*int*/, 4, false)
|
||
|
&& verifier.VerifyVectorOfData(tablePos, 16 /*PhaseStartConditionType*/, 4 /*SCHALE.Common.FlatData.ConquestConditionType*/, false)
|
||
|
&& verifier.VerifyVectorOfStrings(tablePos, 18 /*PhaseStartConditionParameter*/, false)
|
||
|
&& verifier.VerifyVectorOfData(tablePos, 20 /*PhaseBeforeExposeConditionType*/, 4 /*SCHALE.Common.FlatData.ConquestConditionType*/, false)
|
||
|
&& verifier.VerifyVectorOfStrings(tablePos, 22 /*PhaseBeforeExposeConditionParameter*/, false)
|
||
|
&& verifier.VerifyField(tablePos, 24 /*ErosionBattleConditionParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
|
||
|
&& verifier.VerifyField(tablePos, 26 /*ErosionBattleConditionParcelUniqueId*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 28 /*ErosionBattleConditionParcelAmount*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 30 /*ConquestRewardId*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyTableEnd(tablePos);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|