2017-05-16 21:28:34 +00:00
|
|
|
// <auto-generated>
|
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
// </auto-generated>
|
2016-06-18 01:16:11 +00:00
|
|
|
|
|
|
|
namespace MyGame.Example2
|
|
|
|
{
|
|
|
|
|
2017-03-29 18:09:25 +00:00
|
|
|
using global::System;
|
2020-01-30 18:18:28 +00:00
|
|
|
using global::System.Collections.Generic;
|
2017-03-29 18:09:25 +00:00
|
|
|
using global::FlatBuffers;
|
2016-06-18 01:16:11 +00:00
|
|
|
|
2016-08-13 01:01:38 +00:00
|
|
|
public struct Monster : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
2016-09-09 13:25:09 +00:00
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
2021-05-10 18:17:31 +00:00
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_2_0_0(); }
|
2016-06-18 01:16:11 +00:00
|
|
|
public static Monster GetRootAsMonster(ByteBuffer _bb) { return GetRootAsMonster(_bb, new Monster()); }
|
2019-06-17 17:16:21 +00:00
|
|
|
public static Monster GetRootAsMonster(ByteBuffer _bb, Monster obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
2016-08-13 01:01:38 +00:00
|
|
|
public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
2016-06-18 01:16:11 +00:00
|
|
|
|
|
|
|
|
2019-05-31 20:00:55 +00:00
|
|
|
public static void StartMonster(FlatBufferBuilder builder) { builder.StartTable(0); }
|
2019-06-14 15:47:08 +00:00
|
|
|
public static Offset<MyGame.Example2.Monster> EndMonster(FlatBufferBuilder builder) {
|
2019-05-31 20:00:55 +00:00
|
|
|
int o = builder.EndTable();
|
2019-06-14 15:47:08 +00:00
|
|
|
return new Offset<MyGame.Example2.Monster>(o);
|
2016-06-18 01:16:11 +00:00
|
|
|
}
|
2020-01-30 18:18:28 +00:00
|
|
|
public MonsterT UnPack() {
|
|
|
|
var _o = new MonsterT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(MonsterT _o) {
|
|
|
|
}
|
|
|
|
public static Offset<MyGame.Example2.Monster> Pack(FlatBufferBuilder builder, MonsterT _o) {
|
|
|
|
if (_o == null) return default(Offset<MyGame.Example2.Monster>);
|
|
|
|
StartMonster(builder);
|
|
|
|
return EndMonster(builder);
|
|
|
|
}
|
2021-08-17 15:02:57 +00:00
|
|
|
}
|
2016-06-18 01:16:11 +00:00
|
|
|
|
2020-01-30 18:18:28 +00:00
|
|
|
public class MonsterT
|
|
|
|
{
|
|
|
|
|
|
|
|
public MonsterT() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-18 01:16:11 +00:00
|
|
|
|
|
|
|
}
|