Documentation DungeonTile - SevenChords/BlenderDungeonGeneration GitHub Wiki
A Dungeon is built using a Dictionary, the tuple keys in the form of [x, y] are used to determine the position of each tile, the value for each key is an Instance of the Class DungeonTile. Each DungeonTile has the size of 0.5m*0.5m. Fields of the Class DungeonTile and their meaning:
- tileType: an Enumeration that is used to determine the type of the Tile, the following Types are used: FLOOR: a regular Floor tile WALL: a 2m tall Wall filling the entire Tile DOOR: a Wall with a Doorway through it FLOOR_WITH_OBJECT: a Floor Tile with a random Object on top of it (Barrel, Box, Remains etc.) WALL_WITH_OBJECT: a Wall Tile with a random Object attached to it (Torch, Old Painting, Mirror etc.)
- tileDecoration: an Enumeration that is used to determine the Style of the Tile, the following Styles are used: CLEAN: Normal Look, nothing out of the ordinary OVERGROWN: A Tile overgrown with Plants/Moss CRACKED: A Tile with visible Cracks PUDDLE: Floor Tiles only; 0.1m Deep Water, 0.2m Dry Edge around a Group of connected PUDDLE Tiles WATER: Flooded Tile, water Level is as High as the lowest Surrounding DungeonTile.height-0.2
- height: a Float Value representing the height of the bottom of the Tile in meters.
- display: only for debugging purposes, this is how the tile is displayed when printed to a cli.