1 // <auto-generated>
2 //  automatically generated by the FlatBuffers compiler, do not modify
3 // </auto-generated>
4 
5 using global::System;
6 using global::FlatBuffers;
7 
8 public struct Attacker : IFlatbufferObject
9 {
10   private Table __p;
11   public ByteBuffer ByteBuffer { get { return __p.bb; } }
GetRootAsAttackerAttacker12   public static Attacker GetRootAsAttacker(ByteBuffer _bb) { return GetRootAsAttacker(_bb, new Attacker()); }
GetRootAsAttackerAttacker13   public static Attacker GetRootAsAttacker(ByteBuffer _bb, Attacker obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
__initAttacker14   public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
__assignAttacker15   public Attacker __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
16 
17   public int SwordAttackDamage { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
18 
CreateAttackerAttacker19   public static Offset<Attacker> CreateAttacker(FlatBufferBuilder builder,
20       int sword_attack_damage = 0) {
21     builder.StartObject(1);
22     Attacker.AddSwordAttackDamage(builder, sword_attack_damage);
23     return Attacker.EndAttacker(builder);
24   }
25 
StartAttackerAttacker26   public static void StartAttacker(FlatBufferBuilder builder) { builder.StartObject(1); }
AddSwordAttackDamageAttacker27   public static void AddSwordAttackDamage(FlatBufferBuilder builder, int swordAttackDamage) { builder.AddInt(0, swordAttackDamage, 0); }
EndAttackerAttacker28   public static Offset<Attacker> EndAttacker(FlatBufferBuilder builder) {
29     int o = builder.EndObject();
30     return new Offset<Attacker>(o);
31   }
32 };
33 
34