SCHALE.GameServer/SCHALE.Common/FlatData/FloaterCommonExcel.cs

121 lines
6.4 KiB
C#
Raw 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 FloaterCommonExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static FloaterCommonExcel GetRootAsFloaterCommonExcel(ByteBuffer _bb) { return GetRootAsFloaterCommonExcel(_bb, new FloaterCommonExcel()); }
public static FloaterCommonExcel GetRootAsFloaterCommonExcel(ByteBuffer _bb, FloaterCommonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public FloaterCommonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None_; } }
2024-04-21 00:21:57 +00:00
public int FloaterOffsetPosX { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int FloaterOffsetPosY { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int FloaterRandomPosRangeX { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int FloaterRandomPosRangeY { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public static Offset<SCHALE.Common.FlatData.FloaterCommonExcel> CreateFloaterCommonExcel(FlatBufferBuilder builder,
long Id = 0,
SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_,
2024-04-21 00:21:57 +00:00
int FloaterOffsetPosX = 0,
int FloaterOffsetPosY = 0,
int FloaterRandomPosRangeX = 0,
int FloaterRandomPosRangeY = 0) {
builder.StartTable(6);
FloaterCommonExcel.AddId(builder, Id);
FloaterCommonExcel.AddFloaterRandomPosRangeY(builder, FloaterRandomPosRangeY);
FloaterCommonExcel.AddFloaterRandomPosRangeX(builder, FloaterRandomPosRangeX);
FloaterCommonExcel.AddFloaterOffsetPosY(builder, FloaterOffsetPosY);
FloaterCommonExcel.AddFloaterOffsetPosX(builder, FloaterOffsetPosX);
2024-11-08 10:52:05 +00:00
FloaterCommonExcel.AddTacticEntityType_(builder, TacticEntityType_);
2024-04-21 00:21:57 +00:00
return FloaterCommonExcel.EndFloaterCommonExcel(builder);
}
public static void StartFloaterCommonExcel(FlatBufferBuilder builder) { builder.StartTable(6); }
public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); }
2024-11-08 10:52:05 +00:00
public static void AddTacticEntityType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEntityType tacticEntityType_) { builder.AddInt(1, (int)tacticEntityType_, 0); }
2024-04-21 00:21:57 +00:00
public static void AddFloaterOffsetPosX(FlatBufferBuilder builder, int floaterOffsetPosX) { builder.AddInt(2, floaterOffsetPosX, 0); }
public static void AddFloaterOffsetPosY(FlatBufferBuilder builder, int floaterOffsetPosY) { builder.AddInt(3, floaterOffsetPosY, 0); }
public static void AddFloaterRandomPosRangeX(FlatBufferBuilder builder, int floaterRandomPosRangeX) { builder.AddInt(4, floaterRandomPosRangeX, 0); }
public static void AddFloaterRandomPosRangeY(FlatBufferBuilder builder, int floaterRandomPosRangeY) { builder.AddInt(5, floaterRandomPosRangeY, 0); }
public static Offset<SCHALE.Common.FlatData.FloaterCommonExcel> EndFloaterCommonExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.FloaterCommonExcel>(o);
}
2024-04-29 15:52:45 +00:00
public FloaterCommonExcelT UnPack() {
var _o = new FloaterCommonExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(FloaterCommonExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("FloaterCommon");
_o.Id = TableEncryptionService.Convert(this.Id, key);
2024-11-08 10:52:05 +00:00
_o.TacticEntityType_ = TableEncryptionService.Convert(this.TacticEntityType_, key);
2024-04-29 15:52:45 +00:00
_o.FloaterOffsetPosX = TableEncryptionService.Convert(this.FloaterOffsetPosX, key);
_o.FloaterOffsetPosY = TableEncryptionService.Convert(this.FloaterOffsetPosY, key);
_o.FloaterRandomPosRangeX = TableEncryptionService.Convert(this.FloaterRandomPosRangeX, key);
_o.FloaterRandomPosRangeY = TableEncryptionService.Convert(this.FloaterRandomPosRangeY, key);
}
public static Offset<SCHALE.Common.FlatData.FloaterCommonExcel> Pack(FlatBufferBuilder builder, FloaterCommonExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.FloaterCommonExcel>);
return CreateFloaterCommonExcel(
builder,
_o.Id,
2024-11-08 10:52:05 +00:00
_o.TacticEntityType_,
2024-04-29 15:52:45 +00:00
_o.FloaterOffsetPosX,
_o.FloaterOffsetPosY,
_o.FloaterRandomPosRangeX,
_o.FloaterRandomPosRangeY);
}
}
public class FloaterCommonExcelT
{
public long Id { get; set; }
2024-11-08 10:52:05 +00:00
public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get; set; }
2024-04-29 15:52:45 +00:00
public int FloaterOffsetPosX { get; set; }
public int FloaterOffsetPosY { get; set; }
public int FloaterRandomPosRangeX { get; set; }
public int FloaterRandomPosRangeY { get; set; }
public FloaterCommonExcelT() {
this.Id = 0;
this.TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_;
2024-04-29 15:52:45 +00:00
this.FloaterOffsetPosX = 0;
this.FloaterOffsetPosY = 0;
this.FloaterRandomPosRangeX = 0;
this.FloaterRandomPosRangeY = 0;
}
2024-04-21 00:21:57 +00:00
}
static public class FloaterCommonExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false)
2024-11-08 10:52:05 +00:00
&& verifier.VerifyField(tablePos, 6 /*TacticEntityType_*/, 4 /*SCHALE.Common.FlatData.TacticEntityType*/, 4, false)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyField(tablePos, 8 /*FloaterOffsetPosX*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 10 /*FloaterOffsetPosY*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 12 /*FloaterRandomPosRangeX*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 14 /*FloaterRandomPosRangeY*/, 4 /*int*/, 4, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}