port/mars-tycoon
Last change
on this file was 8125274, checked in by Jonathan Neufeld <support@…>, 3 years ago |
(WIP) Introduction of GD Native module and Godot-CPP API sub-module
|
-
Property mode
set to
100644
|
File size:
853 bytes
|
Line | |
---|
1 | #ifndef TERRAINGEN_H
|
---|
2 | #define TERRAINGEN_H
|
---|
3 |
|
---|
4 | #include <Godot.hpp>
|
---|
5 | #include <Object.hpp>
|
---|
6 | #include <File.hpp>
|
---|
7 | #include <Resource.hpp>
|
---|
8 |
|
---|
9 | #include "core.h"
|
---|
10 |
|
---|
11 | namespace godot {
|
---|
12 | class TerrainGen : public Object
|
---|
13 | {
|
---|
14 | private:
|
---|
15 | GODOT_CLASS(TerrainGen, Object);
|
---|
16 |
|
---|
17 | geoworld::GeoMorphRegistry * geoMorphRegistry;
|
---|
18 | TerrainGeneratorCore * core;
|
---|
19 |
|
---|
20 | private:
|
---|
21 | String config;
|
---|
22 |
|
---|
23 | void reloadMineralsReader();
|
---|
24 |
|
---|
25 | public:
|
---|
26 | String outputFile;
|
---|
27 | short tileDim, width, height, depth;
|
---|
28 |
|
---|
29 | public:
|
---|
30 | static void _register_methods();
|
---|
31 |
|
---|
32 | TerrainGen();
|
---|
33 | ~TerrainGen();
|
---|
34 |
|
---|
35 | String get_config();
|
---|
36 | void set_config(String config);
|
---|
37 |
|
---|
38 | void build();
|
---|
39 |
|
---|
40 | void _init();
|
---|
41 | };
|
---|
42 | }
|
---|
43 |
|
---|
44 | #endif // TERRAINGEN_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.