mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
ObjDefManager, Mapgen SAPI: Huge refactoring
- General code cleanup - Unified object creation and loading - Specifying objects in APIs is now orthogonal (i.e. anything can take an ID, name string, or the raw table definition (and automatically registers if present
This commit is contained in:
@@ -41,6 +41,11 @@ class NodeResolver;
|
||||
#define MTSCHEM_PROB_NEVER 0x00
|
||||
#define MTSCHEM_PROB_ALWAYS 0xFF
|
||||
|
||||
enum SchematicType
|
||||
{
|
||||
SCHEMATIC_NORMAL,
|
||||
};
|
||||
|
||||
|
||||
class Schematic : public ObjDef, public NodeResolver {
|
||||
public:
|
||||
@@ -83,7 +88,7 @@ public:
|
||||
return "schematic";
|
||||
}
|
||||
|
||||
Schematic *create(int type)
|
||||
static Schematic *create(SchematicType type)
|
||||
{
|
||||
return new Schematic;
|
||||
}
|
||||
|
Reference in New Issue
Block a user