SCHALE.GameServer/SCHALE.Common/FlatData/EquipmentStatExcel.cs

254 lines
18 KiB
C#
Raw Permalink Normal View History

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 EquipmentStatExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static EquipmentStatExcel GetRootAsEquipmentStatExcel(ByteBuffer _bb) { return GetRootAsEquipmentStatExcel(_bb, new EquipmentStatExcel()); }
public static EquipmentStatExcel GetRootAsEquipmentStatExcel(ByteBuffer _bb, EquipmentStatExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public EquipmentStatExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long EquipmentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.StatLevelUpType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatLevelUpType.Standard; } }
2024-04-21 00:21:57 +00:00
public SCHALE.Common.FlatData.EquipmentOptionType StatType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.EquipmentOptionType)0; }
public int StatTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } }
#if ENABLE_SPAN_T
public Span<SCHALE.Common.FlatData.EquipmentOptionType> GetStatTypeBytes() { return __p.__vector_as_span<SCHALE.Common.FlatData.EquipmentOptionType>(8, 4); }
#else
public ArraySegment<byte>? GetStatTypeBytes() { return __p.__vector_as_arraysegment(8); }
#endif
public SCHALE.Common.FlatData.EquipmentOptionType[] GetStatTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.EquipmentOptionType[] a = new SCHALE.Common.FlatData.EquipmentOptionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(p + i * 4); } return a; }
public long MinStat(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
public int MinStatLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } }
#if ENABLE_SPAN_T
public Span<long> GetMinStatBytes() { return __p.__vector_as_span<long>(10, 8); }
#else
public ArraySegment<byte>? GetMinStatBytes() { return __p.__vector_as_arraysegment(10); }
#endif
public long[] GetMinStatArray() { return __p.__vector_as_array<long>(10); }
public long MaxStat(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
public int MaxStatLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } }
#if ENABLE_SPAN_T
public Span<long> GetMaxStatBytes() { return __p.__vector_as_span<long>(12, 8); }
#else
public ArraySegment<byte>? GetMaxStatBytes() { return __p.__vector_as_arraysegment(12); }
#endif
public long[] GetMaxStatArray() { return __p.__vector_as_array<long>(12); }
public int LevelUpInsertLimit { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public long LevelUpFeedExp { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.CurrencyTypes LevelUpFeedCostCurrency { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.CurrencyTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CurrencyTypes.Invalid; } }
public long LevelUpFeedCostAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.EquipmentCategory EquipmentCategory { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.EquipmentCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EquipmentCategory.Unable; } }
2024-04-21 00:21:57 +00:00
public long LevelUpFeedAddExp { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public int DefaultMaxLevel { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int TranscendenceMax { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public string DamageFactorGroupId { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetDamageFactorGroupIdBytes() { return __p.__vector_as_span<byte>(30, 1); }
#else
public ArraySegment<byte>? GetDamageFactorGroupIdBytes() { return __p.__vector_as_arraysegment(30); }
#endif
public byte[] GetDamageFactorGroupIdArray() { return __p.__vector_as_array<byte>(30); }
public static Offset<SCHALE.Common.FlatData.EquipmentStatExcel> CreateEquipmentStatExcel(FlatBufferBuilder builder,
long EquipmentId = 0,
SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard,
2024-04-21 00:21:57 +00:00
VectorOffset StatTypeOffset = default(VectorOffset),
VectorOffset MinStatOffset = default(VectorOffset),
VectorOffset MaxStatOffset = default(VectorOffset),
int LevelUpInsertLimit = 0,
long LevelUpFeedExp = 0,
SCHALE.Common.FlatData.CurrencyTypes LevelUpFeedCostCurrency = SCHALE.Common.FlatData.CurrencyTypes.Invalid,
long LevelUpFeedCostAmount = 0,
SCHALE.Common.FlatData.EquipmentCategory EquipmentCategory = SCHALE.Common.FlatData.EquipmentCategory.Unable,
2024-04-21 00:21:57 +00:00
long LevelUpFeedAddExp = 0,
int DefaultMaxLevel = 0,
int TranscendenceMax = 0,
StringOffset DamageFactorGroupIdOffset = default(StringOffset)) {
builder.StartTable(14);
EquipmentStatExcel.AddLevelUpFeedAddExp(builder, LevelUpFeedAddExp);
EquipmentStatExcel.AddLevelUpFeedCostAmount(builder, LevelUpFeedCostAmount);
EquipmentStatExcel.AddLevelUpFeedExp(builder, LevelUpFeedExp);
EquipmentStatExcel.AddEquipmentId(builder, EquipmentId);
EquipmentStatExcel.AddDamageFactorGroupId(builder, DamageFactorGroupIdOffset);
EquipmentStatExcel.AddTranscendenceMax(builder, TranscendenceMax);
EquipmentStatExcel.AddDefaultMaxLevel(builder, DefaultMaxLevel);
EquipmentStatExcel.AddEquipmentCategory(builder, EquipmentCategory);
2024-04-21 00:21:57 +00:00
EquipmentStatExcel.AddLevelUpFeedCostCurrency(builder, LevelUpFeedCostCurrency);
EquipmentStatExcel.AddLevelUpInsertLimit(builder, LevelUpInsertLimit);
EquipmentStatExcel.AddMaxStat(builder, MaxStatOffset);
EquipmentStatExcel.AddMinStat(builder, MinStatOffset);
EquipmentStatExcel.AddStatType(builder, StatTypeOffset);
EquipmentStatExcel.AddStatLevelUpType(builder, StatLevelUpType);
2024-04-21 00:21:57 +00:00
return EquipmentStatExcel.EndEquipmentStatExcel(builder);
}
public static void StartEquipmentStatExcel(FlatBufferBuilder builder) { builder.StartTable(14); }
public static void AddEquipmentId(FlatBufferBuilder builder, long equipmentId) { builder.AddLong(0, equipmentId, 0); }
public static void AddStatLevelUpType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatLevelUpType statLevelUpType) { builder.AddInt(1, (int)statLevelUpType, 0); }
2024-04-21 00:21:57 +00:00
public static void AddStatType(FlatBufferBuilder builder, VectorOffset statTypeOffset) { builder.AddOffset(2, statTypeOffset.Value, 0); }
public static VectorOffset CreateStatTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] 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 CreateStatTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, ArraySegment<SCHALE.Common.FlatData.EquipmentOptionType> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<SCHALE.Common.FlatData.EquipmentOptionType>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartStatTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
public static void AddMinStat(FlatBufferBuilder builder, VectorOffset minStatOffset) { builder.AddOffset(3, minStatOffset.Value, 0); }
public static VectorOffset CreateMinStatVector(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 CreateMinStatVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateMinStatVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateMinStatVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartMinStatVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
public static void AddMaxStat(FlatBufferBuilder builder, VectorOffset maxStatOffset) { builder.AddOffset(4, maxStatOffset.Value, 0); }
public static VectorOffset CreateMaxStatVector(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 CreateMaxStatVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateMaxStatVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateMaxStatVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartMaxStatVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
public static void AddLevelUpInsertLimit(FlatBufferBuilder builder, int levelUpInsertLimit) { builder.AddInt(5, levelUpInsertLimit, 0); }
public static void AddLevelUpFeedExp(FlatBufferBuilder builder, long levelUpFeedExp) { builder.AddLong(6, levelUpFeedExp, 0); }
public static void AddLevelUpFeedCostCurrency(FlatBufferBuilder builder, SCHALE.Common.FlatData.CurrencyTypes levelUpFeedCostCurrency) { builder.AddInt(7, (int)levelUpFeedCostCurrency, 0); }
public static void AddLevelUpFeedCostAmount(FlatBufferBuilder builder, long levelUpFeedCostAmount) { builder.AddLong(8, levelUpFeedCostAmount, 0); }
public static void AddEquipmentCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentCategory equipmentCategory) { builder.AddInt(9, (int)equipmentCategory, 0); }
2024-04-21 00:21:57 +00:00
public static void AddLevelUpFeedAddExp(FlatBufferBuilder builder, long levelUpFeedAddExp) { builder.AddLong(10, levelUpFeedAddExp, 0); }
public static void AddDefaultMaxLevel(FlatBufferBuilder builder, int defaultMaxLevel) { builder.AddInt(11, defaultMaxLevel, 0); }
public static void AddTranscendenceMax(FlatBufferBuilder builder, int transcendenceMax) { builder.AddInt(12, transcendenceMax, 0); }
public static void AddDamageFactorGroupId(FlatBufferBuilder builder, StringOffset damageFactorGroupIdOffset) { builder.AddOffset(13, damageFactorGroupIdOffset.Value, 0); }
public static Offset<SCHALE.Common.FlatData.EquipmentStatExcel> EndEquipmentStatExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.EquipmentStatExcel>(o);
}
2024-04-29 15:52:45 +00:00
public EquipmentStatExcelT UnPack() {
var _o = new EquipmentStatExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(EquipmentStatExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("EquipmentStat");
_o.EquipmentId = TableEncryptionService.Convert(this.EquipmentId, key);
_o.StatLevelUpType = TableEncryptionService.Convert(this.StatLevelUpType, key);
2024-04-29 15:52:45 +00:00
_o.StatType = new List<SCHALE.Common.FlatData.EquipmentOptionType>();
for (var _j = 0; _j < this.StatTypeLength; ++_j) {_o.StatType.Add(TableEncryptionService.Convert(this.StatType(_j), key));}
_o.MinStat = new List<long>();
for (var _j = 0; _j < this.MinStatLength; ++_j) {_o.MinStat.Add(TableEncryptionService.Convert(this.MinStat(_j), key));}
_o.MaxStat = new List<long>();
for (var _j = 0; _j < this.MaxStatLength; ++_j) {_o.MaxStat.Add(TableEncryptionService.Convert(this.MaxStat(_j), key));}
_o.LevelUpInsertLimit = TableEncryptionService.Convert(this.LevelUpInsertLimit, key);
_o.LevelUpFeedExp = TableEncryptionService.Convert(this.LevelUpFeedExp, key);
_o.LevelUpFeedCostCurrency = TableEncryptionService.Convert(this.LevelUpFeedCostCurrency, key);
_o.LevelUpFeedCostAmount = TableEncryptionService.Convert(this.LevelUpFeedCostAmount, key);
_o.EquipmentCategory = TableEncryptionService.Convert(this.EquipmentCategory, key);
2024-04-29 15:52:45 +00:00
_o.LevelUpFeedAddExp = TableEncryptionService.Convert(this.LevelUpFeedAddExp, key);
_o.DefaultMaxLevel = TableEncryptionService.Convert(this.DefaultMaxLevel, key);
_o.TranscendenceMax = TableEncryptionService.Convert(this.TranscendenceMax, key);
_o.DamageFactorGroupId = TableEncryptionService.Convert(this.DamageFactorGroupId, key);
}
public static Offset<SCHALE.Common.FlatData.EquipmentStatExcel> Pack(FlatBufferBuilder builder, EquipmentStatExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.EquipmentStatExcel>);
var _StatType = default(VectorOffset);
if (_o.StatType != null) {
var __StatType = _o.StatType.ToArray();
_StatType = CreateStatTypeVector(builder, __StatType);
}
var _MinStat = default(VectorOffset);
if (_o.MinStat != null) {
var __MinStat = _o.MinStat.ToArray();
_MinStat = CreateMinStatVector(builder, __MinStat);
}
var _MaxStat = default(VectorOffset);
if (_o.MaxStat != null) {
var __MaxStat = _o.MaxStat.ToArray();
_MaxStat = CreateMaxStatVector(builder, __MaxStat);
}
var _DamageFactorGroupId = _o.DamageFactorGroupId == null ? default(StringOffset) : builder.CreateString(_o.DamageFactorGroupId);
return CreateEquipmentStatExcel(
builder,
_o.EquipmentId,
_o.StatLevelUpType,
2024-04-29 15:52:45 +00:00
_StatType,
_MinStat,
_MaxStat,
_o.LevelUpInsertLimit,
_o.LevelUpFeedExp,
_o.LevelUpFeedCostCurrency,
_o.LevelUpFeedCostAmount,
_o.EquipmentCategory,
2024-04-29 15:52:45 +00:00
_o.LevelUpFeedAddExp,
_o.DefaultMaxLevel,
_o.TranscendenceMax,
_DamageFactorGroupId);
}
}
public class EquipmentStatExcelT
{
public long EquipmentId { get; set; }
public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get; set; }
2024-04-29 15:52:45 +00:00
public List<SCHALE.Common.FlatData.EquipmentOptionType> StatType { get; set; }
public List<long> MinStat { get; set; }
public List<long> MaxStat { get; set; }
public int LevelUpInsertLimit { get; set; }
public long LevelUpFeedExp { get; set; }
public SCHALE.Common.FlatData.CurrencyTypes LevelUpFeedCostCurrency { get; set; }
public long LevelUpFeedCostAmount { get; set; }
public SCHALE.Common.FlatData.EquipmentCategory EquipmentCategory { get; set; }
2024-04-29 15:52:45 +00:00
public long LevelUpFeedAddExp { get; set; }
public int DefaultMaxLevel { get; set; }
public int TranscendenceMax { get; set; }
public string DamageFactorGroupId { get; set; }
public EquipmentStatExcelT() {
this.EquipmentId = 0;
this.StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard;
2024-04-29 15:52:45 +00:00
this.StatType = null;
this.MinStat = null;
this.MaxStat = null;
this.LevelUpInsertLimit = 0;
this.LevelUpFeedExp = 0;
this.LevelUpFeedCostCurrency = SCHALE.Common.FlatData.CurrencyTypes.Invalid;
this.LevelUpFeedCostAmount = 0;
this.EquipmentCategory = SCHALE.Common.FlatData.EquipmentCategory.Unable;
2024-04-29 15:52:45 +00:00
this.LevelUpFeedAddExp = 0;
this.DefaultMaxLevel = 0;
this.TranscendenceMax = 0;
this.DamageFactorGroupId = null;
}
2024-04-21 00:21:57 +00:00
}
static public class EquipmentStatExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*EquipmentId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*StatLevelUpType*/, 4 /*SCHALE.Common.FlatData.StatLevelUpType*/, 4, false)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyVectorOfData(tablePos, 8 /*StatType*/, 4 /*SCHALE.Common.FlatData.EquipmentOptionType*/, false)
&& verifier.VerifyVectorOfData(tablePos, 10 /*MinStat*/, 8 /*long*/, false)
&& verifier.VerifyVectorOfData(tablePos, 12 /*MaxStat*/, 8 /*long*/, false)
&& verifier.VerifyField(tablePos, 14 /*LevelUpInsertLimit*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 16 /*LevelUpFeedExp*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 18 /*LevelUpFeedCostCurrency*/, 4 /*SCHALE.Common.FlatData.CurrencyTypes*/, 4, false)
&& verifier.VerifyField(tablePos, 20 /*LevelUpFeedCostAmount*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 22 /*EquipmentCategory*/, 4 /*SCHALE.Common.FlatData.EquipmentCategory*/, 4, false)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyField(tablePos, 24 /*LevelUpFeedAddExp*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 26 /*DefaultMaxLevel*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 28 /*TranscendenceMax*/, 4 /*int*/, 4, false)
&& verifier.VerifyString(tablePos, 30 /*DamageFactorGroupId*/, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}