EngineProtocol.wiki
changeset 798 30c5f1ebd552
parent 745 99da4e68bc64
child 1092 b26366ceabba
equal deleted inserted replaced
797:ffa20ab0669b 798:30c5f1ebd552
    14 Messages are always in form of a string of bytes, and the first byte contains the message size (hence the maximum length is 255-1).
    14 Messages are always in form of a string of bytes, and the first byte contains the message size (hence the maximum length is 255-1).
    15 
    15 
    16 == Map preview ==
    16 == Map preview ==
    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: [http://hg.hedgewars.org/hedgewars/file/default/QTfrontend/hwmap.cpp hwmapp.cpp], [http://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}}} ||
    75 _No example needed_
    75 _No example needed_
    76 
    76 
    77 == In-game ==
    77 == In-game ==
    78 
    78 
    79 This doc needs more fleshing out, but in the interest of contributing, submitting an image I'd made after reading a GCI task.
    79 This doc needs more fleshing out, but in the interest of contributing, submitting an image I'd made after reading a GCI task.
    80 [http://hg.hedgewars.org/hedgewars/raw-file/default/doc/hwdemo.png HWD file] with a little colour markup of various interesting parts of the game.  BTW, if you ever need to debug a crashing demo, appending 032BFF to the end is a good way to make sure the demo doesn't close too early (see the image for why).
    80 [https://hg.hedgewars.org/hedgewars/raw-file/default/doc/hwdemo.png HWD file] with a little colour markup of various interesting parts of the game.  BTW, if you ever need to debug a crashing demo, appending 032BFF to the end is a good way to make sure the demo doesn't close too early (see the image for why).