SCHALE.GameServer/SCHALE.Common/FlatData/EliminateRaidStageRewardExc...

137 lines
8.6 KiB
C#
Raw Permalink 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;
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 EliminateRaidStageRewardExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static EliminateRaidStageRewardExcel GetRootAsEliminateRaidStageRewardExcel(ByteBuffer _bb) { return GetRootAsEliminateRaidStageRewardExcel(_bb, new EliminateRaidStageRewardExcel()); }
public static EliminateRaidStageRewardExcel GetRootAsEliminateRaidStageRewardExcel(ByteBuffer _bb, EliminateRaidStageRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public EliminateRaidStageRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public bool IsClearStageRewardHideInfo { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
public long ClearStageRewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } }
2024-04-21 00:21:57 +00:00
public long ClearStageRewardParcelUniqueID { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public string ClearStageRewardParcelUniqueName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetClearStageRewardParcelUniqueNameBytes() { return __p.__vector_as_span<byte>(14, 1); }
#else
public ArraySegment<byte>? GetClearStageRewardParcelUniqueNameBytes() { return __p.__vector_as_arraysegment(14); }
#endif
public byte[] GetClearStageRewardParcelUniqueNameArray() { return __p.__vector_as_array<byte>(14); }
public long ClearStageRewardAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public static Offset<SCHALE.Common.FlatData.EliminateRaidStageRewardExcel> CreateEliminateRaidStageRewardExcel(FlatBufferBuilder builder,
long GroupId = 0,
bool IsClearStageRewardHideInfo = false,
long ClearStageRewardProb = 0,
SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None,
2024-04-21 00:21:57 +00:00
long ClearStageRewardParcelUniqueID = 0,
StringOffset ClearStageRewardParcelUniqueNameOffset = default(StringOffset),
long ClearStageRewardAmount = 0) {
builder.StartTable(7);
EliminateRaidStageRewardExcel.AddClearStageRewardAmount(builder, ClearStageRewardAmount);
EliminateRaidStageRewardExcel.AddClearStageRewardParcelUniqueID(builder, ClearStageRewardParcelUniqueID);
EliminateRaidStageRewardExcel.AddClearStageRewardProb(builder, ClearStageRewardProb);
EliminateRaidStageRewardExcel.AddGroupId(builder, GroupId);
EliminateRaidStageRewardExcel.AddClearStageRewardParcelUniqueName(builder, ClearStageRewardParcelUniqueNameOffset);
EliminateRaidStageRewardExcel.AddClearStageRewardParcelType(builder, ClearStageRewardParcelType);
EliminateRaidStageRewardExcel.AddIsClearStageRewardHideInfo(builder, IsClearStageRewardHideInfo);
return EliminateRaidStageRewardExcel.EndEliminateRaidStageRewardExcel(builder);
}
public static void StartEliminateRaidStageRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); }
public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); }
public static void AddIsClearStageRewardHideInfo(FlatBufferBuilder builder, bool isClearStageRewardHideInfo) { builder.AddBool(1, isClearStageRewardHideInfo, false); }
public static void AddClearStageRewardProb(FlatBufferBuilder builder, long clearStageRewardProb) { builder.AddLong(2, clearStageRewardProb, 0); }
public static void AddClearStageRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType clearStageRewardParcelType) { builder.AddInt(3, (int)clearStageRewardParcelType, 0); }
public static void AddClearStageRewardParcelUniqueID(FlatBufferBuilder builder, long clearStageRewardParcelUniqueID) { builder.AddLong(4, clearStageRewardParcelUniqueID, 0); }
public static void AddClearStageRewardParcelUniqueName(FlatBufferBuilder builder, StringOffset clearStageRewardParcelUniqueNameOffset) { builder.AddOffset(5, clearStageRewardParcelUniqueNameOffset.Value, 0); }
public static void AddClearStageRewardAmount(FlatBufferBuilder builder, long clearStageRewardAmount) { builder.AddLong(6, clearStageRewardAmount, 0); }
public static Offset<SCHALE.Common.FlatData.EliminateRaidStageRewardExcel> EndEliminateRaidStageRewardExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.EliminateRaidStageRewardExcel>(o);
}
2024-04-29 15:52:45 +00:00
public EliminateRaidStageRewardExcelT UnPack() {
var _o = new EliminateRaidStageRewardExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(EliminateRaidStageRewardExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("EliminateRaidStageReward");
_o.GroupId = TableEncryptionService.Convert(this.GroupId, key);
_o.IsClearStageRewardHideInfo = TableEncryptionService.Convert(this.IsClearStageRewardHideInfo, key);
_o.ClearStageRewardProb = TableEncryptionService.Convert(this.ClearStageRewardProb, key);
_o.ClearStageRewardParcelType = TableEncryptionService.Convert(this.ClearStageRewardParcelType, key);
_o.ClearStageRewardParcelUniqueID = TableEncryptionService.Convert(this.ClearStageRewardParcelUniqueID, key);
_o.ClearStageRewardParcelUniqueName = TableEncryptionService.Convert(this.ClearStageRewardParcelUniqueName, key);
_o.ClearStageRewardAmount = TableEncryptionService.Convert(this.ClearStageRewardAmount, key);
}
public static Offset<SCHALE.Common.FlatData.EliminateRaidStageRewardExcel> Pack(FlatBufferBuilder builder, EliminateRaidStageRewardExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.EliminateRaidStageRewardExcel>);
var _ClearStageRewardParcelUniqueName = _o.ClearStageRewardParcelUniqueName == null ? default(StringOffset) : builder.CreateString(_o.ClearStageRewardParcelUniqueName);
return CreateEliminateRaidStageRewardExcel(
builder,
_o.GroupId,
_o.IsClearStageRewardHideInfo,
_o.ClearStageRewardProb,
_o.ClearStageRewardParcelType,
_o.ClearStageRewardParcelUniqueID,
_ClearStageRewardParcelUniqueName,
_o.ClearStageRewardAmount);
}
}
public class EliminateRaidStageRewardExcelT
{
public long GroupId { get; set; }
public bool IsClearStageRewardHideInfo { get; set; }
public long ClearStageRewardProb { get; set; }
public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get; set; }
public long ClearStageRewardParcelUniqueID { get; set; }
public string ClearStageRewardParcelUniqueName { get; set; }
public long ClearStageRewardAmount { get; set; }
public EliminateRaidStageRewardExcelT() {
this.GroupId = 0;
this.IsClearStageRewardHideInfo = false;
this.ClearStageRewardProb = 0;
this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None;
2024-04-29 15:52:45 +00:00
this.ClearStageRewardParcelUniqueID = 0;
this.ClearStageRewardParcelUniqueName = null;
this.ClearStageRewardAmount = 0;
}
2024-04-21 00:21:57 +00:00
}
static public class EliminateRaidStageRewardExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*IsClearStageRewardHideInfo*/, 1 /*bool*/, 1, false)
&& verifier.VerifyField(tablePos, 8 /*ClearStageRewardProb*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 10 /*ClearStageRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
&& verifier.VerifyField(tablePos, 12 /*ClearStageRewardParcelUniqueID*/, 8 /*long*/, 8, false)
&& verifier.VerifyString(tablePos, 14 /*ClearStageRewardParcelUniqueName*/, false)
&& verifier.VerifyField(tablePos, 16 /*ClearStageRewardAmount*/, 8 /*long*/, 8, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}