114 lines
8.4 KiB
C#
114 lines
8.4 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::Google.FlatBuffers;
|
|
|
|
public struct FarmingDungeonLocationManageExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static FarmingDungeonLocationManageExcel GetRootAsFarmingDungeonLocationManageExcel(ByteBuffer _bb) { return GetRootAsFarmingDungeonLocationManageExcel(_bb, new FarmingDungeonLocationManageExcel()); }
|
|
public static FarmingDungeonLocationManageExcel GetRootAsFarmingDungeonLocationManageExcel(ByteBuffer _bb, FarmingDungeonLocationManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public FarmingDungeonLocationManageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public long FarmingDungeonLocationId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } }
|
|
public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None; } }
|
|
public SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; } }
|
|
public long Order { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public string OpenStartDateTime { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetOpenStartDateTimeBytes() { return __p.__vector_as_span<byte>(14, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetOpenStartDateTimeBytes() { return __p.__vector_as_arraysegment(14); }
|
|
#endif
|
|
public byte[] GetOpenStartDateTimeArray() { return __p.__vector_as_array<byte>(14); }
|
|
public string OpenEndDateTime { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetOpenEndDateTimeBytes() { return __p.__vector_as_span<byte>(16, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetOpenEndDateTimeBytes() { return __p.__vector_as_arraysegment(16); }
|
|
#endif
|
|
public byte[] GetOpenEndDateTimeArray() { return __p.__vector_as_array<byte>(16); }
|
|
public string LocationButtonImagePath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetLocationButtonImagePathBytes() { return __p.__vector_as_span<byte>(18, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetLocationButtonImagePathBytes() { return __p.__vector_as_arraysegment(18); }
|
|
#endif
|
|
public byte[] GetLocationButtonImagePathArray() { return __p.__vector_as_array<byte>(18); }
|
|
public uint LocalizeCodeTitle { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
public uint LocalizeCodeInfo { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel> CreateFarmingDungeonLocationManageExcel(FlatBufferBuilder builder,
|
|
long FarmingDungeonLocationId = 0,
|
|
SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None,
|
|
SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType = SCHALE.Common.FlatData.WeekDungeonType.None,
|
|
SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA,
|
|
long Order = 0,
|
|
StringOffset OpenStartDateTimeOffset = default(StringOffset),
|
|
StringOffset OpenEndDateTimeOffset = default(StringOffset),
|
|
StringOffset LocationButtonImagePathOffset = default(StringOffset),
|
|
uint LocalizeCodeTitle = 0,
|
|
uint LocalizeCodeInfo = 0) {
|
|
builder.StartTable(10);
|
|
FarmingDungeonLocationManageExcel.AddOrder(builder, Order);
|
|
FarmingDungeonLocationManageExcel.AddFarmingDungeonLocationId(builder, FarmingDungeonLocationId);
|
|
FarmingDungeonLocationManageExcel.AddLocalizeCodeInfo(builder, LocalizeCodeInfo);
|
|
FarmingDungeonLocationManageExcel.AddLocalizeCodeTitle(builder, LocalizeCodeTitle);
|
|
FarmingDungeonLocationManageExcel.AddLocationButtonImagePath(builder, LocationButtonImagePathOffset);
|
|
FarmingDungeonLocationManageExcel.AddOpenEndDateTime(builder, OpenEndDateTimeOffset);
|
|
FarmingDungeonLocationManageExcel.AddOpenStartDateTime(builder, OpenStartDateTimeOffset);
|
|
FarmingDungeonLocationManageExcel.AddSchoolDungeonType(builder, SchoolDungeonType);
|
|
FarmingDungeonLocationManageExcel.AddWeekDungeonType(builder, WeekDungeonType);
|
|
FarmingDungeonLocationManageExcel.AddContentType(builder, ContentType);
|
|
return FarmingDungeonLocationManageExcel.EndFarmingDungeonLocationManageExcel(builder);
|
|
}
|
|
|
|
public static void StartFarmingDungeonLocationManageExcel(FlatBufferBuilder builder) { builder.StartTable(10); }
|
|
public static void AddFarmingDungeonLocationId(FlatBufferBuilder builder, long farmingDungeonLocationId) { builder.AddLong(0, farmingDungeonLocationId, 0); }
|
|
public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(1, (int)contentType, 0); }
|
|
public static void AddWeekDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDungeonType weekDungeonType) { builder.AddInt(2, (int)weekDungeonType, 0); }
|
|
public static void AddSchoolDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.SchoolDungeonType schoolDungeonType) { builder.AddInt(3, (int)schoolDungeonType, 0); }
|
|
public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(4, order, 0); }
|
|
public static void AddOpenStartDateTime(FlatBufferBuilder builder, StringOffset openStartDateTimeOffset) { builder.AddOffset(5, openStartDateTimeOffset.Value, 0); }
|
|
public static void AddOpenEndDateTime(FlatBufferBuilder builder, StringOffset openEndDateTimeOffset) { builder.AddOffset(6, openEndDateTimeOffset.Value, 0); }
|
|
public static void AddLocationButtonImagePath(FlatBufferBuilder builder, StringOffset locationButtonImagePathOffset) { builder.AddOffset(7, locationButtonImagePathOffset.Value, 0); }
|
|
public static void AddLocalizeCodeTitle(FlatBufferBuilder builder, uint localizeCodeTitle) { builder.AddUint(8, localizeCodeTitle, 0); }
|
|
public static void AddLocalizeCodeInfo(FlatBufferBuilder builder, uint localizeCodeInfo) { builder.AddUint(9, localizeCodeInfo, 0); }
|
|
public static Offset<SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel> EndFarmingDungeonLocationManageExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel>(o);
|
|
}
|
|
}
|
|
|
|
|
|
static public class FarmingDungeonLocationManageExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*FarmingDungeonLocationId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 8 /*WeekDungeonType*/, 4 /*SCHALE.Common.FlatData.WeekDungeonType*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 10 /*SchoolDungeonType*/, 4 /*SCHALE.Common.FlatData.SchoolDungeonType*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 12 /*Order*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyString(tablePos, 14 /*OpenStartDateTime*/, false)
|
|
&& verifier.VerifyString(tablePos, 16 /*OpenEndDateTime*/, false)
|
|
&& verifier.VerifyString(tablePos, 18 /*LocationButtonImagePath*/, false)
|
|
&& verifier.VerifyField(tablePos, 20 /*LocalizeCodeTitle*/, 4 /*uint*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 22 /*LocalizeCodeInfo*/, 4 /*uint*/, 4, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|