| 323 | } |
| 324 | |
| 325 | void |
| 326 | nhl_add_table_entry_region(lua_State *L, const char *name, coordxy x1, |
| 327 | coordxy y1, coordxy x2, coordxy y2) |
| 328 | { |
| 329 | lua_pushstring(L, name); |
| 330 | lua_newtable(L); |
| 331 | nhl_add_table_entry_int(L, "x1", x1); |
| 332 | nhl_add_table_entry_int(L, "y1", y1); |
| 333 | nhl_add_table_entry_int(L, "x2", x2); |
| 334 | nhl_add_table_entry_int(L, "y2", y2); |
| 335 | lua_rawset(L, -3); |
| 336 | } |
| 337 | |
| 338 | /* converting from special level "map character" to levl location type |
| 339 | and back. order here is important. */ |
no test coverage detected