MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ScriptWarn

Function ScriptWarn

TombEngine/Scripting/Internal/ScriptAssert.cpp:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4static ErrorMode ScriptErrorMode = ErrorMode::Warn;
5
6void ScriptWarn(const std::string& msg)
7{
8 switch (ScriptErrorMode)
9 {
10 case ErrorMode::Terminate:
11 case ErrorMode::Warn:
12 TENLog(msg, LogLevel::Warning, LogConfig::All);
13 break;
14 }
15}
16
17bool ScriptAssert(bool cond, const std::string& msg, std::optional<ErrorMode> forceMode)
18{

Callers 7

SetActionMethod · 0.85
SetWeatherStrengthMethod · 0.85
InitializeMethod · 0.85
SetHPMethod · 0.85
SetEffectMethod · 0.85
SetVelocityMethod · 0.85
SetFrameNumberMethod · 0.85

Calls 1

TENLogFunction · 0.85

Tested by

no test coverage detected