Created
June 15, 2018 01:59
-
-
Save johnX9/22f8a9ae0be2473c5c16a17536e6849e 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
if (currentPlayer.inventory.size() > 0) { | |
print(" Items: "); | |
for (uint32_t i = 0; i < currentPlayer.inventory.size(); i++) { | |
item currentItem = currentPlayer.inventory.at(i); | |
print(currentItem.name.c_str(), " == "); | |
} | |
} else { | |
print(" Empty inventory"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment