//
// 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 TutorialCharacterDialogExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static TutorialCharacterDialogExcel GetRootAsTutorialCharacterDialogExcel(ByteBuffer _bb) { return GetRootAsTutorialCharacterDialogExcel(_bb, new TutorialCharacterDialogExcel()); }
public static TutorialCharacterDialogExcel GetRootAsTutorialCharacterDialogExcel(ByteBuffer _bb, TutorialCharacterDialogExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public TutorialCharacterDialogExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long TalkId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public string AnimationName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span GetAnimationNameBytes() { return __p.__vector_as_span(6, 1); }
#else
public ArraySegment? GetAnimationNameBytes() { return __p.__vector_as_arraysegment(6); }
#endif
public byte[] GetAnimationNameArray() { return __p.__vector_as_array(6); }
public string LocalizeKR { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span GetLocalizeKRBytes() { return __p.__vector_as_span(8, 1); }
#else
public ArraySegment? GetLocalizeKRBytes() { return __p.__vector_as_arraysegment(8); }
#endif
public byte[] GetLocalizeKRArray() { return __p.__vector_as_array(8); }
public string LocalizeJP { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span GetLocalizeJPBytes() { return __p.__vector_as_span(10, 1); }
#else
public ArraySegment? GetLocalizeJPBytes() { return __p.__vector_as_arraysegment(10); }
#endif
public byte[] GetLocalizeJPArray() { return __p.__vector_as_array(10); }
public uint VoiceId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public static Offset CreateTutorialCharacterDialogExcel(FlatBufferBuilder builder,
long TalkId = 0,
StringOffset AnimationNameOffset = default(StringOffset),
StringOffset LocalizeKROffset = default(StringOffset),
StringOffset LocalizeJPOffset = default(StringOffset),
uint VoiceId = 0) {
builder.StartTable(5);
TutorialCharacterDialogExcel.AddTalkId(builder, TalkId);
TutorialCharacterDialogExcel.AddVoiceId(builder, VoiceId);
TutorialCharacterDialogExcel.AddLocalizeJP(builder, LocalizeJPOffset);
TutorialCharacterDialogExcel.AddLocalizeKR(builder, LocalizeKROffset);
TutorialCharacterDialogExcel.AddAnimationName(builder, AnimationNameOffset);
return TutorialCharacterDialogExcel.EndTutorialCharacterDialogExcel(builder);
}
public static void StartTutorialCharacterDialogExcel(FlatBufferBuilder builder) { builder.StartTable(5); }
public static void AddTalkId(FlatBufferBuilder builder, long talkId) { builder.AddLong(0, talkId, 0); }
public static void AddAnimationName(FlatBufferBuilder builder, StringOffset animationNameOffset) { builder.AddOffset(1, animationNameOffset.Value, 0); }
public static void AddLocalizeKR(FlatBufferBuilder builder, StringOffset localizeKROffset) { builder.AddOffset(2, localizeKROffset.Value, 0); }
public static void AddLocalizeJP(FlatBufferBuilder builder, StringOffset localizeJPOffset) { builder.AddOffset(3, localizeJPOffset.Value, 0); }
public static void AddVoiceId(FlatBufferBuilder builder, uint voiceId) { builder.AddUint(4, voiceId, 0); }
public static Offset EndTutorialCharacterDialogExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset(o);
}
public TutorialCharacterDialogExcelT UnPack() {
var _o = new TutorialCharacterDialogExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(TutorialCharacterDialogExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("TutorialCharacterDialog");
_o.TalkId = TableEncryptionService.Convert(this.TalkId, key);
_o.AnimationName = TableEncryptionService.Convert(this.AnimationName, key);
_o.LocalizeKR = TableEncryptionService.Convert(this.LocalizeKR, key);
_o.LocalizeJP = TableEncryptionService.Convert(this.LocalizeJP, key);
_o.VoiceId = TableEncryptionService.Convert(this.VoiceId, key);
}
public static Offset Pack(FlatBufferBuilder builder, TutorialCharacterDialogExcelT _o) {
if (_o == null) return default(Offset);
var _AnimationName = _o.AnimationName == null ? default(StringOffset) : builder.CreateString(_o.AnimationName);
var _LocalizeKR = _o.LocalizeKR == null ? default(StringOffset) : builder.CreateString(_o.LocalizeKR);
var _LocalizeJP = _o.LocalizeJP == null ? default(StringOffset) : builder.CreateString(_o.LocalizeJP);
return CreateTutorialCharacterDialogExcel(
builder,
_o.TalkId,
_AnimationName,
_LocalizeKR,
_LocalizeJP,
_o.VoiceId);
}
}
public class TutorialCharacterDialogExcelT
{
public long TalkId { get; set; }
public string AnimationName { get; set; }
public string LocalizeKR { get; set; }
public string LocalizeJP { get; set; }
public uint VoiceId { get; set; }
public TutorialCharacterDialogExcelT() {
this.TalkId = 0;
this.AnimationName = null;
this.LocalizeKR = null;
this.LocalizeJP = null;
this.VoiceId = 0;
}
}
static public class TutorialCharacterDialogExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*TalkId*/, 8 /*long*/, 8, false)
&& verifier.VerifyString(tablePos, 6 /*AnimationName*/, false)
&& verifier.VerifyString(tablePos, 8 /*LocalizeKR*/, false)
&& verifier.VerifyString(tablePos, 10 /*LocalizeJP*/, false)
&& verifier.VerifyField(tablePos, 12 /*VoiceId*/, 4 /*uint*/, 4, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}