Fix for build break in c# vector of unions (#5271)

This commit is contained in:
Kamil Rojewski
2019-04-05 20:49:12 +02:00
committed by Wouter van Oortmerssen
parent 5cdbd02404
commit 2d67de3151
6 changed files with 8 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ public struct Attacker : IFlatbufferObject
public Attacker __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public int SwordAttackDamage { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public bool MutateSwordAttackDamage(int sword_attack_damage) { int o = __p.__offset(4); if (o != 0) { __p.bb.PutInt(o + __p.bb_pos, sword_attack_damage); return true; } else { return false; } }
public static Offset<Attacker> CreateAttacker(FlatBufferBuilder builder,
int sword_attack_damage = 0) {