mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
move node interest add for JL to JL
This commit is contained in:
parent
6979135fe3
commit
b965d850d5
4 changed files with 4 additions and 8 deletions
|
@ -23,6 +23,9 @@ JurisdictionListener::JurisdictionListener(NODE_TYPE type, PacketSenderNotify* n
|
|||
|
||||
connect(NodeList::getInstance(), &NodeList::nodeKilled, this, &JurisdictionListener::nodeKilled);
|
||||
//qDebug("JurisdictionListener::JurisdictionListener(NODE_TYPE type=%c)", type);
|
||||
|
||||
// tell our NodeList we want to hear about nodes with our node type
|
||||
NodeList::getInstance()->addNodeTypeToInterestSet(type);
|
||||
}
|
||||
|
||||
void JurisdictionListener::nodeKilled(SharedNodePointer node) {
|
||||
|
|
|
@ -13,7 +13,6 @@ ParticlesScriptingInterface::ParticlesScriptingInterface() :
|
|||
_nextCreatorTokenID(0),
|
||||
_particleTree(NULL)
|
||||
{
|
||||
NodeList::getInstance()->addNodeTypeToInterestSet(NODE_TYPE_PARTICLE_SERVER);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -8,10 +8,6 @@
|
|||
|
||||
#include "VoxelsScriptingInterface.h"
|
||||
|
||||
VoxelsScriptingInterface::VoxelsScriptingInterface() {
|
||||
NodeList::getInstance()->addNodeTypeToInterestSet(NODE_TYPE_VOXEL_SERVER);
|
||||
}
|
||||
|
||||
void VoxelsScriptingInterface::queueVoxelAdd(PACKET_TYPE addPacketType, VoxelDetail& addVoxelDetails) {
|
||||
getVoxelPacketSender()->queueVoxelEditMessages(addPacketType, 1, &addVoxelDetails);
|
||||
}
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
/// handles scripting of voxel commands from JS passed to assigned clients
|
||||
class VoxelsScriptingInterface : public OctreeScriptingInterface {
|
||||
Q_OBJECT
|
||||
public:
|
||||
VoxelsScriptingInterface();
|
||||
|
||||
public:
|
||||
VoxelEditPacketSender* getVoxelPacketSender() { return (VoxelEditPacketSender*)getPacketSender(); }
|
||||
|
||||
virtual NODE_TYPE getServerNodeType() const { return NODE_TYPE_VOXEL_SERVER; }
|
||||
|
|
Loading…
Reference in a new issue