HLEntity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This is the basic interface for entities | This is the basic interface for entities | ||
<source lang=cpp> | |||
#include <boost/python.hpp> | #include <boost/python.hpp> | ||
namespace bp = boost::python; | namespace bp = boost::python; | ||
BOOST_PYTHON_MODULE(HLEntity) | BOOST_PYTHON_MODULE(HLEntity) | ||
{ | { |
Revision as of 03:50, 4 September 2009
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);
}