LuaAPI.wiki
changeset 1054 0de5837d0fc5
parent 1046 1e19a1a5a450
child 1055 754e0a7bdd44
equal deleted inserted replaced
1053:bb4cfa5b41a0 1054:0de5837d0fc5
  1365 
  1365 
  1366 * `"skip"`: Current hedgehog skips its turn
  1366 * `"skip"`: Current hedgehog skips its turn
  1367 * `"draw <map>"`: Draws a hand-drawn map. `MapGen` must be `mgDrawn` for this to work. `<map>` is a string which must follow the format specified in [DrawnMapFormat]
  1367 * `"draw <map>"`: Draws a hand-drawn map. `MapGen` must be `mgDrawn` for this to work. `<map>` is a string which must follow the format specified in [DrawnMapFormat]
  1368 
  1368 
  1369 Moreover, the control action names as listed [ConfigurationFiles#[Binds] here] can be used. Note we will eventually try to remove all `ParseCommand`s in the official scripts.
  1369 Moreover, the control action names as listed [ConfigurationFiles#[Binds] here] can be used. Note we will eventually try to remove all `ParseCommand`s in the official scripts.
       
  1370 
       
  1371 === <tt>!EndLuaTest(success)</tt> ===
       
  1372 This function is used by the Hedgewars developers in testing scripts in order to test the game engine. The testing scripts can be found in the Hedgewars source code under `tests/lua`. This function is useless for anything else.
       
  1373 
       
  1374 Calling this function ends an engine test and reports a test result.
       
  1375 
       
  1376 `success` is either one of `TEST_SUCCESSFUL` to report a successful test or `TEST_FAILED` for a failed test.