mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-15 08:08:26 +02:00
Register the new classes into the ClassDB.
This commit is contained in:
parent
6e5407c55f
commit
129ed4e349
@ -1,7 +1,14 @@
|
|||||||
|
|
||||||
#include "register_types.h"
|
#include "register_types.h"
|
||||||
|
|
||||||
|
#include "overlapping_wave_form_collapse.h"
|
||||||
|
#include "tiling_wave_form_collapse.h"
|
||||||
|
#include "wave_form_collapse.h"
|
||||||
|
|
||||||
void register_wfc_types() {
|
void register_wfc_types() {
|
||||||
|
ClassDB::register_class<WaveFormCollapse>();
|
||||||
|
ClassDB::register_class<OverlappingWaveFormCollapse>();
|
||||||
|
ClassDB::register_class<TilingWaveFormCollapse>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void unregister_wfc_types() {
|
void unregister_wfc_types() {
|
||||||
|
@ -41,7 +41,7 @@ struct Tile {
|
|||||||
Tile(const Array2D<uint32_t> &p_data, Symmetry p_symmetry, double p_weight);
|
Tile(const Array2D<uint32_t> &p_data, Symmetry p_symmetry, double p_weight);
|
||||||
};
|
};
|
||||||
|
|
||||||
class TilingWaveFormCollapse : WaveFormCollapse {
|
class TilingWaveFormCollapse : public WaveFormCollapse {
|
||||||
GDCLASS(TilingWaveFormCollapse, WaveFormCollapse);
|
GDCLASS(TilingWaveFormCollapse, WaveFormCollapse);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user