Page 1 of 1

Customized Interface

Posted: Fri May 20, 2011 8:35 pm
by JoshN0S

Code: Select all

class IEntityInfo
{
public:
	virtual const char *GetClassName() = 0;
	virtual const QAngle& GetAbsAngles() const = 0;
	virtual const QAngle& GetLocalAngles() const = 0;
	virtual const Vector& GetAbsOrigin() const = 0;
	virtual const Vector& GetLocalOrigin() const = 0;
	virtual const Vector& GetAbsVelocity() const = 0;
	virtual const Vector& GetLocalVelocity() const = 0;
	virtual const QAngle& GetLocalAngularVelocity() const = 0;	
	// add more useful stuff
};

#define INTERFACEVERSION_ENTITYINFOMANAGER "EntityInfoManager001"
class IEntityInfoManager
{
public:
	virtual IEntityInfo *GetEntityInfo( edict_t *pEdict ) = 0;
};

Re: Customized Interface

Posted: Fri May 20, 2011 9:11 pm
by Blake
It looks like you took it right from source code... ;/