Skip to content

Instantly share code, notes, and snippets.

@extrawurst
Created December 16, 2015 18:34
Show Gist options
  • Save extrawurst/4b09c40e56a33ee93aa1 to your computer and use it in GitHub Desktop.
Save extrawurst/4b09c40e56a33ee93aa1 to your computer and use it in GitHub Desktop.
flatbuffers
Monster.startMonster(fbb);
Monster.addPos(fbb, Vec3.createVec3(fbb, 1.0f, 2.0f, 3.0f, 3.0, (byte)4, (short)5, (byte)6));
Monster.addHp(fbb, (short)80);
Monster.addName(fbb, str);
Monster.addInventory(fbb, inv);
Monster.addTest_type(fbb, (byte)1);
Monster.addTest(fbb, mon2);
Monster.addTest4(fbb, test4s);
int mon = Monster.endMonster(fbb);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment