// // 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 CharacterDialogFieldExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static CharacterDialogFieldExcel GetRootAsCharacterDialogFieldExcel(ByteBuffer _bb) { return GetRootAsCharacterDialogFieldExcel(_bb, new CharacterDialogFieldExcel()); } public static CharacterDialogFieldExcel GetRootAsCharacterDialogFieldExcel(ByteBuffer _bb, CharacterDialogFieldExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public CharacterDialogFieldExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int Phase { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int TargetIndex { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.FieldDialogType DialogType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.FieldDialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldDialogType.None; } } public long Duration { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string MotionName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetMotionNameBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetMotionNameBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetMotionNameArray() { return __p.__vector_as_array(14); } public bool IsInteractionDialog { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public bool HideUI { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public string LocalizeKR { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetLocalizeKRBytes() { return __p.__vector_as_span(20, 1); } #else public ArraySegment? GetLocalizeKRBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetLocalizeKRArray() { return __p.__vector_as_array(20); } public string LocalizeJP { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetLocalizeJPBytes() { return __p.__vector_as_span(22, 1); } #else public ArraySegment? GetLocalizeJPBytes() { return __p.__vector_as_arraysegment(22); } #endif public byte[] GetLocalizeJPArray() { return __p.__vector_as_array(22); } public static Offset CreateCharacterDialogFieldExcel(FlatBufferBuilder builder, long GroupId = 0, int Phase = 0, int TargetIndex = 0, SCHALE.Common.FlatData.FieldDialogType DialogType = SCHALE.Common.FlatData.FieldDialogType.None, long Duration = 0, StringOffset MotionNameOffset = default(StringOffset), bool IsInteractionDialog = false, bool HideUI = false, StringOffset LocalizeKROffset = default(StringOffset), StringOffset LocalizeJPOffset = default(StringOffset)) { builder.StartTable(10); CharacterDialogFieldExcel.AddDuration(builder, Duration); CharacterDialogFieldExcel.AddGroupId(builder, GroupId); CharacterDialogFieldExcel.AddLocalizeJP(builder, LocalizeJPOffset); CharacterDialogFieldExcel.AddLocalizeKR(builder, LocalizeKROffset); CharacterDialogFieldExcel.AddMotionName(builder, MotionNameOffset); CharacterDialogFieldExcel.AddDialogType(builder, DialogType); CharacterDialogFieldExcel.AddTargetIndex(builder, TargetIndex); CharacterDialogFieldExcel.AddPhase(builder, Phase); CharacterDialogFieldExcel.AddHideUI(builder, HideUI); CharacterDialogFieldExcel.AddIsInteractionDialog(builder, IsInteractionDialog); return CharacterDialogFieldExcel.EndCharacterDialogFieldExcel(builder); } public static void StartCharacterDialogFieldExcel(FlatBufferBuilder builder) { builder.StartTable(10); } public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } public static void AddPhase(FlatBufferBuilder builder, int phase) { builder.AddInt(1, phase, 0); } public static void AddTargetIndex(FlatBufferBuilder builder, int targetIndex) { builder.AddInt(2, targetIndex, 0); } public static void AddDialogType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldDialogType dialogType) { builder.AddInt(3, (int)dialogType, 0); } public static void AddDuration(FlatBufferBuilder builder, long duration) { builder.AddLong(4, duration, 0); } public static void AddMotionName(FlatBufferBuilder builder, StringOffset motionNameOffset) { builder.AddOffset(5, motionNameOffset.Value, 0); } public static void AddIsInteractionDialog(FlatBufferBuilder builder, bool isInteractionDialog) { builder.AddBool(6, isInteractionDialog, false); } public static void AddHideUI(FlatBufferBuilder builder, bool hideUI) { builder.AddBool(7, hideUI, false); } public static void AddLocalizeKR(FlatBufferBuilder builder, StringOffset localizeKROffset) { builder.AddOffset(8, localizeKROffset.Value, 0); } public static void AddLocalizeJP(FlatBufferBuilder builder, StringOffset localizeJPOffset) { builder.AddOffset(9, localizeJPOffset.Value, 0); } public static Offset EndCharacterDialogFieldExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } public CharacterDialogFieldExcelT UnPack() { var _o = new CharacterDialogFieldExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(CharacterDialogFieldExcelT _o) { byte[] key = TableEncryptionService.CreateKey("CharacterDialogField"); _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); _o.Phase = TableEncryptionService.Convert(this.Phase, key); _o.TargetIndex = TableEncryptionService.Convert(this.TargetIndex, key); _o.DialogType = TableEncryptionService.Convert(this.DialogType, key); _o.Duration = TableEncryptionService.Convert(this.Duration, key); _o.MotionName = TableEncryptionService.Convert(this.MotionName, key); _o.IsInteractionDialog = TableEncryptionService.Convert(this.IsInteractionDialog, key); _o.HideUI = TableEncryptionService.Convert(this.HideUI, key); _o.LocalizeKR = TableEncryptionService.Convert(this.LocalizeKR, key); _o.LocalizeJP = TableEncryptionService.Convert(this.LocalizeJP, key); } public static Offset Pack(FlatBufferBuilder builder, CharacterDialogFieldExcelT _o) { if (_o == null) return default(Offset); var _MotionName = _o.MotionName == null ? default(StringOffset) : builder.CreateString(_o.MotionName); var _LocalizeKR = _o.LocalizeKR == null ? default(StringOffset) : builder.CreateString(_o.LocalizeKR); var _LocalizeJP = _o.LocalizeJP == null ? default(StringOffset) : builder.CreateString(_o.LocalizeJP); return CreateCharacterDialogFieldExcel( builder, _o.GroupId, _o.Phase, _o.TargetIndex, _o.DialogType, _o.Duration, _MotionName, _o.IsInteractionDialog, _o.HideUI, _LocalizeKR, _LocalizeJP); } } public class CharacterDialogFieldExcelT { public long GroupId { get; set; } public int Phase { get; set; } public int TargetIndex { get; set; } public SCHALE.Common.FlatData.FieldDialogType DialogType { get; set; } public long Duration { get; set; } public string MotionName { get; set; } public bool IsInteractionDialog { get; set; } public bool HideUI { get; set; } public string LocalizeKR { get; set; } public string LocalizeJP { get; set; } public CharacterDialogFieldExcelT() { this.GroupId = 0; this.Phase = 0; this.TargetIndex = 0; this.DialogType = SCHALE.Common.FlatData.FieldDialogType.None; this.Duration = 0; this.MotionName = null; this.IsInteractionDialog = false; this.HideUI = false; this.LocalizeKR = null; this.LocalizeJP = null; } } static public class CharacterDialogFieldExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*Phase*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 8 /*TargetIndex*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 10 /*DialogType*/, 4 /*SCHALE.Common.FlatData.FieldDialogType*/, 4, false) && verifier.VerifyField(tablePos, 12 /*Duration*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 14 /*MotionName*/, false) && verifier.VerifyField(tablePos, 16 /*IsInteractionDialog*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 18 /*HideUI*/, 1 /*bool*/, 1, false) && verifier.VerifyString(tablePos, 20 /*LocalizeKR*/, false) && verifier.VerifyString(tablePos, 22 /*LocalizeJP*/, false) && verifier.VerifyTableEnd(tablePos); } } }