Skip to content

Roads API #102

@webD97

Description

@webD97

(This is still WIP, details following within the next days)

streets.roads.register_surface(name, surface_definition)

This will put the definition into a local table

streets.roads.register_label(name, label_definition)

This will put the definition into a local table

To allow for other mods (and therefore our own submods) to register their own surfaces and labels, this code only puts the definition into the private tables. They will be registered in a minetest.after(0, function) function to make sure that all other code has already been run, so that all definitions are there.

streets.roads.register_registration_hook(function)

Additionally, there should be streets.roads.register_registration_hook(function) function to allow other mods and submods to execute custom code during the registration of a road node. This could be used by #101 to register stairs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions