Difference between revisions of "Surface - atom description"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
|transition_grid || atom<Grid> || null || Transition Grid of this Surface | |transition_grid || atom<Grid> || null || Transition Grid of this Surface | ||
|- | |- | ||
− | |transition_type || int || obligatory if<br> | + | |transition_type || int || obligatory if<br>transition_grid set || Transition type between ''grid'' and ''transition_grid'' |
|- | |- | ||
|grass || atom<Grass> || null || Grass representation atom. | |grass || atom<Grass> || null || Grass representation atom. |
Revision as of 16:37, 12 February 2021
General description
- Surface atoms represent graphical representation of each tile.
- Type of Surface on specific tile is determined by set Grid atoms of its four vertices.
- In the image above you can see single Surface in the cyan rhombus and its four Grid in the red rects.
- Left and bottom Grit atoms are of type soil and top and right are of type desert, so the result Surface atom is transition from soil to desert.
Properties description
Name | Type | Default value / Obligatory |
Description |
---|---|---|---|
grid | atom<Grid> | obligatory | Main Grid of this Surface |
masque | masque | obligatory | Surface masque. |
transition_grid | atom<Grid> | null | Transition Grid of this Surface |
transition_type | int | obligatory if transition_grid set |
Transition type between grid and transition_grid |
grass | atom<Grass> | null | Grass representation atom. |
grass_ending | atom<Grass> | null | Grass ending representation atom. |
Properties in detail
grid
- Grid atom for which this Surface is representant.
- When all vertices of a tile has this Grid type, then this Surface is used.
- It also serves as on of two transition Grids for transition tiles.