pub struct TileConfig {Show 29 fields
pub ground: TileTypeDef,
pub dirt: TileTypeDef,
pub sand: TileTypeDef,
pub mud: TileTypeDef,
pub liquid: TileTypeDef,
pub deep_water: TileTypeDef,
pub rocky_ground: TileTypeDef,
pub grass: TileTypeDef,
pub debris: TileTypeDef,
pub wall: TileTypeDef,
pub wall_vert: TileTypeDef,
pub wall_horiz: TileTypeDef,
pub door_closed: TileTypeDef,
pub door_open: TileTypeDef,
pub stairs_up: TileTypeDef,
pub stairs_down: TileTypeDef,
pub bridge: TileTypeDef,
pub boulder: TileTypeDef,
pub chest: TileTypeDef,
pub crate_obj: TileTypeDef,
pub shrine: TileTypeDef,
pub bed: TileTypeDef,
pub consumable: TileTypeDef,
pub currency: TileTypeDef,
pub key_item: TileTypeDef,
pub unknown_obj: TileTypeDef,
pub hazard: TileTypeDef,
pub smoke: TileTypeDef,
pub custom: HashMap<String, TileTypeDef>,
}Expand description
Tile ID (u16) mappings, movement costs, and collision rules.
Defaults match the constants in tile.rs:
- Ground layer:
.,:`~=b;' - Structure layer:
#|_I*^v - Object layer:
oCcSB!$K? - Effect layer:
x%
Fields§
§ground: TileTypeDefGround tile: b’.’ — open floor. Cost 1, passable, transparent.
dirt: TileTypeDefDirt tile: b’,’ — soft earth. Cost 1, passable, transparent.
sand: TileTypeDefSand tile: b’:’ — loose sand. Cost 2, passable, transparent.
mud: TileTypeDefMud tile: b’`’ — wet ground. Cost 2, passable, transparent.
liquid: TileTypeDefLiquid tile: b’~’ — shallow water. Cost 3, passable, transparent.
deep_water: TileTypeDefDeep water tile: b’=’ — impassable water. Cost 999, blocks move, transparent.
rocky_ground: TileTypeDefRocky ground tile: b’b’ — rough terrain. Cost 2, passable, transparent.
grass: TileTypeDefGrass tile: b’;’ — grass. Cost 2, passable, transparent.
debris: TileTypeDefDebris tile: b’'’ — rubble. Cost 2, passable, transparent.
wall: TileTypeDefWall tile: b’#’ — solid wall. Cost 999, blocks move, blocks sight.
wall_vert: TileTypeDefVertical wall tile: b’|’ — vertical wall segment. Cost 999, blocks move, blocks sight.
wall_horiz: TileTypeDefHorizontal wall tile: b’_’ — horizontal wall segment. Cost 999, blocks move, blocks sight.
door_closed: TileTypeDefClosed door tile: b’I’ — closed door. Cost 999, blocks move, blocks sight.
door_open: TileTypeDefOpen door tile: b’*’ — open door. Cost 1, passable, transparent.
stairs_up: TileTypeDefStairs up tile: b’^’ — ascending stairs. Cost 1, passable, transparent.
stairs_down: TileTypeDefStairs down tile: b’v’ — descending stairs. Cost 1, passable, transparent.
bridge: TileTypeDefBridge tile: b’=’ — walkable bridge. Cost 1, passable, transparent.
boulder: TileTypeDefBoulder tile: b’o’ — large rock. Cost 999, blocks move, blocks sight.
chest: TileTypeDefChest tile: b’C’ — closed chest. Cost 999, blocks move, transparent.
crate_obj: TileTypeDefCrate tile: b’c’ — wooden crate. Cost 999, blocks move, transparent.
shrine: TileTypeDefShrine tile: b’S’ — interactive shrine. Cost 1, passable, transparent.
bed: TileTypeDefBed tile: b’B’ — bed. Cost 999, blocks move, transparent.
consumable: TileTypeDefConsumable tile: b’!’ — pickup item. Cost 1, passable, transparent.
currency: TileTypeDefCurrency tile: b’$’ — gold drop. Cost 1, passable, transparent.
key_item: TileTypeDefKey item tile: b’K’ — quest item pickup. Cost 1, passable, transparent.
unknown_obj: TileTypeDefUnknown object tile: b’?’ — unidentified. Cost 999, blocks move, transparent.
hazard: TileTypeDefHazard tile: b’x’ — environmental hazard. Cost 2, passable, transparent.
smoke: TileTypeDefSmoke tile: b’%’ — obscuring smoke. Cost 2, passable, blocks sight.
custom: HashMap<String, TileTypeDef>Additional custom tile definitions. Key = tile name, value = definition.
Trait Implementations§
Source§impl Clone for TileConfig
impl Clone for TileConfig
Source§fn clone(&self) -> TileConfig
fn clone(&self) -> TileConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more