aboutsummaryrefslogtreecommitdiff
path: root/doc
ModeNameSize
-rw-r--r--Doxyfile.in1531logplain
-rw-r--r--README.android4350logplain
-rw-r--r--client_lua_api.txt56215logplain
-rw-r--r--fst_api.txt5299logplain
-rw-r--r--lgpl-2.1.txt26530logplain
-rw-r--r--lua_api.txt271732logplain
-rw-r--r--main_page.dox247logplain
-rw-r--r--menu_lua_api.txt8458logplain
-rw-r--r--minetest.63001logplain
-rw-r--r--minetestserver.621logplain
-rw-r--r--mod_channels.png349332logplain
-rw-r--r--protocol.txt3518logplain
-rw-r--r--texture_packs.txt7649logplain
-rw-r--r--world_format.txt18854logplain
pan> ServerActiveObject* ServerActiveObject::create(ActiveObjectType type, ServerEnvironment *env, u16 id, v3f pos, const std::string &data) { // Find factory function std::map<u16, Factory>::iterator n; n = m_types.find(type); if(n == m_types.end()) { // These are 0.3 entity types, return without error. if (ACTIVEOBJECT_TYPE_ITEM <= type && type <= ACTIVEOBJECT_TYPE_MOBV2) { return NULL; } // If factory is not found, just return. dstream<<"WARNING: ServerActiveObject: No factory for type=" <<type<<std::endl; return NULL; } Factory f = n->second; ServerActiveObject *object = (*f)(env, pos, data); return object; } void ServerActiveObject::registerType(u16 type, Factory f) { std::map<u16, Factory>::iterator n; n = m_types.find(type); if(n != m_types.end()) return; m_types[type] = f; } float ServerActiveObject::getMinimumSavedMovement() { return 2.0*BS; }