-
Notifications
You must be signed in to change notification settings - Fork 0
Saved map structure
Guilherme Souza edited this page Oct 25, 2013
·
2 revisions
-
int size
: the number of cells in each dimension -
int mana
: the initial mana amount for each player -
int players
: the number of players -
int cells[].type
: the type id for each cell -
int cells[].x
: the x position (0 is left) -
int cells[].y
: the y position in the map (0 is bottom) -
int cells[].owner
: the owner position in the player array, or null if the cell is abandoned (ignored for walls) -
int cells[].population
: the initial cell population (ignored for walls) -
int cells[].level
: the initial cell level (ignored for walls and basic cells)
- Empty cells does not need to be present in
cells[]
{
"size": 10,
"mana": 10,
"players": 3,
"cells": [
{"x": 0, "y": 1, "type": 1},
{"x": 2, "y": 3, "type": 2, "owner": 0, "population": 17},
{"x": 4, "y": 5, "type": 5, "owner": 2, "population": 27, "level": 2}
]
}