#include <ICmpUnitRenderer.h>
|
virtual tag_t | AddUnit (CEntityHandle entity, CUnit *unit, const CBoundingSphere &boundsApprox, int flags)=0 |
|
virtual void | RemoveUnit (tag_t tag)=0 |
|
virtual void | UpdateUnit (tag_t tag, CUnit *unit, const CBoundingSphere &boundsApprox)=0 |
|
virtual void | UpdateUnitPos (tag_t tag, bool inWorld, const CVector3D &pos0, const CVector3D &pos1)=0 |
|
virtual void | PickAllEntitiesAtPoint (std::vector< std::pair< CEntityHandle, CVector3D > > &outEntities, const CVector3D &origin, const CVector3D &dir, bool allowEditorSelectables) const =0 |
| Return a list of visual entities along with their center point. More...
|
|
virtual float | GetFrameOffset () const =0 |
| Returns the frame offset from the last Interpolate message. More...
|
|
virtual void | SetDebugOverlay (bool enabled)=0 |
| Toggle the rendering of debug info. More...
|
|
virtual | ~IComponent () |
|
virtual void | Init (const CParamNode ¶mNode)=0 |
|
virtual void | Deinit ()=0 |
|
virtual void | HandleMessage (const CMessage &msg, bool global) |
|
CEntityHandle | GetEntityHandle () const |
|
void | SetEntityHandle (CEntityHandle ent) |
|
entity_id_t | GetEntityId () const |
|
CEntityHandle | GetSystemEntity () const |
|
const CSimContext & | GetSimContext () const |
|
void | SetSimContext (const CSimContext &context) |
|
virtual void | Serialize (ISerializer &serialize)=0 |
|
virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize)=0 |
|
virtual bool | NewJSObject (ScriptInterface &scriptInterface, JS::MutableHandleObject out) const |
| Returns false by default, indicating that a scripted wrapper of this IComponent is not supported. More...
|
|
virtual JS::Value | GetJSInstance () const |
|
virtual int | GetComponentTypeId () const =0 |
|
Enumerator |
---|
ACTOR_ONLY |
|
VISIBLE_IN_ATLAS_ONLY |
|
virtual float ICmpUnitRenderer::GetFrameOffset |
( |
| ) |
const |
|
pure virtual |
Returns the frame offset from the last Interpolate message.
Implemented in CCmpUnitRenderer.
virtual void ICmpUnitRenderer::PickAllEntitiesAtPoint |
( |
std::vector< std::pair< CEntityHandle, CVector3D > > & |
outEntities, |
|
|
const CVector3D & |
origin, |
|
|
const CVector3D & |
dir, |
|
|
bool |
allowEditorSelectables |
|
) |
| const |
|
pure virtual |
Return a list of visual entities along with their center point.
Visual means they have an associated actor and a visual component, but they could still be hiden in the fog of war for a specific player, for example. NOTE: It's generally faster to do a lot of ray intersection tests than querying a lot of entities for component interfaces and doing these types of tests first.
Implemented in CCmpUnitRenderer.
virtual void ICmpUnitRenderer::RemoveUnit |
( |
tag_t |
tag | ) |
|
|
pure virtual |
virtual void ICmpUnitRenderer::SetDebugOverlay |
( |
bool |
enabled | ) |
|
|
pure virtual |
virtual void ICmpUnitRenderer::UpdateUnitPos |
( |
tag_t |
tag, |
|
|
bool |
inWorld, |
|
|
const CVector3D & |
pos0, |
|
|
const CVector3D & |
pos1 |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: