MCPcopy Create free account
hub / github.com/DFHack/dfhack / Push

Method Push

library/LuaTools.cpp:89–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 */
88
89void DFHack::Lua::Push(lua_State *state, const Units::NoblePosition &pos)
90{
91 lua_createtable(state, 0, 3);
92 Lua::PushDFObject(state, pos.entity);
93 lua_setfield(state, -2, "entity");
94 Lua::PushDFObject(state, pos.assignment);
95 lua_setfield(state, -2, "assignment");
96 Lua::PushDFObject(state, pos.position);
97 lua_setfield(state, -2, "position");
98}
99
100void DFHack::Lua::Push(lua_State *state, const df::coord &pos)
101{

Callers

nothing calls this directly

Calls 4

lua_createtableFunction · 0.85
PushDFObjectFunction · 0.85
lua_setfieldFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected