MCPcopy Create free account
hub / github.com/ddnet/ddnet / ConSetViewRelative

Method ConSetViewRelative

src/game/client/components/camera.cpp:484–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482 pSelf->SetView(ivec2(pResult->GetInteger(0), pResult->GetInteger(1)));
483}
484void CCamera::ConSetViewRelative(IConsole::IResult *pResult, void *pUserData)
485{
486 CCamera *pSelf = (CCamera *)pUserData;
487 // wait until free view camera type to update the position
488 pSelf->SetView(ivec2(pResult->GetInteger(0), pResult->GetInteger(1)), true);
489}
490void CCamera::ConGotoSwitch(IConsole::IResult *pResult, void *pUserData)
491{
492 CCamera *pSelf = (CCamera *)pUserData;

Callers

nothing calls this directly

Calls 2

SetViewMethod · 0.80
GetIntegerMethod · 0.45

Tested by

no test coverage detected