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