HLEntity

From Valve Developer Community
Revision as of 02:38, 4 September 2009 by Lodle (talk | contribs) (moved Python HLEntity to HLEntity)
Jump to navigation Jump to search

This is the basic interface for entities

BOOST_PYTHON_MODULE(HLEntity)
{
	class_<CBaseEntity, boost::noncopyable>("CBaseEntity", no_init)
		.def("IsAlive", &CBaseEntity::IsAlive)
		.def("TeamNumber", &CBaseEntity::GetTeamNumber)
		.def("GetId", &CBaseEntity::entindex);
}