HLEntity

From Valve Developer Community
Revision as of 03:50, 4 September 2009 by Lodle (talk | contribs)
Jump to navigation Jump to search

This is the basic interface for entities

#include <boost/python.hpp>
namespace bp = boost::python;

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