refactor(Scripts/Mechanar): Modernize Mechano Lord Capacitus script (#15491)

This commit is contained in:
Skjalf
2023-03-19 19:52:08 -03:00
committed by GitHub
parent 7b3b22a2e6
commit f887e000b7
3 changed files with 111 additions and 146 deletions

View File

@@ -211,6 +211,11 @@ inline bool isNumeric(char c)
return (c >= '0' && c <= '9');
}
inline bool IsEvenNumber(int32 n)
{
return n % 2 == 0;
}
inline bool isNumeric(char const* str)
{
for (char const* c = str; *c; ++c)