// // 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 ConstFieldExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static ConstFieldExcel GetRootAsConstFieldExcel(ByteBuffer _bb) { return GetRootAsConstFieldExcel(_bb, new ConstFieldExcel()); } public static ConstFieldExcel GetRootAsConstFieldExcel(ByteBuffer _bb, ConstFieldExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ConstFieldExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int DialogSmoothTime { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int TalkDialogDurationDefault { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int ThinkDialogDurationDefault { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int IdleThinkDelayMin { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int IdleThinkDelayMax { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int ExclaimDurationDefault { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int QuestionDurationDefault { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int UpsetDurationDefault { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int SurpriseDurationDefault { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int BulbDurationDefault { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int HeartDurationDefault { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int SweatDurationDefault { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int AngryDurationDefault { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int MusicDurationDefault { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int DotDurationDefault { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int MomotalkDurationDefault { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int PhoneDurationDefault { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int KeywordDurationDefault { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int EvidenceDurationDefault { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreateConstFieldExcel(FlatBufferBuilder builder, int DialogSmoothTime = 0, int TalkDialogDurationDefault = 0, int ThinkDialogDurationDefault = 0, int IdleThinkDelayMin = 0, int IdleThinkDelayMax = 0, int ExclaimDurationDefault = 0, int QuestionDurationDefault = 0, int UpsetDurationDefault = 0, int SurpriseDurationDefault = 0, int BulbDurationDefault = 0, int HeartDurationDefault = 0, int SweatDurationDefault = 0, int AngryDurationDefault = 0, int MusicDurationDefault = 0, int DotDurationDefault = 0, int MomotalkDurationDefault = 0, int PhoneDurationDefault = 0, int KeywordDurationDefault = 0, int EvidenceDurationDefault = 0) { builder.StartTable(19); ConstFieldExcel.AddEvidenceDurationDefault(builder, EvidenceDurationDefault); ConstFieldExcel.AddKeywordDurationDefault(builder, KeywordDurationDefault); ConstFieldExcel.AddPhoneDurationDefault(builder, PhoneDurationDefault); ConstFieldExcel.AddMomotalkDurationDefault(builder, MomotalkDurationDefault); ConstFieldExcel.AddDotDurationDefault(builder, DotDurationDefault); ConstFieldExcel.AddMusicDurationDefault(builder, MusicDurationDefault); ConstFieldExcel.AddAngryDurationDefault(builder, AngryDurationDefault); ConstFieldExcel.AddSweatDurationDefault(builder, SweatDurationDefault); ConstFieldExcel.AddHeartDurationDefault(builder, HeartDurationDefault); ConstFieldExcel.AddBulbDurationDefault(builder, BulbDurationDefault); ConstFieldExcel.AddSurpriseDurationDefault(builder, SurpriseDurationDefault); ConstFieldExcel.AddUpsetDurationDefault(builder, UpsetDurationDefault); ConstFieldExcel.AddQuestionDurationDefault(builder, QuestionDurationDefault); ConstFieldExcel.AddExclaimDurationDefault(builder, ExclaimDurationDefault); ConstFieldExcel.AddIdleThinkDelayMax(builder, IdleThinkDelayMax); ConstFieldExcel.AddIdleThinkDelayMin(builder, IdleThinkDelayMin); ConstFieldExcel.AddThinkDialogDurationDefault(builder, ThinkDialogDurationDefault); ConstFieldExcel.AddTalkDialogDurationDefault(builder, TalkDialogDurationDefault); ConstFieldExcel.AddDialogSmoothTime(builder, DialogSmoothTime); return ConstFieldExcel.EndConstFieldExcel(builder); } public static void StartConstFieldExcel(FlatBufferBuilder builder) { builder.StartTable(19); } public static void AddDialogSmoothTime(FlatBufferBuilder builder, int dialogSmoothTime) { builder.AddInt(0, dialogSmoothTime, 0); } public static void AddTalkDialogDurationDefault(FlatBufferBuilder builder, int talkDialogDurationDefault) { builder.AddInt(1, talkDialogDurationDefault, 0); } public static void AddThinkDialogDurationDefault(FlatBufferBuilder builder, int thinkDialogDurationDefault) { builder.AddInt(2, thinkDialogDurationDefault, 0); } public static void AddIdleThinkDelayMin(FlatBufferBuilder builder, int idleThinkDelayMin) { builder.AddInt(3, idleThinkDelayMin, 0); } public static void AddIdleThinkDelayMax(FlatBufferBuilder builder, int idleThinkDelayMax) { builder.AddInt(4, idleThinkDelayMax, 0); } public static void AddExclaimDurationDefault(FlatBufferBuilder builder, int exclaimDurationDefault) { builder.AddInt(5, exclaimDurationDefault, 0); } public static void AddQuestionDurationDefault(FlatBufferBuilder builder, int questionDurationDefault) { builder.AddInt(6, questionDurationDefault, 0); } public static void AddUpsetDurationDefault(FlatBufferBuilder builder, int upsetDurationDefault) { builder.AddInt(7, upsetDurationDefault, 0); } public static void AddSurpriseDurationDefault(FlatBufferBuilder builder, int surpriseDurationDefault) { builder.AddInt(8, surpriseDurationDefault, 0); } public static void AddBulbDurationDefault(FlatBufferBuilder builder, int bulbDurationDefault) { builder.AddInt(9, bulbDurationDefault, 0); } public static void AddHeartDurationDefault(FlatBufferBuilder builder, int heartDurationDefault) { builder.AddInt(10, heartDurationDefault, 0); } public static void AddSweatDurationDefault(FlatBufferBuilder builder, int sweatDurationDefault) { builder.AddInt(11, sweatDurationDefault, 0); } public static void AddAngryDurationDefault(FlatBufferBuilder builder, int angryDurationDefault) { builder.AddInt(12, angryDurationDefault, 0); } public static void AddMusicDurationDefault(FlatBufferBuilder builder, int musicDurationDefault) { builder.AddInt(13, musicDurationDefault, 0); } public static void AddDotDurationDefault(FlatBufferBuilder builder, int dotDurationDefault) { builder.AddInt(14, dotDurationDefault, 0); } public static void AddMomotalkDurationDefault(FlatBufferBuilder builder, int momotalkDurationDefault) { builder.AddInt(15, momotalkDurationDefault, 0); } public static void AddPhoneDurationDefault(FlatBufferBuilder builder, int phoneDurationDefault) { builder.AddInt(16, phoneDurationDefault, 0); } public static void AddKeywordDurationDefault(FlatBufferBuilder builder, int keywordDurationDefault) { builder.AddInt(17, keywordDurationDefault, 0); } public static void AddEvidenceDurationDefault(FlatBufferBuilder builder, int evidenceDurationDefault) { builder.AddInt(18, evidenceDurationDefault, 0); } public static Offset EndConstFieldExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class ConstFieldExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*DialogSmoothTime*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 6 /*TalkDialogDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 8 /*ThinkDialogDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 10 /*IdleThinkDelayMin*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 12 /*IdleThinkDelayMax*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 14 /*ExclaimDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 16 /*QuestionDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 18 /*UpsetDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 20 /*SurpriseDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 22 /*BulbDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 24 /*HeartDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 26 /*SweatDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 28 /*AngryDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 30 /*MusicDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 32 /*DotDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 34 /*MomotalkDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 36 /*PhoneDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 38 /*KeywordDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 40 /*EvidenceDurationDefault*/, 4 /*int*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }