-
Notifications
You must be signed in to change notification settings - Fork 2
ds_wfc_gen_c_tile_thread
Kamran Wali edited this page Jul 7, 2024
·
5 revisions
Inherits: ds_wfc_gen_c_tile
ds_wfc_gen_c_tile_thread is the threaded class version of the script ds_wfc_gen_c_tile. It too generates stages using continuous Wave Function Collapse that creates a new tile in the grid in any coordinate by using thread. This helps by NOT freezing the application when large stages are being generated or new tiles created.
Type | Name | Default Value |
---|---|---|
Thread | _thread | |
bool | _is_stop_thread |
Return Type | Name |
---|---|
void | _thread_start_setup() |
void | _thread_start_add_tile( DS_Tile tile ) |
void | _thread_stop() |
Thread _thread
The thread that will run the continuous Wave Function Collapse.
bool _is_stop_thread = false
Flag to check the status of the _thread. True
means the thread has stopped, false
otherwise.
This method starts the setup() method in the _thread.
void _thread_start_add_tile ( DS_Tile tile )
This starts the add_tile( DS_Tile tile ) method in the _thread.
This method stops the _thread and the continuous Wave Function Collapse process.
TOOLS
CLASS REFERENCE
- Generators
-
- Wave Function Collapse
- Grids
- Tiles