Last active
May 28, 2018 20:45
-
-
Save johnX9/a03ab4a0acb41c877586d40a8ced127c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@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