Skip to content

ds_wfc_base_continuous

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

Inherits: ds_wfc_gen

Inherited By: ds_wfc_gen_c_tile and ds_wfc_gen_expand

Base class for all the continuous Wave Function Collapse generator objects.

Description

ds_wfc_base_continuous is the parent/base class for all the stage generator scripts that uses continuous Wave Function Collapse for generating stages.

Properties

Type Name Default Value
DS_Tile[] _tiles_connect
DS_Tile _tile_connect
DS_Tile _tile_searched

Methods

Return Type Name
void add_tile_to_connect( DS_Tile tile )
void process_connect_tiles()
int get_edge_x( DS_Tile tile, int edge )
int get_edge_y( DS_Tile tile, int edge )
int get_edge_z( DS_Tile tile, int edge )

Property Descriptions

DS_Tile[] _tiles_connect

An array of newly created tiles that needs to be connected to the current grid and tiles in it. Basically these are tiles that needs to be processed by connecting them to the neighbouring tiles.


DS_Tile _tile_connect

The tile to connect to the current grid and tiles in it.


DS_Tile _tile_searched

The neighbouring tiles of the newly created tile. These neighbouring tiles are later connected to the newly created tile.


Method Descriptions

void add_tile_to_connect ( DS_Tile tile )

This method adds a tile to be processed for connecting with other tiles.


void process_connect_tiles ()

This method handles the newly added tile connection processing. Basically this is the method where the tiles are connected.


int get_edge_x ( DS_Tile tile, int edge )

This method gets the x coordinate value from the given tile for the given edge parameter.


int get_edge_y ( DS_Tile tile, int edge )

This method gets the y coordinate value from the given tile for the given edge parameter.


int get_edge_z ( DS_Tile tile, int edge )

This method gets the z coordinate value from the given tile for the given edge parameter.