// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::SCHALE.Common.Crypto; 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; } } 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; } } public int TransSupportStatsFactor { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } 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; } } public static Offset CreateCharacterStatsTransExcel(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType TransSupportStats = SCHALE.Common.FlatData.StatType.None, SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base, int TransSupportStatsFactor = 0, SCHALE.Common.FlatData.StatTransType StatTransType = SCHALE.Common.FlatData.StatTransType.SpecialTransStat) { builder.StartTable(4); CharacterStatsTransExcel.AddStatTransType(builder, StatTransType); CharacterStatsTransExcel.AddTransSupportStatsFactor(builder, TransSupportStatsFactor); CharacterStatsTransExcel.AddEchelonExtensionType(builder, EchelonExtensionType); 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); } public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(1, (int)echelonExtensionType, 0); } public static void AddTransSupportStatsFactor(FlatBufferBuilder builder, int transSupportStatsFactor) { builder.AddInt(2, transSupportStatsFactor, 0); } public static void AddStatTransType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatTransType statTransType) { builder.AddInt(3, (int)statTransType, 0); } public static Offset EndCharacterStatsTransExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } 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); _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); _o.TransSupportStatsFactor = TableEncryptionService.Convert(this.TransSupportStatsFactor, key); _o.StatTransType = TableEncryptionService.Convert(this.StatTransType, key); } public static Offset Pack(FlatBufferBuilder builder, CharacterStatsTransExcelT _o) { if (_o == null) return default(Offset); return CreateCharacterStatsTransExcel( builder, _o.TransSupportStats, _o.EchelonExtensionType, _o.TransSupportStatsFactor, _o.StatTransType); } } public class CharacterStatsTransExcelT { public SCHALE.Common.FlatData.StatType TransSupportStats { get; set; } public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } public int TransSupportStatsFactor { get; set; } public SCHALE.Common.FlatData.StatTransType StatTransType { get; set; } public CharacterStatsTransExcelT() { this.TransSupportStats = SCHALE.Common.FlatData.StatType.None; this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; this.TransSupportStatsFactor = 0; this.StatTransType = SCHALE.Common.FlatData.StatTransType.SpecialTransStat; } } 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) && verifier.VerifyField(tablePos, 6 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) && verifier.VerifyField(tablePos, 8 /*TransSupportStatsFactor*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 10 /*StatTransType*/, 4 /*SCHALE.Common.FlatData.StatTransType*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }