142 lines
7.3 KiB
C#
142 lines
7.3 KiB
C#
// <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;
|
|
using global::SCHALE.Common.Crypto;
|
|
using global::Google.FlatBuffers;
|
|
|
|
public struct CharacterDialogSubtitleExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static CharacterDialogSubtitleExcel GetRootAsCharacterDialogSubtitleExcel(ByteBuffer _bb) { return GetRootAsCharacterDialogSubtitleExcel(_bb, new CharacterDialogSubtitleExcel()); }
|
|
public static CharacterDialogSubtitleExcel GetRootAsCharacterDialogSubtitleExcel(ByteBuffer _bb, CharacterDialogSubtitleExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public CharacterDialogSubtitleExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public string LocalizeCVGroup { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetLocalizeCVGroupBytes() { return __p.__vector_as_span<byte>(4, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetLocalizeCVGroupBytes() { return __p.__vector_as_arraysegment(4); }
|
|
#endif
|
|
public byte[] GetLocalizeCVGroupArray() { return __p.__vector_as_array<byte>(4); }
|
|
public long CharacterId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long Duration { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public bool Separate { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
|
public string LocalizeKR { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetLocalizeKRBytes() { return __p.__vector_as_span<byte>(12, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetLocalizeKRBytes() { return __p.__vector_as_arraysegment(12); }
|
|
#endif
|
|
public byte[] GetLocalizeKRArray() { return __p.__vector_as_array<byte>(12); }
|
|
public string LocalizeJP { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetLocalizeJPBytes() { return __p.__vector_as_span<byte>(14, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetLocalizeJPBytes() { return __p.__vector_as_arraysegment(14); }
|
|
#endif
|
|
public byte[] GetLocalizeJPArray() { return __p.__vector_as_array<byte>(14); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterDialogSubtitleExcel> CreateCharacterDialogSubtitleExcel(FlatBufferBuilder builder,
|
|
StringOffset LocalizeCVGroupOffset = default(StringOffset),
|
|
long CharacterId = 0,
|
|
long Duration = 0,
|
|
bool Separate = false,
|
|
StringOffset LocalizeKROffset = default(StringOffset),
|
|
StringOffset LocalizeJPOffset = default(StringOffset)) {
|
|
builder.StartTable(6);
|
|
CharacterDialogSubtitleExcel.AddDuration(builder, Duration);
|
|
CharacterDialogSubtitleExcel.AddCharacterId(builder, CharacterId);
|
|
CharacterDialogSubtitleExcel.AddLocalizeJP(builder, LocalizeJPOffset);
|
|
CharacterDialogSubtitleExcel.AddLocalizeKR(builder, LocalizeKROffset);
|
|
CharacterDialogSubtitleExcel.AddLocalizeCVGroup(builder, LocalizeCVGroupOffset);
|
|
CharacterDialogSubtitleExcel.AddSeparate(builder, Separate);
|
|
return CharacterDialogSubtitleExcel.EndCharacterDialogSubtitleExcel(builder);
|
|
}
|
|
|
|
public static void StartCharacterDialogSubtitleExcel(FlatBufferBuilder builder) { builder.StartTable(6); }
|
|
public static void AddLocalizeCVGroup(FlatBufferBuilder builder, StringOffset localizeCVGroupOffset) { builder.AddOffset(0, localizeCVGroupOffset.Value, 0); }
|
|
public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(1, characterId, 0); }
|
|
public static void AddDuration(FlatBufferBuilder builder, long duration) { builder.AddLong(2, duration, 0); }
|
|
public static void AddSeparate(FlatBufferBuilder builder, bool separate) { builder.AddBool(3, separate, false); }
|
|
public static void AddLocalizeKR(FlatBufferBuilder builder, StringOffset localizeKROffset) { builder.AddOffset(4, localizeKROffset.Value, 0); }
|
|
public static void AddLocalizeJP(FlatBufferBuilder builder, StringOffset localizeJPOffset) { builder.AddOffset(5, localizeJPOffset.Value, 0); }
|
|
public static Offset<SCHALE.Common.FlatData.CharacterDialogSubtitleExcel> EndCharacterDialogSubtitleExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.CharacterDialogSubtitleExcel>(o);
|
|
}
|
|
public CharacterDialogSubtitleExcelT UnPack() {
|
|
var _o = new CharacterDialogSubtitleExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(CharacterDialogSubtitleExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("CharacterDialogSubtitle");
|
|
_o.LocalizeCVGroup = TableEncryptionService.Convert(this.LocalizeCVGroup, key);
|
|
_o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key);
|
|
_o.Duration = TableEncryptionService.Convert(this.Duration, key);
|
|
_o.Separate = TableEncryptionService.Convert(this.Separate, key);
|
|
_o.LocalizeKR = TableEncryptionService.Convert(this.LocalizeKR, key);
|
|
_o.LocalizeJP = TableEncryptionService.Convert(this.LocalizeJP, key);
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.CharacterDialogSubtitleExcel> Pack(FlatBufferBuilder builder, CharacterDialogSubtitleExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.CharacterDialogSubtitleExcel>);
|
|
var _LocalizeCVGroup = _o.LocalizeCVGroup == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCVGroup);
|
|
var _LocalizeKR = _o.LocalizeKR == null ? default(StringOffset) : builder.CreateString(_o.LocalizeKR);
|
|
var _LocalizeJP = _o.LocalizeJP == null ? default(StringOffset) : builder.CreateString(_o.LocalizeJP);
|
|
return CreateCharacterDialogSubtitleExcel(
|
|
builder,
|
|
_LocalizeCVGroup,
|
|
_o.CharacterId,
|
|
_o.Duration,
|
|
_o.Separate,
|
|
_LocalizeKR,
|
|
_LocalizeJP);
|
|
}
|
|
}
|
|
|
|
public class CharacterDialogSubtitleExcelT
|
|
{
|
|
public string LocalizeCVGroup { get; set; }
|
|
public long CharacterId { get; set; }
|
|
public long Duration { get; set; }
|
|
public bool Separate { get; set; }
|
|
public string LocalizeKR { get; set; }
|
|
public string LocalizeJP { get; set; }
|
|
|
|
public CharacterDialogSubtitleExcelT() {
|
|
this.LocalizeCVGroup = null;
|
|
this.CharacterId = 0;
|
|
this.Duration = 0;
|
|
this.Separate = false;
|
|
this.LocalizeKR = null;
|
|
this.LocalizeJP = null;
|
|
}
|
|
}
|
|
|
|
|
|
static public class CharacterDialogSubtitleExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyString(tablePos, 4 /*LocalizeCVGroup*/, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*CharacterId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 8 /*Duration*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 10 /*Separate*/, 1 /*bool*/, 1, false)
|
|
&& verifier.VerifyString(tablePos, 12 /*LocalizeKR*/, false)
|
|
&& verifier.VerifyString(tablePos, 14 /*LocalizeJP*/, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|