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 MinigameTBGVoiceExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static MinigameTBGVoiceExcel GetRootAsMinigameTBGVoiceExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGVoiceExcel(_bb, new MinigameTBGVoiceExcel()); }
|
|
|
|
public static MinigameTBGVoiceExcel GetRootAsMinigameTBGVoiceExcel(ByteBuffer _bb, MinigameTBGVoiceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public MinigameTBGVoiceExcel __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; } }
|
|
|
|
public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public SCHALE.Common.FlatData.TBGVoiceCondition VoiceCondition { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGVoiceCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGVoiceCondition.None; } }
|
|
|
|
public uint VoiceId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.MinigameTBGVoiceExcel> CreateMinigameTBGVoiceExcel(FlatBufferBuilder builder,
|
|
|
|
long EventContentId = 0,
|
|
|
|
long UniqueId = 0,
|
|
|
|
SCHALE.Common.FlatData.TBGVoiceCondition VoiceCondition = SCHALE.Common.FlatData.TBGVoiceCondition.None,
|
|
|
|
uint VoiceId = 0) {
|
|
|
|
builder.StartTable(4);
|
|
|
|
MinigameTBGVoiceExcel.AddUniqueId(builder, UniqueId);
|
|
|
|
MinigameTBGVoiceExcel.AddEventContentId(builder, EventContentId);
|
|
|
|
MinigameTBGVoiceExcel.AddVoiceId(builder, VoiceId);
|
|
|
|
MinigameTBGVoiceExcel.AddVoiceCondition(builder, VoiceCondition);
|
|
|
|
return MinigameTBGVoiceExcel.EndMinigameTBGVoiceExcel(builder);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void StartMinigameTBGVoiceExcel(FlatBufferBuilder builder) { builder.StartTable(4); }
|
|
|
|
public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); }
|
|
|
|
public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(1, uniqueId, 0); }
|
|
|
|
public static void AddVoiceCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGVoiceCondition voiceCondition) { builder.AddInt(2, (int)voiceCondition, 0); }
|
|
|
|
public static void AddVoiceId(FlatBufferBuilder builder, uint voiceId) { builder.AddUint(3, voiceId, 0); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.MinigameTBGVoiceExcel> EndMinigameTBGVoiceExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.MinigameTBGVoiceExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public MinigameTBGVoiceExcelT UnPack() {
|
|
|
|
var _o = new MinigameTBGVoiceExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(MinigameTBGVoiceExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("MinigameTBGVoice");
|
|
|
|
_o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key);
|
|
|
|
_o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key);
|
|
|
|
_o.VoiceCondition = TableEncryptionService.Convert(this.VoiceCondition, key);
|
|
|
|
_o.VoiceId = TableEncryptionService.Convert(this.VoiceId, key);
|
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.MinigameTBGVoiceExcel> Pack(FlatBufferBuilder builder, MinigameTBGVoiceExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.MinigameTBGVoiceExcel>);
|
|
|
|
return CreateMinigameTBGVoiceExcel(
|
|
|
|
builder,
|
|
|
|
_o.EventContentId,
|
|
|
|
_o.UniqueId,
|
|
|
|
_o.VoiceCondition,
|
|
|
|
_o.VoiceId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class MinigameTBGVoiceExcelT
|
|
|
|
{
|
|
|
|
public long EventContentId { get; set; }
|
|
|
|
public long UniqueId { get; set; }
|
|
|
|
public SCHALE.Common.FlatData.TBGVoiceCondition VoiceCondition { get; set; }
|
|
|
|
public uint VoiceId { get; set; }
|
|
|
|
|
|
|
|
public MinigameTBGVoiceExcelT() {
|
|
|
|
this.EventContentId = 0;
|
|
|
|
this.UniqueId = 0;
|
|
|
|
this.VoiceCondition = SCHALE.Common.FlatData.TBGVoiceCondition.None;
|
|
|
|
this.VoiceId = 0;
|
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class MinigameTBGVoiceExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
|
|
|
&& verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 6 /*UniqueId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 8 /*VoiceCondition*/, 4 /*SCHALE.Common.FlatData.TBGVoiceCondition*/, 4, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 10 /*VoiceId*/, 4 /*uint*/, 4, false)
|
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|