Break internal Java/C# APIs

This is done on purpose, to avoid API version mismatches that
can cause bad decoding results, see:
https://github.com/google/flatbuffers/issues/5368

Change-Id: I2c857438377e080caad0e2d8bcc758c9b19bd6ec
This commit is contained in:
Wouter van Oortmerssen
2019-05-31 13:00:55 -07:00
parent c978b9ef1f
commit b652fcc3a7
33 changed files with 125 additions and 125 deletions

View File

@@ -17,15 +17,15 @@ public final class Attacker extends Table {
public static int createAttacker(FlatBufferBuilder builder,
int sword_attack_damage) {
builder.startObject(1);
builder.startTable(1);
Attacker.addSwordAttackDamage(builder, sword_attack_damage);
return Attacker.endAttacker(builder);
}
public static void startAttacker(FlatBufferBuilder builder) { builder.startObject(1); }
public static void startAttacker(FlatBufferBuilder builder) { builder.startTable(1); }
public static void addSwordAttackDamage(FlatBufferBuilder builder, int swordAttackDamage) { builder.addInt(0, swordAttackDamage, 0); }
public static int endAttacker(FlatBufferBuilder builder) {
int o = builder.endObject();
int o = builder.endTable();
return o;
}
}