MCPcopy Create free account
hub / github.com/InoriRus/Kyty / FOR

Function FOR

source/lib/Scripts/src/Scripts.cpp:759–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757 lua_init();
758
759 FOR (i, keys)
760 {
761 const ScriptVar& v = keys.At(i);
762 if (v.IsInteger() && v.ToInteger() == m_key)
763 {
764 return values.At(i);
765 }
766 }
767 return ScriptVar();
768}
769#endif

Callers

nothing calls this directly

Calls 3

AtMethod · 0.80
IsIntegerMethod · 0.80
ToIntegerMethod · 0.80

Tested by

no test coverage detected