mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 20:31:23 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user