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 CharacterWeaponLevelExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static CharacterWeaponLevelExcel GetRootAsCharacterWeaponLevelExcel(ByteBuffer _bb) { return GetRootAsCharacterWeaponLevelExcel(_bb, new CharacterWeaponLevelExcel()); }
|
|
|
|
public static CharacterWeaponLevelExcel GetRootAsCharacterWeaponLevelExcel(ByteBuffer _bb, CharacterWeaponLevelExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public CharacterWeaponLevelExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
|
|
|
public int Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
|
|
|
public long Exp { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public long TotalExp { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterWeaponLevelExcel> CreateCharacterWeaponLevelExcel(FlatBufferBuilder builder,
|
|
|
|
int Level = 0,
|
|
|
|
long Exp = 0,
|
|
|
|
long TotalExp = 0) {
|
|
|
|
builder.StartTable(3);
|
|
|
|
CharacterWeaponLevelExcel.AddTotalExp(builder, TotalExp);
|
|
|
|
CharacterWeaponLevelExcel.AddExp(builder, Exp);
|
|
|
|
CharacterWeaponLevelExcel.AddLevel(builder, Level);
|
|
|
|
return CharacterWeaponLevelExcel.EndCharacterWeaponLevelExcel(builder);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void StartCharacterWeaponLevelExcel(FlatBufferBuilder builder) { builder.StartTable(3); }
|
|
|
|
public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(0, level, 0); }
|
|
|
|
public static void AddExp(FlatBufferBuilder builder, long exp) { builder.AddLong(1, exp, 0); }
|
|
|
|
public static void AddTotalExp(FlatBufferBuilder builder, long totalExp) { builder.AddLong(2, totalExp, 0); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterWeaponLevelExcel> EndCharacterWeaponLevelExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.CharacterWeaponLevelExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public CharacterWeaponLevelExcelT UnPack() {
|
|
|
|
var _o = new CharacterWeaponLevelExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(CharacterWeaponLevelExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("CharacterWeaponLevel");
|
|
|
|
_o.Level = TableEncryptionService.Convert(this.Level, key);
|
|
|
|
_o.Exp = TableEncryptionService.Convert(this.Exp, key);
|
|
|
|
_o.TotalExp = TableEncryptionService.Convert(this.TotalExp, key);
|
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterWeaponLevelExcel> Pack(FlatBufferBuilder builder, CharacterWeaponLevelExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.CharacterWeaponLevelExcel>);
|
|
|
|
return CreateCharacterWeaponLevelExcel(
|
|
|
|
builder,
|
|
|
|
_o.Level,
|
|
|
|
_o.Exp,
|
|
|
|
_o.TotalExp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class CharacterWeaponLevelExcelT
|
|
|
|
{
|
|
|
|
public int Level { get; set; }
|
|
|
|
public long Exp { get; set; }
|
|
|
|
public long TotalExp { get; set; }
|
|
|
|
|
|
|
|
public CharacterWeaponLevelExcelT() {
|
|
|
|
this.Level = 0;
|
|
|
|
this.Exp = 0;
|
|
|
|
this.TotalExp = 0;
|
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class CharacterWeaponLevelExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
|
|
|
&& verifier.VerifyField(tablePos, 4 /*Level*/, 4 /*int*/, 4, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 6 /*Exp*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 8 /*TotalExp*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|