MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / near_callback

Method near_callback

ogsr_engine/xrGame/ClimableObject.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53CPHLeaderGeomShell::CPHLeaderGeomShell(CClimableObject* climable) { m_pClimable = climable; }
54void CPHLeaderGeomShell::near_callback(CPHObject* obj)
55{
56 if (obj && obj->CastType() == CPHObject::tpCharacter)
57 {
58 CPHCharacter* ch = static_cast<CPHCharacter*>(obj);
59 ch->SetElevator(m_pClimable);
60 }
61}
62
63CClimableObject::CClimableObject() { m_pStaticShell = NULL; }
64CClimableObject::~CClimableObject() {}

Callers 1

NearCallbackFunction · 0.45

Calls 2

CastTypeMethod · 0.45
SetElevatorMethod · 0.45

Tested by

no test coverage detected