17 Frontend needs to generate a preview of the map that is going to be used in game; there is no handshaking. |
17 Frontend needs to generate a preview of the map that is going to be used in game; there is no handshaking. |
18 |
18 |
19 Files in which this protocol is implemented: [https://hg.hedgewars.org/hedgewars/file/default/QTfrontend/hwmap.cpp hwmapp.cpp], [https://hg.hedgewars.org/hedgewars/file/default/project_files/HedgewarsMobile/Classes/MapConfigViewController.m MapConfigViewController.m] |
19 Files in which this protocol is implemented: [https://hg.hedgewars.org/hedgewars/file/default/QTfrontend/hwmap.cpp hwmapp.cpp], [https://hg.hedgewars.org/hedgewars/file/default/project_files/HedgewarsMobile/Classes/MapConfigViewController.m MapConfigViewController.m] |
20 |
20 |
21 === Protocol === |
21 === Protocol === |
22 || *Frontend* || *Engine* || *Format* || |
22 || *Frontend* || *Engine* || *Format* || |
23 || UUID || || {{{eseed { ... }}}} || |
23 || UUID || || `eseed { ... }` || |
24 || Template Filter || || {{{e$template_filter N}}} || |
24 || Template Filter || || `e$template_filter N` || |
25 || Map Type || || {{{e$mapgen N}}} || |
25 || Map Type || || `e$mapgen N` || |
26 || Maze Value || || {{{e$maze_size N}}} || |
26 || Maze Value || || `e$maze_size N` || |
27 || || 128×32 byte array || {{{0YSD3 ... FSAD0}}} || |
27 || || 128×32 byte array || `0YSD3 ... FSAD0` || |
28 |
28 |
29 === Message format === |
29 === Message format === |
30 ==== Seed ==== |
30 ==== Seed ==== |
31 In the Qt frontend, the seed is a UUID. |
31 In the Qt frontend, the seed is a UUID. |
32 The UUID is a 32 bytes array composed of ASCII characters; groups of letters should be separated by “-”. There are standard function calls to automatically generate this string depending on the tools used. |
32 The UUID is a 32 bytes array composed of ASCII characters; groups of letters should be separated by “-”. There are standard function calls to automatically generate this string depending on the tools used. |