EngineProtocol.wiki
changeset 7 a50f628f1564
parent 2 ba21be2f1b7a
child 204 feee16fc7297
equal deleted inserted replaced
6:1744484ba5c0 7:a50f628f1564
    19 == Protocol ==
    19 == Protocol ==
    20 || *Frontend*      || *Engine*          || *Format*                  ||
    20 || *Frontend*      || *Engine*          || *Format*                  ||
    21 || UUID            ||                   || {{{eseed { ... }}}}       ||
    21 || UUID            ||                   || {{{eseed { ... }}}}       ||
    22 || Template Filter ||                   || {{{e$template_filter N}}} ||
    22 || Template Filter ||                   || {{{e$template_filter N}}} ||
    23 || Map Type        ||                   || {{{e$mapgen N}}}          ||
    23 || Map Type        ||                   || {{{e$mapgen N}}}          ||
    24 || Maze Value      ||                   || {{{e$maze N}}}            ||
    24 || Maze Value      ||                   || {{{e$maze_size N}}}       ||
    25 ||                 || 128x32 byte array || {{{0YSD3 ... FSAD0}}}     ||
    25 ||                 || 128x32 byte array || {{{0YSD3 ... FSAD0}}}     ||
    26 
    26 
    27 == Message Format ==
    27 == Message Format ==
    28 === UUID ===
    28 === UUID ===
    29 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.
    29 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.
    61 || 2       || Large Tunnels           ||
    61 || 2       || Large Tunnels           ||
    62 || 3       || Small Floating Islands  ||
    62 || 3       || Small Floating Islands  ||
    63 || 4       || Medium Floating Islands ||
    63 || 4       || Medium Floating Islands ||
    64 || 5       || Large Floating Islands  ||
    64 || 5       || Large Floating Islands  ||
    65 
    65 
    66 Example: _e$mazesize 4_
    66 Example: _e$maze_size 4_
    67 
    67 
    68 === Image Array ===
    68 === Image Array ===
    69 The reply from engine is a 128x32 bytes array which contains the preview image in pixel-dot notation: every bit represents a pixel of the image, 1 is black, 0 i white. Clearly it can only contain a monochromatic image, but it can be colored by the rendering engine of the frontend.
    69 The reply from engine is a 128x32 bytes array which contains the preview image in pixel-dot notation: every bit represents a pixel of the image, 1 is black, 0 i white. Clearly it can only contain a monochromatic image, but it can be colored by the rendering engine of the frontend.
    70 
    70 
    71 This image format is supported by many platforms, but it's very easy to parse anyways. The result is always a 256x128 pixel image.
    71 This image format is supported by many platforms, but it's very easy to parse anyways. The result is always a 256x128 pixel image.