Пример #1
0
 public static Offset <EnemyHP> CreateEnemyHP(FlatBufferBuilder builder,
                                              int waves             = 0,
                                              VectorOffset hpOffset = default(VectorOffset))
 {
     builder.StartObject(2);
     EnemyHP.AddHp(builder, hpOffset);
     EnemyHP.AddWaves(builder, waves);
     return(EnemyHP.EndEnemyHP(builder));
 }
Пример #2
0
 public static EnemyHP GetRootAsEnemyHP(ByteBuffer _bb, EnemyHP obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }