Module Tilemap

type t
val of_strings : Playground.number -> string list -> t
val of_xpm : Playground.number -> string -> t
val size : t -> Playground.number
val cols : t -> int
val rows : t -> int
val bounds : t -> Camera2d.rect
val get : t -> int -> int -> char option
val set : t -> int -> int -> char -> t
val to_strings : t -> string list
val find : t -> char -> (int * int) list
val center : t -> int -> int -> Playground.number * Playground.number
val cell : t -> Playground.number -> Playground.number -> int * int
val tile_at : t -> Playground.number -> Playground.number -> char option
val view : (char -> Playground.shape) -> t -> Playground.shape
val view_visible : Camera2d.rect -> (char -> Playground.shape) -> t -> Playground.shape
val hits : (char -> bool) -> t -> Playground.number -> Playground.number -> Playground.number -> Playground.number -> bool