procedurals
Procedural generation building blocks
Loading...
Searching...
No Matches
WaveFunctionCollapse::Rules Struct Reference

User-defined adjacency rules. Tile IDs are indices 0..neighbors.size()-1. neighbors[t] = list of tile IDs allowed next to tile t (any 4-dir). More...

#include <WaveFunctionCollapse.hpp>

Public Member Functions

int tileCount () const
 

Public Attributes

std::vector< std::vector< int > > neighbors
 

Detailed Description

User-defined adjacency rules. Tile IDs are indices 0..neighbors.size()-1. neighbors[t] = list of tile IDs allowed next to tile t (any 4-dir).

Member Function Documentation

◆ tileCount()

int WaveFunctionCollapse::Rules::tileCount ( ) const
inline

Member Data Documentation

◆ neighbors

std::vector<std::vector<int> > WaveFunctionCollapse::Rules::neighbors

The documentation for this struct was generated from the following file: