MCPcopy Create free account
hub / github.com/NetHack/NetHack / nhl_add_table_entry_region

Function nhl_add_table_entry_region

src/nhlua.c:325–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void
326nhl_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. */

Callers 1

l_push_mkroom_tableFunction · 0.85

Calls 1

nhl_add_table_entry_intFunction · 0.85

Tested by

no test coverage detected