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

Function PushDFObject

library/include/LuaTools.h:161–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 */
160 template<df_object T>
161 void PushDFObject(lua_State *state, T *ptr) {
162 PushDFObject(state, df::identity_traits<T>::get(), ptr);
163 }
164
165 /**
166 * Check that the value is a wrapped DF object of the correct type, and if so return the pointer.

Callers 15

PushMethod · 0.85
doAssignDFObjectFunction · 0.85
gui_getWidgetFunction · 0.85
units_getUnitsInBoxFunction · 0.85
units_getCasteRawFunction · 0.85
maps_getTileBlockFunction · 0.85
maps_ensureTileBlockFunction · 0.85
maps_getTileFlagsFunction · 0.85
maps_getRegionBiomeFunction · 0.85
maps_getPlantAtTileFunction · 0.85
buildings_findAtTileFunction · 0.85
buildings_findPenPitAtFunction · 0.85

Calls 1

getFunction · 0.70

Tested by

no test coverage detected