mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-06 08:05:54 +01: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 "overlapping_wave_form_collapse.h"
|
||||
#include "tiling_wave_form_collapse.h"
|
||||
#include "wave_form_collapse.h"
|
||||
|
||||
void register_wfc_types() {
|
||||
ClassDB::register_class<WaveFormCollapse>();
|
||||
ClassDB::register_class<OverlappingWaveFormCollapse>();
|
||||
ClassDB::register_class<TilingWaveFormCollapse>();
|
||||
}
|
||||
|
||||
void unregister_wfc_types() {
|
||||
|
@ -41,7 +41,7 @@ struct Tile {
|
||||
Tile(const Array2D<uint32_t> &p_data, Symmetry p_symmetry, double p_weight);
|
||||
};
|
||||
|
||||
class TilingWaveFormCollapse : WaveFormCollapse {
|
||||
class TilingWaveFormCollapse : public WaveFormCollapse {
|
||||
GDCLASS(TilingWaveFormCollapse, WaveFormCollapse);
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user