Skip to content

Instantly share code, notes, and snippets.

@johnX9
Last active May 31, 2018 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnX9/4704cb3991b9ca0dab49a76b49330d2b to your computer and use it in GitHub Desktop.
Save johnX9/4704cb3991b9ca0dab49a76b49330d2b to your computer and use it in GitHub Desktop.
//@abi table item i64
struct item {
uint64_t item_id;
string name;
uint64_t power;
uint64_t health;
string ability;
uint64_t level_up;
uint64_t primary_key() const { return item_id; }
EOSLIB_SERIALIZE(item, (item_id)(name)(power)(health)(ability)(level_up))
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment