//
// 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 TacticTimeAttackSimulatorConfigExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static TacticTimeAttackSimulatorConfigExcel GetRootAsTacticTimeAttackSimulatorConfigExcel(ByteBuffer _bb) { return GetRootAsTacticTimeAttackSimulatorConfigExcel(_bb, new TacticTimeAttackSimulatorConfigExcel()); }
public static TacticTimeAttackSimulatorConfigExcel GetRootAsTacticTimeAttackSimulatorConfigExcel(ByteBuffer _bb, TacticTimeAttackSimulatorConfigExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public TacticTimeAttackSimulatorConfigExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long Order { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long Repeat { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long PresetGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long AttackStrikerNum { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long AttackSpecialNum { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long GeasId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public static Offset CreateTacticTimeAttackSimulatorConfigExcel(FlatBufferBuilder builder,
long Order = 0,
long Repeat = 0,
long PresetGroupId = 0,
long AttackStrikerNum = 0,
long AttackSpecialNum = 0,
long GeasId = 0) {
builder.StartTable(6);
TacticTimeAttackSimulatorConfigExcel.AddGeasId(builder, GeasId);
TacticTimeAttackSimulatorConfigExcel.AddAttackSpecialNum(builder, AttackSpecialNum);
TacticTimeAttackSimulatorConfigExcel.AddAttackStrikerNum(builder, AttackStrikerNum);
TacticTimeAttackSimulatorConfigExcel.AddPresetGroupId(builder, PresetGroupId);
TacticTimeAttackSimulatorConfigExcel.AddRepeat(builder, Repeat);
TacticTimeAttackSimulatorConfigExcel.AddOrder(builder, Order);
return TacticTimeAttackSimulatorConfigExcel.EndTacticTimeAttackSimulatorConfigExcel(builder);
}
public static void StartTacticTimeAttackSimulatorConfigExcel(FlatBufferBuilder builder) { builder.StartTable(6); }
public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(0, order, 0); }
public static void AddRepeat(FlatBufferBuilder builder, long repeat) { builder.AddLong(1, repeat, 0); }
public static void AddPresetGroupId(FlatBufferBuilder builder, long presetGroupId) { builder.AddLong(2, presetGroupId, 0); }
public static void AddAttackStrikerNum(FlatBufferBuilder builder, long attackStrikerNum) { builder.AddLong(3, attackStrikerNum, 0); }
public static void AddAttackSpecialNum(FlatBufferBuilder builder, long attackSpecialNum) { builder.AddLong(4, attackSpecialNum, 0); }
public static void AddGeasId(FlatBufferBuilder builder, long geasId) { builder.AddLong(5, geasId, 0); }
public static Offset EndTacticTimeAttackSimulatorConfigExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset(o);
}
public TacticTimeAttackSimulatorConfigExcelT UnPack() {
var _o = new TacticTimeAttackSimulatorConfigExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(TacticTimeAttackSimulatorConfigExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("TacticTimeAttackSimulatorConfig");
_o.Order = TableEncryptionService.Convert(this.Order, key);
_o.Repeat = TableEncryptionService.Convert(this.Repeat, key);
_o.PresetGroupId = TableEncryptionService.Convert(this.PresetGroupId, key);
_o.AttackStrikerNum = TableEncryptionService.Convert(this.AttackStrikerNum, key);
_o.AttackSpecialNum = TableEncryptionService.Convert(this.AttackSpecialNum, key);
_o.GeasId = TableEncryptionService.Convert(this.GeasId, key);
}
public static Offset Pack(FlatBufferBuilder builder, TacticTimeAttackSimulatorConfigExcelT _o) {
if (_o == null) return default(Offset);
return CreateTacticTimeAttackSimulatorConfigExcel(
builder,
_o.Order,
_o.Repeat,
_o.PresetGroupId,
_o.AttackStrikerNum,
_o.AttackSpecialNum,
_o.GeasId);
}
}
public class TacticTimeAttackSimulatorConfigExcelT
{
public long Order { get; set; }
public long Repeat { get; set; }
public long PresetGroupId { get; set; }
public long AttackStrikerNum { get; set; }
public long AttackSpecialNum { get; set; }
public long GeasId { get; set; }
public TacticTimeAttackSimulatorConfigExcelT() {
this.Order = 0;
this.Repeat = 0;
this.PresetGroupId = 0;
this.AttackStrikerNum = 0;
this.AttackSpecialNum = 0;
this.GeasId = 0;
}
}
static public class TacticTimeAttackSimulatorConfigExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*Order*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*Repeat*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 8 /*PresetGroupId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 10 /*AttackStrikerNum*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 12 /*AttackSpecialNum*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 14 /*GeasId*/, 8 /*long*/, 8, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}