コード例 #1
0
ファイル: CEntityNatives.cpp プロジェクト: killserver/GTA-IV
int CEntityNatives::GetType(SQVM* pVM)
{
	CEntity* pEntity = sq_toentity(pVM, 2);
	if(pEntity)
		sq_pushstring(pVM,pEntity->GetTag().Get(),pEntity->GetTag().GetLength());
	else
		sq_pushnull(pVM);
	return 1;
}
コード例 #2
0
 void CQTOpenGLUserFunctions::Call(CEntity& c_entity) {
    TThunk t_thunk = m_cThunks[c_entity.GetTag()];
    if(t_thunk) (this->*t_thunk)(c_entity);
 }