Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
fdee31ab
Commit
fdee31ab
authored
13 years ago
by
Perttu Ahola
Browse files
Options
Downloads
Patches
Plain Diff
...and the map part of that
parent
c68f2121
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/map.h
+13
-0
13 additions, 0 deletions
src/map.h
with
13 additions
and
0 deletions
src/map.h
+
13
−
0
View file @
fdee31ab
...
...
@@ -41,6 +41,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include
"mapchunk.h"
#include
"nodemetadata.h"
/*
Temporarily exposed map generator stuff
Should only be used for testing
*/
double
base_rock_level_2d
(
u64
seed
,
v2s16
p
);
/*
MapEditEvent
*/
#define MAPTYPE_BASE 0
#define MAPTYPE_SERVER 1
#define MAPTYPE_CLIENT 2
...
...
@@ -592,6 +603,8 @@ class ServerMap : public Map
bool
isSavingEnabled
(){
return
m_map_saving_enabled
;
}
u64
getSeed
(){
return
m_seed
;
}
private
:
// Seed used for all kinds of randomness
u64
m_seed
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment