20 #ifndef NPC_MESH_HEADER 21 #define NPC_MESH_HEADER 27 #include "csutil/scf.h" 28 #include "csutil/weakref.h" 35 struct iMeshFactoryWrapper;
37 struct iObjectRegistry;
84 iMeshFactoryWrapper*
LoadMeshFactory(
const char* fileName,
const char* factoryName);
94 bool SetMesh(
const char* factoryName,
const char* fileName);
108 void SetMesh(iMeshWrapper* newMesh);
121 void MoveMesh(iSector* sector,
const csVector3 &position);
124 csRef<iMeshWrapper> mesh;
125 iObjectRegistry* objectReg;
126 csWeakRef<iEngine> engine;
This is a helper class that defines a mesh on the server.
iMeshFactoryWrapper * LoadMeshFactory(const char *fileName, const char *factoryName)
Load a mesh factory.
void RemoveMesh()
Removes the mesh from the engine.
bool SetMesh(const char *factoryName, const char *fileName)
Set a mesh.
void MoveMesh(iSector *sector, const csVector3 &position)
Move a mesh.
npcMesh(iObjectRegistry *objreg, gemNPCObject *owner, psNPCClient *super)
Create a new gem Mesh.
The main NPC Client class holding references to important superclient objects.
iMeshWrapper * GetMesh()
Get the Crystal Space iMeshWrapper from this.