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

Function CheckArrayInValue

engine/Evaluator/express.cpp:657–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657static bool CheckArrayInValue(const GameArrayType& array1, const GameValue& value)
658{
659 if (value.GetType() != GameArray)
660 {
661 return false;
662 }
663 const GameArrayType& array2 = value;
664 if (&array1 == &array2)
665 {
666 return true;
667 }
668 for (int i = 0; i < array2.Size(); i++)
669 {
670 if (CheckArrayInValue(array1, array2[i]))
671 {
672 return true;
673 }
674 }
675 return false;
676}
677
678static GameValue ListSet(const GameState* state, GameValuePar oper1, GameValuePar oper2)
679{

Callers 1

ListSetFunction · 0.85

Calls 2

GetTypeMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected