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 EventContentCurrencyItemExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static EventContentCurrencyItemExcel GetRootAsEventContentCurrencyItemExcel(ByteBuffer _bb) { return GetRootAsEventContentCurrencyItemExcel(_bb, new EventContentCurrencyItemExcel()); }
|
|
|
|
public static EventContentCurrencyItemExcel GetRootAsEventContentCurrencyItemExcel(ByteBuffer _bb, EventContentCurrencyItemExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public EventContentCurrencyItemExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
|
|
|
public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
2024-12-30 22:20:43 +00:00
|
|
|
public SCHALE.Common.FlatData.EventContentItemType EventContentItemType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EventContentItemType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentItemType.EventPoint; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public long ItemUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.EventContentCurrencyItemExcel> CreateEventContentCurrencyItemExcel(FlatBufferBuilder builder,
|
|
|
|
long EventContentId = 0,
|
2024-12-30 22:20:43 +00:00
|
|
|
SCHALE.Common.FlatData.EventContentItemType EventContentItemType = SCHALE.Common.FlatData.EventContentItemType.EventPoint,
|
2024-04-21 00:21:57 +00:00
|
|
|
long ItemUniqueId = 0) {
|
|
|
|
builder.StartTable(3);
|
|
|
|
EventContentCurrencyItemExcel.AddItemUniqueId(builder, ItemUniqueId);
|
|
|
|
EventContentCurrencyItemExcel.AddEventContentId(builder, EventContentId);
|
2024-12-30 22:20:43 +00:00
|
|
|
EventContentCurrencyItemExcel.AddEventContentItemType(builder, EventContentItemType);
|
2024-04-21 00:21:57 +00:00
|
|
|
return EventContentCurrencyItemExcel.EndEventContentCurrencyItemExcel(builder);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void StartEventContentCurrencyItemExcel(FlatBufferBuilder builder) { builder.StartTable(3); }
|
|
|
|
public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); }
|
2024-12-30 22:20:43 +00:00
|
|
|
public static void AddEventContentItemType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentItemType eventContentItemType) { builder.AddInt(1, (int)eventContentItemType, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddItemUniqueId(FlatBufferBuilder builder, long itemUniqueId) { builder.AddLong(2, itemUniqueId, 0); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.EventContentCurrencyItemExcel> EndEventContentCurrencyItemExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.EventContentCurrencyItemExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public EventContentCurrencyItemExcelT UnPack() {
|
|
|
|
var _o = new EventContentCurrencyItemExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(EventContentCurrencyItemExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("EventContentCurrencyItem");
|
|
|
|
_o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key);
|
2024-12-30 22:20:43 +00:00
|
|
|
_o.EventContentItemType = TableEncryptionService.Convert(this.EventContentItemType, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.ItemUniqueId = TableEncryptionService.Convert(this.ItemUniqueId, key);
|
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.EventContentCurrencyItemExcel> Pack(FlatBufferBuilder builder, EventContentCurrencyItemExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.EventContentCurrencyItemExcel>);
|
|
|
|
return CreateEventContentCurrencyItemExcel(
|
|
|
|
builder,
|
|
|
|
_o.EventContentId,
|
2024-12-30 22:20:43 +00:00
|
|
|
_o.EventContentItemType,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.ItemUniqueId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class EventContentCurrencyItemExcelT
|
|
|
|
{
|
|
|
|
public long EventContentId { get; set; }
|
2024-12-30 22:20:43 +00:00
|
|
|
public SCHALE.Common.FlatData.EventContentItemType EventContentItemType { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public long ItemUniqueId { get; set; }
|
|
|
|
|
|
|
|
public EventContentCurrencyItemExcelT() {
|
|
|
|
this.EventContentId = 0;
|
2024-12-30 22:20:43 +00:00
|
|
|
this.EventContentItemType = SCHALE.Common.FlatData.EventContentItemType.EventPoint;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.ItemUniqueId = 0;
|
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class EventContentCurrencyItemExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
|
|
|
&& verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false)
|
2024-12-30 22:20:43 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 6 /*EventContentItemType*/, 4 /*SCHALE.Common.FlatData.EventContentItemType*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 8 /*ItemUniqueId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|