// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::Google.FlatBuffers; public struct LocalizeSkillExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static LocalizeSkillExcel GetRootAsLocalizeSkillExcel(ByteBuffer _bb) { return GetRootAsLocalizeSkillExcel(_bb, new LocalizeSkillExcel()); } public static LocalizeSkillExcel GetRootAsLocalizeSkillExcel(ByteBuffer _bb, LocalizeSkillExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public LocalizeSkillExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public string NameKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetNameKrBytes() { return __p.__vector_as_span(6, 1); } #else public ArraySegment? GetNameKrBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetNameKrArray() { return __p.__vector_as_array(6); } public string DescriptionKr { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetDescriptionKrBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetDescriptionKrBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetDescriptionKrArray() { return __p.__vector_as_array(8); } public string SkillInvokeLocalizeKr { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSkillInvokeLocalizeKrBytes() { return __p.__vector_as_span(10, 1); } #else public ArraySegment? GetSkillInvokeLocalizeKrBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetSkillInvokeLocalizeKrArray() { return __p.__vector_as_array(10); } public string NameJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetNameJpBytes() { return __p.__vector_as_span(12, 1); } #else public ArraySegment? GetNameJpBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetNameJpArray() { return __p.__vector_as_array(12); } public string DescriptionJp { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetDescriptionJpBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetDescriptionJpBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetDescriptionJpArray() { return __p.__vector_as_array(14); } public string SkillInvokeLocalizeJp { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSkillInvokeLocalizeJpBytes() { return __p.__vector_as_span(16, 1); } #else public ArraySegment? GetSkillInvokeLocalizeJpBytes() { return __p.__vector_as_arraysegment(16); } #endif public byte[] GetSkillInvokeLocalizeJpArray() { return __p.__vector_as_array(16); } public static Offset CreateLocalizeSkillExcel(FlatBufferBuilder builder, uint Key = 0, StringOffset NameKrOffset = default(StringOffset), StringOffset DescriptionKrOffset = default(StringOffset), StringOffset SkillInvokeLocalizeKrOffset = default(StringOffset), StringOffset NameJpOffset = default(StringOffset), StringOffset DescriptionJpOffset = default(StringOffset), StringOffset SkillInvokeLocalizeJpOffset = default(StringOffset)) { builder.StartTable(7); LocalizeSkillExcel.AddSkillInvokeLocalizeJp(builder, SkillInvokeLocalizeJpOffset); LocalizeSkillExcel.AddDescriptionJp(builder, DescriptionJpOffset); LocalizeSkillExcel.AddNameJp(builder, NameJpOffset); LocalizeSkillExcel.AddSkillInvokeLocalizeKr(builder, SkillInvokeLocalizeKrOffset); LocalizeSkillExcel.AddDescriptionKr(builder, DescriptionKrOffset); LocalizeSkillExcel.AddNameKr(builder, NameKrOffset); LocalizeSkillExcel.AddKey(builder, Key); return LocalizeSkillExcel.EndLocalizeSkillExcel(builder); } public static void StartLocalizeSkillExcel(FlatBufferBuilder builder) { builder.StartTable(7); } public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(0, key, 0); } public static void AddNameKr(FlatBufferBuilder builder, StringOffset nameKrOffset) { builder.AddOffset(1, nameKrOffset.Value, 0); } public static void AddDescriptionKr(FlatBufferBuilder builder, StringOffset descriptionKrOffset) { builder.AddOffset(2, descriptionKrOffset.Value, 0); } public static void AddSkillInvokeLocalizeKr(FlatBufferBuilder builder, StringOffset skillInvokeLocalizeKrOffset) { builder.AddOffset(3, skillInvokeLocalizeKrOffset.Value, 0); } public static void AddNameJp(FlatBufferBuilder builder, StringOffset nameJpOffset) { builder.AddOffset(4, nameJpOffset.Value, 0); } public static void AddDescriptionJp(FlatBufferBuilder builder, StringOffset descriptionJpOffset) { builder.AddOffset(5, descriptionJpOffset.Value, 0); } public static void AddSkillInvokeLocalizeJp(FlatBufferBuilder builder, StringOffset skillInvokeLocalizeJpOffset) { builder.AddOffset(6, skillInvokeLocalizeJpOffset.Value, 0); } public static Offset EndLocalizeSkillExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class LocalizeSkillExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*uint*/, 4, false) && verifier.VerifyString(tablePos, 6 /*NameKr*/, false) && verifier.VerifyString(tablePos, 8 /*DescriptionKr*/, false) && verifier.VerifyString(tablePos, 10 /*SkillInvokeLocalizeKr*/, false) && verifier.VerifyString(tablePos, 12 /*NameJp*/, false) && verifier.VerifyString(tablePos, 14 /*DescriptionJp*/, false) && verifier.VerifyString(tablePos, 16 /*SkillInvokeLocalizeJp*/, false) && verifier.VerifyTableEnd(tablePos); } } }