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 CharacterStatsTransExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static CharacterStatsTransExcel GetRootAsCharacterStatsTransExcel(ByteBuffer _bb) { return GetRootAsCharacterStatsTransExcel(_bb, new CharacterStatsTransExcel()); }
|
|
|
|
public static CharacterStatsTransExcel GetRootAsCharacterStatsTransExcel(ByteBuffer _bb, CharacterStatsTransExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public CharacterStatsTransExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
|
|
|
public SCHALE.Common.FlatData.StatType TransSupportStats { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } }
|
2024-11-08 10:52:05 +00:00
|
|
|
public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public int TransSupportStatsFactor { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
2024-11-08 10:52:05 +00:00
|
|
|
public SCHALE.Common.FlatData.StatTransType StatTransType_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StatTransType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatTransType.SpecialTransStat; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterStatsTransExcel> CreateCharacterStatsTransExcel(FlatBufferBuilder builder,
|
|
|
|
SCHALE.Common.FlatData.StatType TransSupportStats = SCHALE.Common.FlatData.StatType.None,
|
2024-11-08 10:52:05 +00:00
|
|
|
SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base,
|
2024-04-21 00:21:57 +00:00
|
|
|
int TransSupportStatsFactor = 0,
|
2024-11-08 10:52:05 +00:00
|
|
|
SCHALE.Common.FlatData.StatTransType StatTransType_ = SCHALE.Common.FlatData.StatTransType.SpecialTransStat) {
|
2024-04-21 00:21:57 +00:00
|
|
|
builder.StartTable(4);
|
2024-11-08 10:52:05 +00:00
|
|
|
CharacterStatsTransExcel.AddStatTransType_(builder, StatTransType_);
|
2024-04-21 00:21:57 +00:00
|
|
|
CharacterStatsTransExcel.AddTransSupportStatsFactor(builder, TransSupportStatsFactor);
|
2024-11-08 10:52:05 +00:00
|
|
|
CharacterStatsTransExcel.AddEchelonExtensionType_(builder, EchelonExtensionType_);
|
2024-04-21 00:21:57 +00:00
|
|
|
CharacterStatsTransExcel.AddTransSupportStats(builder, TransSupportStats);
|
|
|
|
return CharacterStatsTransExcel.EndCharacterStatsTransExcel(builder);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void StartCharacterStatsTransExcel(FlatBufferBuilder builder) { builder.StartTable(4); }
|
|
|
|
public static void AddTransSupportStats(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType transSupportStats) { builder.AddInt(0, (int)transSupportStats, 0); }
|
2024-11-08 10:52:05 +00:00
|
|
|
public static void AddEchelonExtensionType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType_) { builder.AddInt(1, (int)echelonExtensionType_, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddTransSupportStatsFactor(FlatBufferBuilder builder, int transSupportStatsFactor) { builder.AddInt(2, transSupportStatsFactor, 0); }
|
2024-11-08 10:52:05 +00:00
|
|
|
public static void AddStatTransType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatTransType statTransType_) { builder.AddInt(3, (int)statTransType_, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterStatsTransExcel> EndCharacterStatsTransExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.CharacterStatsTransExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public CharacterStatsTransExcelT UnPack() {
|
|
|
|
var _o = new CharacterStatsTransExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(CharacterStatsTransExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("CharacterStatsTrans");
|
|
|
|
_o.TransSupportStats = TableEncryptionService.Convert(this.TransSupportStats, key);
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.EchelonExtensionType_ = TableEncryptionService.Convert(this.EchelonExtensionType_, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.TransSupportStatsFactor = TableEncryptionService.Convert(this.TransSupportStatsFactor, key);
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.StatTransType_ = TableEncryptionService.Convert(this.StatTransType_, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterStatsTransExcel> Pack(FlatBufferBuilder builder, CharacterStatsTransExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.CharacterStatsTransExcel>);
|
|
|
|
return CreateCharacterStatsTransExcel(
|
|
|
|
builder,
|
|
|
|
_o.TransSupportStats,
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.EchelonExtensionType_,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.TransSupportStatsFactor,
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.StatTransType_);
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class CharacterStatsTransExcelT
|
|
|
|
{
|
|
|
|
public SCHALE.Common.FlatData.StatType TransSupportStats { get; set; }
|
2024-11-08 10:52:05 +00:00
|
|
|
public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public int TransSupportStatsFactor { get; set; }
|
2024-11-08 10:52:05 +00:00
|
|
|
public SCHALE.Common.FlatData.StatTransType StatTransType_ { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
|
|
|
|
public CharacterStatsTransExcelT() {
|
|
|
|
this.TransSupportStats = SCHALE.Common.FlatData.StatType.None;
|
2024-11-08 10:52:05 +00:00
|
|
|
this.EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.TransSupportStatsFactor = 0;
|
2024-11-08 10:52:05 +00:00
|
|
|
this.StatTransType_ = SCHALE.Common.FlatData.StatTransType.SpecialTransStat;
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class CharacterStatsTransExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
|
|
|
&& verifier.VerifyField(tablePos, 4 /*TransSupportStats*/, 4 /*SCHALE.Common.FlatData.StatType*/, 4, false)
|
2024-11-08 10:52:05 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 6 /*EchelonExtensionType_*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 8 /*TransSupportStatsFactor*/, 4 /*int*/, 4, false)
|
2024-11-08 10:52:05 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 10 /*StatTransType_*/, 4 /*SCHALE.Common.FlatData.StatTransType*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|