projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make getters of the Settings class const
[oweals/minetest.git]
/
src
/
treegen.h
diff --git
a/src/treegen.h
b/src/treegen.h
index 16c85cf0a301c079cce25c3e396fa2b37eefcb8a..a557ad97516fca2e77625576901fb31a1b2436b9 100644
(file)
--- a/
src/treegen.h
+++ b/
src/treegen.h
@@
-25,10
+25,16
@@
with this program; if not, write to the Free Software Foundation, Inc.,
class ManualMapVoxelManipulator;
class INodeDefManager;
class ManualMapVoxelManipulator;
class INodeDefManager;
+class ServerEnvironment;
namespace treegen {
namespace treegen {
+ enum error {
+ SUCCESS,
+ UNBALANCED_BRACKETS
+ };
+
struct TreeDef {
std::string initial_axiom;
std::string rules_a;
struct TreeDef {
std::string initial_axiom;
std::string rules_a;
@@
-49,6
+55,7
@@
namespace treegen {
MapNode fruitnode;
int fruit_chance;
int seed;
MapNode fruitnode;
int fruit_chance;
int seed;
+ bool explicit_seed;
};
// Add default tree
};
// Add default tree
@@
-59,10
+66,10
@@
namespace treegen {
INodeDefManager *ndef, int seed);
// Add L-Systems tree (used by engine)
INodeDefManager *ndef, int seed);
// Add L-Systems tree (used by engine)
-
void
make_ltree(ManualMapVoxelManipulator &vmanip, v3s16 p0, INodeDefManager *ndef,
+
treegen::error
make_ltree(ManualMapVoxelManipulator &vmanip, v3s16 p0, INodeDefManager *ndef,
TreeDef tree_definition);
// Spawn L-systems tree from LUA
TreeDef tree_definition);
// Spawn L-systems tree from LUA
-
void
spawn_ltree (ServerEnvironment *env, v3s16 p0, INodeDefManager *ndef,
+
treegen::error
spawn_ltree (ServerEnvironment *env, v3s16 p0, INodeDefManager *ndef,
TreeDef tree_definition);
// L-System tree gen helper functions
TreeDef tree_definition);
// L-System tree gen helper functions