A string yields its raw text; GetText() would wrap it in quotes.
| 18 | |
| 19 | // A string yields its raw text; GetText() would wrap it in quotes. |
| 20 | static std::string displayText(GameValuePar arg) |
| 21 | { |
| 22 | if (arg.GetType() == GameString) |
| 23 | { |
| 24 | RString text = arg; |
| 25 | return std::string((const char*)text); |
| 26 | } |
| 27 | RString text = arg.GetText(); |
| 28 | return std::string((const char*)text); |
| 29 | } |
| 30 | |
| 31 | static GameValue StubHint(const GameState* state, GameValuePar arg) |
| 32 | { |
no test coverage detected