SCHALE.GameServer/SCHALE.Common/FlatData/CharacterLevelStatFactorExc...

71 lines
4.0 KiB
C#
Raw 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;
using global::Google.FlatBuffers;
public struct CharacterLevelStatFactorExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static CharacterLevelStatFactorExcel GetRootAsCharacterLevelStatFactorExcel(ByteBuffer _bb) { return GetRootAsCharacterLevelStatFactorExcel(_bb, new CharacterLevelStatFactorExcel()); }
public static CharacterLevelStatFactorExcel GetRootAsCharacterLevelStatFactorExcel(ByteBuffer _bb, CharacterLevelStatFactorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public CharacterLevelStatFactorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long CriticalFactor { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long StabilityFactor { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long DefenceFactor { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long AccuracyFactor { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public static Offset<SCHALE.Common.FlatData.CharacterLevelStatFactorExcel> CreateCharacterLevelStatFactorExcel(FlatBufferBuilder builder,
long Level = 0,
long CriticalFactor = 0,
long StabilityFactor = 0,
long DefenceFactor = 0,
long AccuracyFactor = 0) {
builder.StartTable(5);
CharacterLevelStatFactorExcel.AddAccuracyFactor(builder, AccuracyFactor);
CharacterLevelStatFactorExcel.AddDefenceFactor(builder, DefenceFactor);
CharacterLevelStatFactorExcel.AddStabilityFactor(builder, StabilityFactor);
CharacterLevelStatFactorExcel.AddCriticalFactor(builder, CriticalFactor);
CharacterLevelStatFactorExcel.AddLevel(builder, Level);
return CharacterLevelStatFactorExcel.EndCharacterLevelStatFactorExcel(builder);
}
public static void StartCharacterLevelStatFactorExcel(FlatBufferBuilder builder) { builder.StartTable(5); }
public static void AddLevel(FlatBufferBuilder builder, long level) { builder.AddLong(0, level, 0); }
public static void AddCriticalFactor(FlatBufferBuilder builder, long criticalFactor) { builder.AddLong(1, criticalFactor, 0); }
public static void AddStabilityFactor(FlatBufferBuilder builder, long stabilityFactor) { builder.AddLong(2, stabilityFactor, 0); }
public static void AddDefenceFactor(FlatBufferBuilder builder, long defenceFactor) { builder.AddLong(3, defenceFactor, 0); }
public static void AddAccuracyFactor(FlatBufferBuilder builder, long accuracyFactor) { builder.AddLong(4, accuracyFactor, 0); }
public static Offset<SCHALE.Common.FlatData.CharacterLevelStatFactorExcel> EndCharacterLevelStatFactorExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.CharacterLevelStatFactorExcel>(o);
}
}
static public class CharacterLevelStatFactorExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*Level*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*CriticalFactor*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 8 /*StabilityFactor*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 10 /*DefenceFactor*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 12 /*AccuracyFactor*/, 8 /*long*/, 8, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}