[][src]Module world_map_gen::board

This module provides a board struct representing world map.

Coordinates which are used in this library is,

  • Origin is at left top corner as (0, 0)
  • Right direction represents X and width, left direction represents Y and height
      width
 O--------------> x
h|
e|
i|
g|
h|
t|
 V
 y

Structs

Board

A struct to represent a one world map. It is generally created by gen module's random map generator. This struct is JSON serializable with serde_json.

Pos

Specific (x, y) position on board.