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

Method ConSetView

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

Source from the content-addressed store, hash-verified

476 pSelf->GameClient()->m_MultiViewPersonalZoom = TargetLevel - 10.0f;
477}
478void CCamera::ConSetView(IConsole::IResult *pResult, void *pUserData)
479{
480 CCamera *pSelf = (CCamera *)pUserData;
481 // wait until free view camera type to update the position
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;

Callers

nothing calls this directly

Calls 2

SetViewMethod · 0.80
GetIntegerMethod · 0.45

Tested by

no test coverage detected