// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::Google.FlatBuffers; public struct PresetCharacterGroupExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static PresetCharacterGroupExcel GetRootAsPresetCharacterGroupExcel(ByteBuffer _bb) { return GetRootAsPresetCharacterGroupExcel(_bb, new PresetCharacterGroupExcel()); } public static PresetCharacterGroupExcel GetRootAsPresetCharacterGroupExcel(ByteBuffer _bb, PresetCharacterGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public PresetCharacterGroupExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long PresetCharacterGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string GetPresetType { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetGetPresetTypeBytes() { return __p.__vector_as_span(6, 1); } #else public ArraySegment? GetGetPresetTypeBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetGetPresetTypeArray() { return __p.__vector_as_array(6); } public int Level { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int Exp { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int FavorExp { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int FavorRank { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int StarGrade { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int ExSkillLevel { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int PassiveSkillLevel { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int ExtraPassiveSkillLevel { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int CommonSkillLevel { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int LeaderSkillLevel { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool EquipSlot01 { get { int o = __p.__offset(28); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int EquipSlotTier01 { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int EquipSlotLevel01 { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool EquipSlot02 { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int EquipSlotTier02 { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int EquipSlotLevel02 { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool EquipSlot03 { get { int o = __p.__offset(40); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int EquipSlotTier03 { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int EquipSlotLevel03 { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool EquipCharacterWeapon { get { int o = __p.__offset(46); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int EquipCharacterWeaponTier { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int EquipCharacterWeaponLevel { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool EquipCharacterGear { get { int o = __p.__offset(52); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int EquipCharacterGearTier { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int EquipCharacterGearLevel { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.StatType PotentialType01 { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } public int PotentialLevel01 { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.StatType PotentialType02 { get { int o = __p.__offset(62); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } public int PotentialLevel02 { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.StatType PotentialType03 { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } public int PotentialLevel03 { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreatePresetCharacterGroupExcel(FlatBufferBuilder builder, long PresetCharacterGroupId = 0, StringOffset GetPresetTypeOffset = default(StringOffset), int Level = 0, int Exp = 0, int FavorExp = 0, int FavorRank = 0, int StarGrade = 0, int ExSkillLevel = 0, int PassiveSkillLevel = 0, int ExtraPassiveSkillLevel = 0, int CommonSkillLevel = 0, int LeaderSkillLevel = 0, bool EquipSlot01 = false, int EquipSlotTier01 = 0, int EquipSlotLevel01 = 0, bool EquipSlot02 = false, int EquipSlotTier02 = 0, int EquipSlotLevel02 = 0, bool EquipSlot03 = false, int EquipSlotTier03 = 0, int EquipSlotLevel03 = 0, bool EquipCharacterWeapon = false, int EquipCharacterWeaponTier = 0, int EquipCharacterWeaponLevel = 0, bool EquipCharacterGear = false, int EquipCharacterGearTier = 0, int EquipCharacterGearLevel = 0, SCHALE.Common.FlatData.StatType PotentialType01 = SCHALE.Common.FlatData.StatType.None, int PotentialLevel01 = 0, SCHALE.Common.FlatData.StatType PotentialType02 = SCHALE.Common.FlatData.StatType.None, int PotentialLevel02 = 0, SCHALE.Common.FlatData.StatType PotentialType03 = SCHALE.Common.FlatData.StatType.None, int PotentialLevel03 = 0) { builder.StartTable(33); PresetCharacterGroupExcel.AddPresetCharacterGroupId(builder, PresetCharacterGroupId); PresetCharacterGroupExcel.AddPotentialLevel03(builder, PotentialLevel03); PresetCharacterGroupExcel.AddPotentialType03(builder, PotentialType03); PresetCharacterGroupExcel.AddPotentialLevel02(builder, PotentialLevel02); PresetCharacterGroupExcel.AddPotentialType02(builder, PotentialType02); PresetCharacterGroupExcel.AddPotentialLevel01(builder, PotentialLevel01); PresetCharacterGroupExcel.AddPotentialType01(builder, PotentialType01); PresetCharacterGroupExcel.AddEquipCharacterGearLevel(builder, EquipCharacterGearLevel); PresetCharacterGroupExcel.AddEquipCharacterGearTier(builder, EquipCharacterGearTier); PresetCharacterGroupExcel.AddEquipCharacterWeaponLevel(builder, EquipCharacterWeaponLevel); PresetCharacterGroupExcel.AddEquipCharacterWeaponTier(builder, EquipCharacterWeaponTier); PresetCharacterGroupExcel.AddEquipSlotLevel03(builder, EquipSlotLevel03); PresetCharacterGroupExcel.AddEquipSlotTier03(builder, EquipSlotTier03); PresetCharacterGroupExcel.AddEquipSlotLevel02(builder, EquipSlotLevel02); PresetCharacterGroupExcel.AddEquipSlotTier02(builder, EquipSlotTier02); PresetCharacterGroupExcel.AddEquipSlotLevel01(builder, EquipSlotLevel01); PresetCharacterGroupExcel.AddEquipSlotTier01(builder, EquipSlotTier01); PresetCharacterGroupExcel.AddLeaderSkillLevel(builder, LeaderSkillLevel); PresetCharacterGroupExcel.AddCommonSkillLevel(builder, CommonSkillLevel); PresetCharacterGroupExcel.AddExtraPassiveSkillLevel(builder, ExtraPassiveSkillLevel); PresetCharacterGroupExcel.AddPassiveSkillLevel(builder, PassiveSkillLevel); PresetCharacterGroupExcel.AddExSkillLevel(builder, ExSkillLevel); PresetCharacterGroupExcel.AddStarGrade(builder, StarGrade); PresetCharacterGroupExcel.AddFavorRank(builder, FavorRank); PresetCharacterGroupExcel.AddFavorExp(builder, FavorExp); PresetCharacterGroupExcel.AddExp(builder, Exp); PresetCharacterGroupExcel.AddLevel(builder, Level); PresetCharacterGroupExcel.AddGetPresetType(builder, GetPresetTypeOffset); PresetCharacterGroupExcel.AddEquipCharacterGear(builder, EquipCharacterGear); PresetCharacterGroupExcel.AddEquipCharacterWeapon(builder, EquipCharacterWeapon); PresetCharacterGroupExcel.AddEquipSlot03(builder, EquipSlot03); PresetCharacterGroupExcel.AddEquipSlot02(builder, EquipSlot02); PresetCharacterGroupExcel.AddEquipSlot01(builder, EquipSlot01); return PresetCharacterGroupExcel.EndPresetCharacterGroupExcel(builder); } public static void StartPresetCharacterGroupExcel(FlatBufferBuilder builder) { builder.StartTable(33); } public static void AddPresetCharacterGroupId(FlatBufferBuilder builder, long presetCharacterGroupId) { builder.AddLong(0, presetCharacterGroupId, 0); } public static void AddGetPresetType(FlatBufferBuilder builder, StringOffset getPresetTypeOffset) { builder.AddOffset(1, getPresetTypeOffset.Value, 0); } public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(2, level, 0); } public static void AddExp(FlatBufferBuilder builder, int exp) { builder.AddInt(3, exp, 0); } public static void AddFavorExp(FlatBufferBuilder builder, int favorExp) { builder.AddInt(4, favorExp, 0); } public static void AddFavorRank(FlatBufferBuilder builder, int favorRank) { builder.AddInt(5, favorRank, 0); } public static void AddStarGrade(FlatBufferBuilder builder, int starGrade) { builder.AddInt(6, starGrade, 0); } public static void AddExSkillLevel(FlatBufferBuilder builder, int exSkillLevel) { builder.AddInt(7, exSkillLevel, 0); } public static void AddPassiveSkillLevel(FlatBufferBuilder builder, int passiveSkillLevel) { builder.AddInt(8, passiveSkillLevel, 0); } public static void AddExtraPassiveSkillLevel(FlatBufferBuilder builder, int extraPassiveSkillLevel) { builder.AddInt(9, extraPassiveSkillLevel, 0); } public static void AddCommonSkillLevel(FlatBufferBuilder builder, int commonSkillLevel) { builder.AddInt(10, commonSkillLevel, 0); } public static void AddLeaderSkillLevel(FlatBufferBuilder builder, int leaderSkillLevel) { builder.AddInt(11, leaderSkillLevel, 0); } public static void AddEquipSlot01(FlatBufferBuilder builder, bool equipSlot01) { builder.AddBool(12, equipSlot01, false); } public static void AddEquipSlotTier01(FlatBufferBuilder builder, int equipSlotTier01) { builder.AddInt(13, equipSlotTier01, 0); } public static void AddEquipSlotLevel01(FlatBufferBuilder builder, int equipSlotLevel01) { builder.AddInt(14, equipSlotLevel01, 0); } public static void AddEquipSlot02(FlatBufferBuilder builder, bool equipSlot02) { builder.AddBool(15, equipSlot02, false); } public static void AddEquipSlotTier02(FlatBufferBuilder builder, int equipSlotTier02) { builder.AddInt(16, equipSlotTier02, 0); } public static void AddEquipSlotLevel02(FlatBufferBuilder builder, int equipSlotLevel02) { builder.AddInt(17, equipSlotLevel02, 0); } public static void AddEquipSlot03(FlatBufferBuilder builder, bool equipSlot03) { builder.AddBool(18, equipSlot03, false); } public static void AddEquipSlotTier03(FlatBufferBuilder builder, int equipSlotTier03) { builder.AddInt(19, equipSlotTier03, 0); } public static void AddEquipSlotLevel03(FlatBufferBuilder builder, int equipSlotLevel03) { builder.AddInt(20, equipSlotLevel03, 0); } public static void AddEquipCharacterWeapon(FlatBufferBuilder builder, bool equipCharacterWeapon) { builder.AddBool(21, equipCharacterWeapon, false); } public static void AddEquipCharacterWeaponTier(FlatBufferBuilder builder, int equipCharacterWeaponTier) { builder.AddInt(22, equipCharacterWeaponTier, 0); } public static void AddEquipCharacterWeaponLevel(FlatBufferBuilder builder, int equipCharacterWeaponLevel) { builder.AddInt(23, equipCharacterWeaponLevel, 0); } public static void AddEquipCharacterGear(FlatBufferBuilder builder, bool equipCharacterGear) { builder.AddBool(24, equipCharacterGear, false); } public static void AddEquipCharacterGearTier(FlatBufferBuilder builder, int equipCharacterGearTier) { builder.AddInt(25, equipCharacterGearTier, 0); } public static void AddEquipCharacterGearLevel(FlatBufferBuilder builder, int equipCharacterGearLevel) { builder.AddInt(26, equipCharacterGearLevel, 0); } public static void AddPotentialType01(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType potentialType01) { builder.AddInt(27, (int)potentialType01, 0); } public static void AddPotentialLevel01(FlatBufferBuilder builder, int potentialLevel01) { builder.AddInt(28, potentialLevel01, 0); } public static void AddPotentialType02(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType potentialType02) { builder.AddInt(29, (int)potentialType02, 0); } public static void AddPotentialLevel02(FlatBufferBuilder builder, int potentialLevel02) { builder.AddInt(30, potentialLevel02, 0); } public static void AddPotentialType03(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType potentialType03) { builder.AddInt(31, (int)potentialType03, 0); } public static void AddPotentialLevel03(FlatBufferBuilder builder, int potentialLevel03) { builder.AddInt(32, potentialLevel03, 0); } public static Offset EndPresetCharacterGroupExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class PresetCharacterGroupExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*PresetCharacterGroupId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 6 /*GetPresetType*/, false) && verifier.VerifyField(tablePos, 8 /*Level*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 10 /*Exp*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 12 /*FavorExp*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 14 /*FavorRank*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 16 /*StarGrade*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 18 /*ExSkillLevel*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 20 /*PassiveSkillLevel*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 22 /*ExtraPassiveSkillLevel*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 24 /*CommonSkillLevel*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 26 /*LeaderSkillLevel*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 28 /*EquipSlot01*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 30 /*EquipSlotTier01*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 32 /*EquipSlotLevel01*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 34 /*EquipSlot02*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 36 /*EquipSlotTier02*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 38 /*EquipSlotLevel02*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 40 /*EquipSlot03*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 42 /*EquipSlotTier03*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 44 /*EquipSlotLevel03*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 46 /*EquipCharacterWeapon*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 48 /*EquipCharacterWeaponTier*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 50 /*EquipCharacterWeaponLevel*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 52 /*EquipCharacterGear*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 54 /*EquipCharacterGearTier*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 56 /*EquipCharacterGearLevel*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 58 /*PotentialType01*/, 4 /*SCHALE.Common.FlatData.StatType*/, 4, false) && verifier.VerifyField(tablePos, 60 /*PotentialLevel01*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 62 /*PotentialType02*/, 4 /*SCHALE.Common.FlatData.StatType*/, 4, false) && verifier.VerifyField(tablePos, 64 /*PotentialLevel02*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 66 /*PotentialType03*/, 4 /*SCHALE.Common.FlatData.StatType*/, 4, false) && verifier.VerifyField(tablePos, 68 /*PotentialLevel03*/, 4 /*int*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }