MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / displayText

Function displayText

engine/Evaluator/EvalState.cpp:20–29  ·  view source on GitHub ↗

A string yields its raw text; GetText() would wrap it in quotes.

Source from the content-addressed store, hash-verified

18
19// A string yields its raw text; GetText() would wrap it in quotes.
20static 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
31static GameValue StubHint(const GameState* state, GameValuePar arg)
32{

Callers 4

StubLogInfoFunction · 0.85
StubTextLogFunction · 0.85
StubDebugLogFunction · 0.85
StubDiagLogFunction · 0.85

Calls 2

GetTypeMethod · 0.45
GetTextMethod · 0.45

Tested by

no test coverage detected