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 ClanAssistSlotExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static ClanAssistSlotExcel GetRootAsClanAssistSlotExcel(ByteBuffer _bb) { return GetRootAsClanAssistSlotExcel(_bb, new ClanAssistSlotExcel()); }
|
|
|
|
public static ClanAssistSlotExcel GetRootAsClanAssistSlotExcel(ByteBuffer _bb, ClanAssistSlotExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public ClanAssistSlotExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
|
|
|
public long SlotId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
2024-12-29 16:52:25 +00:00
|
|
|
public SCHALE.Common.FlatData.EchelonType EchelonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None_; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public long SlotNumber { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public long AssistTermRewardPeriodFromSec { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public long AssistRewardLimit { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public long AssistRentRewardDailyMaxCount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public long AssistRentalFeeAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
2024-11-08 10:52:05 +00:00
|
|
|
public long AssistRentalFeeAmountStranger { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ClanAssistSlotExcel> CreateClanAssistSlotExcel(FlatBufferBuilder builder,
|
|
|
|
long SlotId = 0,
|
2024-12-29 16:52:25 +00:00
|
|
|
SCHALE.Common.FlatData.EchelonType EchelonType_ = SCHALE.Common.FlatData.EchelonType.None_,
|
2024-04-21 00:21:57 +00:00
|
|
|
long SlotNumber = 0,
|
|
|
|
long AssistTermRewardPeriodFromSec = 0,
|
|
|
|
long AssistRewardLimit = 0,
|
|
|
|
long AssistRentRewardDailyMaxCount = 0,
|
2024-11-08 10:52:05 +00:00
|
|
|
long AssistRentalFeeAmount = 0,
|
|
|
|
long AssistRentalFeeAmountStranger = 0) {
|
|
|
|
builder.StartTable(8);
|
|
|
|
ClanAssistSlotExcel.AddAssistRentalFeeAmountStranger(builder, AssistRentalFeeAmountStranger);
|
2024-04-21 00:21:57 +00:00
|
|
|
ClanAssistSlotExcel.AddAssistRentalFeeAmount(builder, AssistRentalFeeAmount);
|
|
|
|
ClanAssistSlotExcel.AddAssistRentRewardDailyMaxCount(builder, AssistRentRewardDailyMaxCount);
|
|
|
|
ClanAssistSlotExcel.AddAssistRewardLimit(builder, AssistRewardLimit);
|
|
|
|
ClanAssistSlotExcel.AddAssistTermRewardPeriodFromSec(builder, AssistTermRewardPeriodFromSec);
|
|
|
|
ClanAssistSlotExcel.AddSlotNumber(builder, SlotNumber);
|
|
|
|
ClanAssistSlotExcel.AddSlotId(builder, SlotId);
|
2024-11-08 10:52:05 +00:00
|
|
|
ClanAssistSlotExcel.AddEchelonType_(builder, EchelonType_);
|
2024-04-21 00:21:57 +00:00
|
|
|
return ClanAssistSlotExcel.EndClanAssistSlotExcel(builder);
|
|
|
|
}
|
|
|
|
|
2024-11-08 10:52:05 +00:00
|
|
|
public static void StartClanAssistSlotExcel(FlatBufferBuilder builder) { builder.StartTable(8); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddSlotId(FlatBufferBuilder builder, long slotId) { builder.AddLong(0, slotId, 0); }
|
2024-11-08 10:52:05 +00:00
|
|
|
public static void AddEchelonType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonType echelonType_) { builder.AddInt(1, (int)echelonType_, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddSlotNumber(FlatBufferBuilder builder, long slotNumber) { builder.AddLong(2, slotNumber, 0); }
|
|
|
|
public static void AddAssistTermRewardPeriodFromSec(FlatBufferBuilder builder, long assistTermRewardPeriodFromSec) { builder.AddLong(3, assistTermRewardPeriodFromSec, 0); }
|
|
|
|
public static void AddAssistRewardLimit(FlatBufferBuilder builder, long assistRewardLimit) { builder.AddLong(4, assistRewardLimit, 0); }
|
|
|
|
public static void AddAssistRentRewardDailyMaxCount(FlatBufferBuilder builder, long assistRentRewardDailyMaxCount) { builder.AddLong(5, assistRentRewardDailyMaxCount, 0); }
|
|
|
|
public static void AddAssistRentalFeeAmount(FlatBufferBuilder builder, long assistRentalFeeAmount) { builder.AddLong(6, assistRentalFeeAmount, 0); }
|
2024-11-08 10:52:05 +00:00
|
|
|
public static void AddAssistRentalFeeAmountStranger(FlatBufferBuilder builder, long assistRentalFeeAmountStranger) { builder.AddLong(7, assistRentalFeeAmountStranger, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static Offset<SCHALE.Common.FlatData.ClanAssistSlotExcel> EndClanAssistSlotExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.ClanAssistSlotExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public ClanAssistSlotExcelT UnPack() {
|
|
|
|
var _o = new ClanAssistSlotExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(ClanAssistSlotExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("ClanAssistSlot");
|
|
|
|
_o.SlotId = TableEncryptionService.Convert(this.SlotId, key);
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.EchelonType_ = TableEncryptionService.Convert(this.EchelonType_, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.SlotNumber = TableEncryptionService.Convert(this.SlotNumber, key);
|
|
|
|
_o.AssistTermRewardPeriodFromSec = TableEncryptionService.Convert(this.AssistTermRewardPeriodFromSec, key);
|
|
|
|
_o.AssistRewardLimit = TableEncryptionService.Convert(this.AssistRewardLimit, key);
|
|
|
|
_o.AssistRentRewardDailyMaxCount = TableEncryptionService.Convert(this.AssistRentRewardDailyMaxCount, key);
|
|
|
|
_o.AssistRentalFeeAmount = TableEncryptionService.Convert(this.AssistRentalFeeAmount, key);
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.AssistRentalFeeAmountStranger = TableEncryptionService.Convert(this.AssistRentalFeeAmountStranger, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ClanAssistSlotExcel> Pack(FlatBufferBuilder builder, ClanAssistSlotExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.ClanAssistSlotExcel>);
|
|
|
|
return CreateClanAssistSlotExcel(
|
|
|
|
builder,
|
|
|
|
_o.SlotId,
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.EchelonType_,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.SlotNumber,
|
|
|
|
_o.AssistTermRewardPeriodFromSec,
|
|
|
|
_o.AssistRewardLimit,
|
|
|
|
_o.AssistRentRewardDailyMaxCount,
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.AssistRentalFeeAmount,
|
|
|
|
_o.AssistRentalFeeAmountStranger);
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ClanAssistSlotExcelT
|
|
|
|
{
|
|
|
|
public long SlotId { get; set; }
|
2024-11-08 10:52:05 +00:00
|
|
|
public SCHALE.Common.FlatData.EchelonType EchelonType_ { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public long SlotNumber { get; set; }
|
|
|
|
public long AssistTermRewardPeriodFromSec { get; set; }
|
|
|
|
public long AssistRewardLimit { get; set; }
|
|
|
|
public long AssistRentRewardDailyMaxCount { get; set; }
|
|
|
|
public long AssistRentalFeeAmount { get; set; }
|
2024-11-08 10:52:05 +00:00
|
|
|
public long AssistRentalFeeAmountStranger { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
|
|
|
|
public ClanAssistSlotExcelT() {
|
|
|
|
this.SlotId = 0;
|
2024-12-29 16:52:25 +00:00
|
|
|
this.EchelonType_ = SCHALE.Common.FlatData.EchelonType.None_;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.SlotNumber = 0;
|
|
|
|
this.AssistTermRewardPeriodFromSec = 0;
|
|
|
|
this.AssistRewardLimit = 0;
|
|
|
|
this.AssistRentRewardDailyMaxCount = 0;
|
|
|
|
this.AssistRentalFeeAmount = 0;
|
2024-11-08 10:52:05 +00:00
|
|
|
this.AssistRentalFeeAmountStranger = 0;
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class ClanAssistSlotExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
|
|
|
&& verifier.VerifyField(tablePos, 4 /*SlotId*/, 8 /*long*/, 8, false)
|
2024-11-08 10:52:05 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 6 /*EchelonType_*/, 4 /*SCHALE.Common.FlatData.EchelonType*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 8 /*SlotNumber*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 10 /*AssistTermRewardPeriodFromSec*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 12 /*AssistRewardLimit*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 14 /*AssistRentRewardDailyMaxCount*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 16 /*AssistRentalFeeAmount*/, 8 /*long*/, 8, false)
|
2024-11-08 10:52:05 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 18 /*AssistRentalFeeAmountStranger*/, 8 /*long*/, 8, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|