Users should be able to read which release of the game they are playing, for example v2.0.1.
We should have the game keep this info in class about (later, we can display this on screen via about_view).
I have made a test to enforce this:
#ifdef FIX_ISSUE_596
// (596) The About object keeps track of the game version
{
about ab;
std::vector<std::string> version;
version = ab.get_version();
}
#endif
The test simply enforces that class about does contain a member function that returns a string, so your goal is to:
create this member function get_version()
ensure it returns a string
Of course, please make the string the current version of the game. You can find the version here in the release tab.
You'll probably need to know the basics of how a class works. If you don't, ask a more experienced member for help :)
Another solution is to look at other already existing cases, e.g. I suggest simply copy-pasting and editing about::get_link_discord() 😉
Users should be able to read which release of the game they are playing, for example
v2.0.1
. We should have the game keep this info in classabout
(later, we can display this on screen viaabout_view
).I have made a test to enforce this:
The test simply enforces that class
about
does contain a member function that returns a string, so your goal is to:get_version()
string
Of course, please make the string the current version of the game. You can find the version here in the release tab.
You'll probably need to know the basics of how a class works. If you don't, ask a more experienced member for help :) Another solution is to look at other already existing cases, e.g. I suggest simply copy-pasting and editing
about::get_link_discord()
😉