SCHALE.GameServer/SCHALE.Common/FlatData/TerrainAdaptationFactorExce...

81 lines
5.5 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 TerrainAdaptationFactorExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static TerrainAdaptationFactorExcel GetRootAsTerrainAdaptationFactorExcel(ByteBuffer _bb) { return GetRootAsTerrainAdaptationFactorExcel(_bb, new TerrainAdaptationFactorExcel()); }
public static TerrainAdaptationFactorExcel GetRootAsTerrainAdaptationFactorExcel(ByteBuffer _bb, TerrainAdaptationFactorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public TerrainAdaptationFactorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public SCHALE.Common.FlatData.StageTopography TerrainAdaptation { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } }
public SCHALE.Common.FlatData.TerrainAdaptationStat TerrainAdaptationStat { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TerrainAdaptationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TerrainAdaptationStat.D; } }
public long ShotFactor { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long BlockFactor { 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 long DodgeFactor { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long AttackPowerFactor { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public static Offset<SCHALE.Common.FlatData.TerrainAdaptationFactorExcel> CreateTerrainAdaptationFactorExcel(FlatBufferBuilder builder,
SCHALE.Common.FlatData.StageTopography TerrainAdaptation = SCHALE.Common.FlatData.StageTopography.Street,
SCHALE.Common.FlatData.TerrainAdaptationStat TerrainAdaptationStat = SCHALE.Common.FlatData.TerrainAdaptationStat.D,
long ShotFactor = 0,
long BlockFactor = 0,
long AccuracyFactor = 0,
long DodgeFactor = 0,
long AttackPowerFactor = 0) {
builder.StartTable(7);
TerrainAdaptationFactorExcel.AddAttackPowerFactor(builder, AttackPowerFactor);
TerrainAdaptationFactorExcel.AddDodgeFactor(builder, DodgeFactor);
TerrainAdaptationFactorExcel.AddAccuracyFactor(builder, AccuracyFactor);
TerrainAdaptationFactorExcel.AddBlockFactor(builder, BlockFactor);
TerrainAdaptationFactorExcel.AddShotFactor(builder, ShotFactor);
TerrainAdaptationFactorExcel.AddTerrainAdaptationStat(builder, TerrainAdaptationStat);
TerrainAdaptationFactorExcel.AddTerrainAdaptation(builder, TerrainAdaptation);
return TerrainAdaptationFactorExcel.EndTerrainAdaptationFactorExcel(builder);
}
public static void StartTerrainAdaptationFactorExcel(FlatBufferBuilder builder) { builder.StartTable(7); }
public static void AddTerrainAdaptation(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography terrainAdaptation) { builder.AddInt(0, (int)terrainAdaptation, 0); }
public static void AddTerrainAdaptationStat(FlatBufferBuilder builder, SCHALE.Common.FlatData.TerrainAdaptationStat terrainAdaptationStat) { builder.AddInt(1, (int)terrainAdaptationStat, 0); }
public static void AddShotFactor(FlatBufferBuilder builder, long shotFactor) { builder.AddLong(2, shotFactor, 0); }
public static void AddBlockFactor(FlatBufferBuilder builder, long blockFactor) { builder.AddLong(3, blockFactor, 0); }
public static void AddAccuracyFactor(FlatBufferBuilder builder, long accuracyFactor) { builder.AddLong(4, accuracyFactor, 0); }
public static void AddDodgeFactor(FlatBufferBuilder builder, long dodgeFactor) { builder.AddLong(5, dodgeFactor, 0); }
public static void AddAttackPowerFactor(FlatBufferBuilder builder, long attackPowerFactor) { builder.AddLong(6, attackPowerFactor, 0); }
public static Offset<SCHALE.Common.FlatData.TerrainAdaptationFactorExcel> EndTerrainAdaptationFactorExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.TerrainAdaptationFactorExcel>(o);
}
}
static public class TerrainAdaptationFactorExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*TerrainAdaptation*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false)
&& verifier.VerifyField(tablePos, 6 /*TerrainAdaptationStat*/, 4 /*SCHALE.Common.FlatData.TerrainAdaptationStat*/, 4, false)
&& verifier.VerifyField(tablePos, 8 /*ShotFactor*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 10 /*BlockFactor*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 12 /*AccuracyFactor*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 14 /*DodgeFactor*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 16 /*AttackPowerFactor*/, 8 /*long*/, 8, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}