Skip to content

ds_wfc_gen_expand_thread

Kamran Wali edited this page Jul 7, 2024 · 4 revisions

Inherits: ds_wfc_gen_expand

Description

ds_wfc_gen_expand_thread is the threaded class version of the script ds_wfc_gen_expand. It too generates stages using continuous Wave Function Collapse that expands the grid by using thread. This helps by NOT freezing the application when large stages are being generated or expanded.

Properties

Type Name Default Value
Thread _thread
bool _is_stop_thread

Methods

Return Type Name
void _thread_start_setup()
void _thread_start_expand_grid()
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_expand_grid ( int dir )

This method starts the expand_grid( int dir ) method in the _thread.


void _thread_stop ()

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