Skip to content

ds_wfc_gen_c_tile_thread

Kamran Wali edited this page Jul 5, 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.

Properties

Type Name Default Value
Thread _thread
bool _is_stop_thread

Methods

Return Type Name
void _thread_start_setup()
void _thread_start_add_tile(
DS_Tile tile )
void _thread_stop()

Property Descriptions

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.


Method Descriptions

void _thread_start_setup ()

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.


void _thread_stop ()

This method stops the _thread and the continuous Wave Function Collapse process.