#include "serverobject.h"
#include <fstream>
#include "inventory.h"
+#include "tooldef.h"
-core::map<u16, ServerActiveObject::Factory> ServerActiveObject::m_types;
-
-ServerActiveObject::ServerActiveObject(ServerEnvironment *env, u16 id, v3f pos):
- ActiveObject(id),
+ServerActiveObject::ServerActiveObject(ServerEnvironment *env, v3f pos):
+ ActiveObject(0),
m_known_by_count(0),
m_removed(false),
m_pending_deactivation(false),
}
Factory f = n->getValue();
- ServerActiveObject *object = (*f)(env, id, pos, data);
+ ServerActiveObject *object = (*f)(env, pos, data);
return object;
}
m_types.insert(type, f);
}
+void ServerActiveObject::getWieldDiggingProperties(ToolDiggingProperties *dst)
+{
+ *dst = ToolDiggingProperties();
+}
+