예제 #1
0
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);
 }