2024-04-21 00:21:57 +00:00
|
|
|
// <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;
|
2024-04-29 15:52:45 +00:00
|
|
|
using global::SCHALE.Common.Crypto;
|
2024-04-21 00:21:57 +00:00
|
|
|
using global::Google.FlatBuffers;
|
|
|
|
|
|
|
|
public struct ConquestGroupBuffExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static ConquestGroupBuffExcel GetRootAsConquestGroupBuffExcel(ByteBuffer _bb) { return GetRootAsConquestGroupBuffExcel(_bb, new ConquestGroupBuffExcel()); }
|
|
|
|
public static ConquestGroupBuffExcel GetRootAsConquestGroupBuffExcel(ByteBuffer _bb, ConquestGroupBuffExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public ConquestGroupBuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
|
|
|
public long ConquestBuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public SCHALE.Common.FlatData.School School_(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.School)0; }
|
|
|
|
public int School_Length { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
|
|
#if ENABLE_SPAN_T
|
|
|
|
public Span<SCHALE.Common.FlatData.School> GetSchool_Bytes() { return __p.__vector_as_span<SCHALE.Common.FlatData.School>(6, 4); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetSchool_Bytes() { return __p.__vector_as_arraysegment(6); }
|
|
|
|
#endif
|
|
|
|
public SCHALE.Common.FlatData.School[] GetSchool_Array() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.School[] a = new SCHALE.Common.FlatData.School[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.School)__p.bb.GetInt(p + i * 4); } return a; }
|
|
|
|
public uint RecommandLocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
|
|
public string SkillGroupId { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
|
|
#if ENABLE_SPAN_T
|
|
|
|
public Span<byte> GetSkillGroupIdBytes() { return __p.__vector_as_span<byte>(10, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetSkillGroupIdBytes() { return __p.__vector_as_arraysegment(10); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetSkillGroupIdArray() { return __p.__vector_as_array<byte>(10); }
|
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ConquestGroupBuffExcel> CreateConquestGroupBuffExcel(FlatBufferBuilder builder,
|
|
|
|
long ConquestBuffId = 0,
|
|
|
|
VectorOffset School_Offset = default(VectorOffset),
|
|
|
|
uint RecommandLocalizeEtcId = 0,
|
|
|
|
StringOffset SkillGroupIdOffset = default(StringOffset)) {
|
|
|
|
builder.StartTable(4);
|
|
|
|
ConquestGroupBuffExcel.AddConquestBuffId(builder, ConquestBuffId);
|
|
|
|
ConquestGroupBuffExcel.AddSkillGroupId(builder, SkillGroupIdOffset);
|
|
|
|
ConquestGroupBuffExcel.AddRecommandLocalizeEtcId(builder, RecommandLocalizeEtcId);
|
|
|
|
ConquestGroupBuffExcel.AddSchool_(builder, School_Offset);
|
|
|
|
return ConquestGroupBuffExcel.EndConquestGroupBuffExcel(builder);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void StartConquestGroupBuffExcel(FlatBufferBuilder builder) { builder.StartTable(4); }
|
|
|
|
public static void AddConquestBuffId(FlatBufferBuilder builder, long conquestBuffId) { builder.AddLong(0, conquestBuffId, 0); }
|
|
|
|
public static void AddSchool_(FlatBufferBuilder builder, VectorOffset school_Offset) { builder.AddOffset(1, school_Offset.Value, 0); }
|
|
|
|
public static VectorOffset CreateSchool_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.School[] 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 CreateSchool_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.School[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
|
|
|
public static VectorOffset CreateSchool_VectorBlock(FlatBufferBuilder builder, ArraySegment<SCHALE.Common.FlatData.School> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
|
|
|
public static VectorOffset CreateSchool_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<SCHALE.Common.FlatData.School>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
|
|
public static void StartSchool_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
|
|
|
public static void AddRecommandLocalizeEtcId(FlatBufferBuilder builder, uint recommandLocalizeEtcId) { builder.AddUint(2, recommandLocalizeEtcId, 0); }
|
|
|
|
public static void AddSkillGroupId(FlatBufferBuilder builder, StringOffset skillGroupIdOffset) { builder.AddOffset(3, skillGroupIdOffset.Value, 0); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ConquestGroupBuffExcel> EndConquestGroupBuffExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.ConquestGroupBuffExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public ConquestGroupBuffExcelT UnPack() {
|
|
|
|
var _o = new ConquestGroupBuffExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(ConquestGroupBuffExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("ConquestGroupBuff");
|
|
|
|
_o.ConquestBuffId = TableEncryptionService.Convert(this.ConquestBuffId, key);
|
|
|
|
_o.School_ = new List<SCHALE.Common.FlatData.School>();
|
|
|
|
for (var _j = 0; _j < this.School_Length; ++_j) {_o.School_.Add(TableEncryptionService.Convert(this.School_(_j), key));}
|
|
|
|
_o.RecommandLocalizeEtcId = TableEncryptionService.Convert(this.RecommandLocalizeEtcId, key);
|
|
|
|
_o.SkillGroupId = TableEncryptionService.Convert(this.SkillGroupId, key);
|
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ConquestGroupBuffExcel> Pack(FlatBufferBuilder builder, ConquestGroupBuffExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.ConquestGroupBuffExcel>);
|
|
|
|
var _School_ = default(VectorOffset);
|
|
|
|
if (_o.School_ != null) {
|
|
|
|
var __School_ = _o.School_.ToArray();
|
|
|
|
_School_ = CreateSchool_Vector(builder, __School_);
|
|
|
|
}
|
|
|
|
var _SkillGroupId = _o.SkillGroupId == null ? default(StringOffset) : builder.CreateString(_o.SkillGroupId);
|
|
|
|
return CreateConquestGroupBuffExcel(
|
|
|
|
builder,
|
|
|
|
_o.ConquestBuffId,
|
|
|
|
_School_,
|
|
|
|
_o.RecommandLocalizeEtcId,
|
|
|
|
_SkillGroupId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ConquestGroupBuffExcelT
|
|
|
|
{
|
|
|
|
public long ConquestBuffId { get; set; }
|
|
|
|
public List<SCHALE.Common.FlatData.School> School_ { get; set; }
|
|
|
|
public uint RecommandLocalizeEtcId { get; set; }
|
|
|
|
public string SkillGroupId { get; set; }
|
|
|
|
|
|
|
|
public ConquestGroupBuffExcelT() {
|
|
|
|
this.ConquestBuffId = 0;
|
|
|
|
this.School_ = null;
|
|
|
|
this.RecommandLocalizeEtcId = 0;
|
|
|
|
this.SkillGroupId = null;
|
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class ConquestGroupBuffExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
|
|
|
&& verifier.VerifyField(tablePos, 4 /*ConquestBuffId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyVectorOfData(tablePos, 6 /*School_*/, 4 /*SCHALE.Common.FlatData.School*/, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 8 /*RecommandLocalizeEtcId*/, 4 /*uint*/, 4, false)
|
|
|
|
&& verifier.VerifyString(tablePos, 10 /*SkillGroupId*/, false)
|
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|