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

Function GetValObject

engine/Poseidon/Network/NetworkScriptValueCodec.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17constexpr int kMaxRemoteExecTargetArrayDepth = 16;
18
19Object* GetValObject(GameValuePar oper)
20{
21 if (oper.GetType() == GameObject)
22 {
23 return static_cast<GameDataObject*>(oper.GetData())->GetObject();
24 }
25 return nullptr;
26}
27
28AIGroup* GetValGroup(GameValuePar oper)
29{

Callers 2

SerializeScriptValueFunction · 0.85

Calls 3

GetTypeMethod · 0.45
GetObjectMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected