Skip to content

Hooks and Filters

Ben Greene edited this page Dec 12, 2017 · 2 revisions

Adding Tile Types

Filter name: brg_add_tile_parts

Description: filter for setting the different types of terrain. Array of tile arrays, each containing a name and color.

Example structure of the parameter:

array(
    'beach' => array(
      'can_walk' => true,
      'color'    => '#956E66'
    ),
    'sea' => array(
      'can_walk' => false,
      'color'    => '#119',
    ),
    'path' => array(
      'can_walk' => true,
      'color'    => '#771',
    ),
    ...
)

Clone this wiki locally