viva_aion/tile

Tile - The fundamental unit of reality

In VIVA’s cosmology, space is discrete. Each tile represents a quantum of existence with specific properties.

Tile Types

Types

The fundamental unit of the labyrinth

pub type Tile {
  Void
  Wall
  Path
  Core
}

Constructors

  • Void

    The Abyss - beyond the boundaries of existence

  • Wall

    Structure - the walls that define reality

  • Path

    Data Flow - passable space

  • Core

    The Leviathan - singularity point, triggers Big Bounce

Values

pub fn from_int(n: Int) -> Tile

Convert integer to tile

pub fn is_passable(tile: Tile) -> Bool

Check if a tile is passable

pub fn is_singularity(tile: Tile) -> Bool

Check if a tile is the singularity

pub fn to_char(tile: Tile) -> String

Get display character for tile

pub fn to_int(tile: Tile) -> Int

Convert tile to integer (for serialization)

Search Document