Skip to content

Instantly share code, notes, and snippets.

@johnX9
Last active May 28, 2018 20:45
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/a03ab4a0acb41c877586d40a8ced127c to your computer and use it in GitHub Desktop.
Save johnX9/a03ab4a0acb41c877586d40a8ced127c to your computer and use it in GitHub Desktop.
//@abi table player i64
struct player {
uint64_t account_name;
string username;
uint64_t level;
int64_t health_points = 1000;
int64_t energy_points = 1000;
vector<string> abilities; // This is our new property
uint64_t primary_key() const { return account_name; }
EOSLIB_SERIALIZE(player, (account_name)(username)(level)(health_points)(energy_points)(abilities))
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment