aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
Commit message (Collapse)AuthorAge
* Rewrite rail connection system...orwell962017-12-18
| | | | | | | | | ...to support an arbitrary number of connections for rails, which leads to these new features: - switches now get recognized by the trackworker correctly - ability to add real rail crosses During this, I also rewrote the rail registering system and the conway function (important part of path prediction) Note, developers: the track preset format changed, you might need to rewrite them according to the presets in tracks.lua if you wrote your own (possibly breaks advcarts)
* Add missing documentation for set_lineorwell962017-10-25
|
* Implement multi-occupation in detector.on_node table to finally fix collisionsorwell962017-10-25
|
* Set wagon line numberGabriel PĂ©rez-Cerezo2017-10-23
|
* Remove zip release files, move mod to root, exclude assets from Makefile (#92)rubenwardy2017-09-20
def.h" ServerActiveObject::ServerActiveObject(ServerEnvironment *env, v3f pos): ActiveObject(0), m_known_by_count(0), m_removed(false), m_pending_deactivation(false), m_static_exists(false), m_static_block(1337,1337,1337), m_env(env), m_base_position(pos) { } ServerActiveObject::~ServerActiveObject() { } ServerActiveObject* ServerActiveObject::create(u8 type, ServerEnvironment *env, u16 id, v3f pos, const std::string &data) { // Find factory function core::map<u16, Factory>::Node *n; n = m_types.find(type); if(n == NULL) { // If factory is not found, just return. dstream<<"WARNING: ServerActiveObject: No factory for type=" <<type<<std::endl; return NULL; } Factory f = n->getValue(); ServerActiveObject *object = (*f)(env, pos, data); return object; } void ServerActiveObject::registerType(u16 type, Factory f) { core::map<u16, Factory>::Node *n; n = m_types.find(type); if(n) return; m_types.insert(type, f); } void ServerActiveObject::getWieldDiggingProperties(ToolDiggingProperties *dst) { *dst = ToolDiggingProperties(); }