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

Method TypeError

engine/Evaluator/express.cpp:116–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void GameState::TypeError(GameType exp, GameType was, const char* name) const
117{
118 char expName[512];
119 char wasName[512];
120 snprintf(expName, sizeof(expName), "%s", (const char*)GetTypeName(exp));
121 snprintf(wasName, sizeof(wasName), "%s", (const char*)GetTypeName(was));
122 SetError(EvalType, wasName, expName);
123 if (name)
124 {
125 // append name before error message
126 RString withName = name + RString(": ") + _e->_errorText;
127 _e->_errorText = withName;
128 }
129}
130
131void GameState::vynech() const
132{

Callers 15

ListSetFunction · 0.80
StringLocalFunction · 0.80
StringRepeatFunction · 0.80
ArrayThenFunction · 0.80
ParticleDropFunction · 0.80
UnitCreateFunction · 0.80
ObjAnimateFunction · 0.80
GetRelPosFunction · 0.80
GrpSetIdentityFunction · 0.80
VehAddUserActionFunction · 0.80
VehAddEventHandlerFunction · 0.80

Calls 3

GetTypeNameFunction · 0.70
SetErrorFunction · 0.50
RStringClass · 0.50

Tested by

no test coverage detected