Maps Service
Provides information about EggWars maps on the CubeCraft Games network.
This service is served under /cubepanion/maps
Endpoints
GET /
Returns an array of Map
s.
Models
Map
{
"unique_name": "",
"map_name": "",
"team_size": 0,
"layout": "", //double_cross, cross, triple_cross, or square
"colours": "",
"build_limit": 0,
"generators": [`Generator`]
}
Converting the map colours may be a bit tricky, it's a stringed array. Addon code
Generator
{
"unique_name": "", // The map name
"ordering": 0,
"gen_type": "", // diamond, gold, or iron
"gen_location": "", // middle, semimiddle, or base
"level": 0,
"count": 0
}