SCHALE.GameServer/SCHALE.Common/FlatData/FarmingDungeonLocationManag...

178 lines
12 KiB
C#
Raw Permalink Normal View History

2024-04-21 00:21:57 +00:00
// <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;
2024-04-29 15:52:45 +00:00
using global::SCHALE.Common.Crypto;
2024-04-21 00:21:57 +00:00
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; } }
2024-04-21 00:21:57 +00:00
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,
2024-04-21 00:21:57 +00:00
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);
2024-04-21 00:21:57 +00:00
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); }
2024-04-21 00:21:57 +00:00
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);
}
2024-04-29 15:52:45 +00:00
public FarmingDungeonLocationManageExcelT UnPack() {
var _o = new FarmingDungeonLocationManageExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(FarmingDungeonLocationManageExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("FarmingDungeonLocationManage");
_o.FarmingDungeonLocationId = TableEncryptionService.Convert(this.FarmingDungeonLocationId, key);
_o.ContentType = TableEncryptionService.Convert(this.ContentType, key);
_o.WeekDungeonType = TableEncryptionService.Convert(this.WeekDungeonType, key);
_o.SchoolDungeonType = TableEncryptionService.Convert(this.SchoolDungeonType, key);
2024-04-29 15:52:45 +00:00
_o.Order = TableEncryptionService.Convert(this.Order, key);
_o.OpenStartDateTime = TableEncryptionService.Convert(this.OpenStartDateTime, key);
_o.OpenEndDateTime = TableEncryptionService.Convert(this.OpenEndDateTime, key);
_o.LocationButtonImagePath = TableEncryptionService.Convert(this.LocationButtonImagePath, key);
_o.LocalizeCodeTitle = TableEncryptionService.Convert(this.LocalizeCodeTitle, key);
_o.LocalizeCodeInfo = TableEncryptionService.Convert(this.LocalizeCodeInfo, key);
}
public static Offset<SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel> Pack(FlatBufferBuilder builder, FarmingDungeonLocationManageExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel>);
var _OpenStartDateTime = _o.OpenStartDateTime == null ? default(StringOffset) : builder.CreateString(_o.OpenStartDateTime);
var _OpenEndDateTime = _o.OpenEndDateTime == null ? default(StringOffset) : builder.CreateString(_o.OpenEndDateTime);
var _LocationButtonImagePath = _o.LocationButtonImagePath == null ? default(StringOffset) : builder.CreateString(_o.LocationButtonImagePath);
return CreateFarmingDungeonLocationManageExcel(
builder,
_o.FarmingDungeonLocationId,
_o.ContentType,
_o.WeekDungeonType,
_o.SchoolDungeonType,
2024-04-29 15:52:45 +00:00
_o.Order,
_OpenStartDateTime,
_OpenEndDateTime,
_LocationButtonImagePath,
_o.LocalizeCodeTitle,
_o.LocalizeCodeInfo);
}
}
public class FarmingDungeonLocationManageExcelT
{
public long FarmingDungeonLocationId { get; set; }
public SCHALE.Common.FlatData.ContentType ContentType { get; set; }
public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType { get; set; }
public SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType { get; set; }
2024-04-29 15:52:45 +00:00
public long Order { get; set; }
public string OpenStartDateTime { get; set; }
public string OpenEndDateTime { get; set; }
public string LocationButtonImagePath { get; set; }
public uint LocalizeCodeTitle { get; set; }
public uint LocalizeCodeInfo { get; set; }
public FarmingDungeonLocationManageExcelT() {
this.FarmingDungeonLocationId = 0;
this.ContentType = SCHALE.Common.FlatData.ContentType.None;
this.WeekDungeonType = SCHALE.Common.FlatData.WeekDungeonType.None;
this.SchoolDungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA;
2024-04-29 15:52:45 +00:00
this.Order = 0;
this.OpenStartDateTime = null;
this.OpenEndDateTime = null;
this.LocationButtonImagePath = null;
this.LocalizeCodeTitle = 0;
this.LocalizeCodeInfo = 0;
}
2024-04-21 00:21:57 +00:00
}
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)
2024-04-21 00:21:57 +00:00
&& 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);
}
}
}