MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / pushToLua

Function pushToLua

framework/luaframework.h:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104void pushToLua(lua_State *L, const Xorshift128Plus<uint32_t> &t);
105
106template <typename T> void pushToLua(lua_State *L, Vec3<T> &v)
107{
108 lua_createtable(L, 0, 3);
109 pushToLua(L, v.x);
110 lua_setfield(L, -2, "x");
111 pushToLua(L, v.y);
112 lua_setfield(L, -2, "y");
113 pushToLua(L, v.z);
114 lua_setfield(L, -2, "z");
115}
116template <typename T> void pushToLua(lua_State *L, const Vec3<T> &v)
117{
118 lua_createtable(L, 0, 3);

Callers 4

advanceIpairsIteratorFunction · 0.70
advancePairsIteratorFunction · 0.70
containerIndexIntegerFunction · 0.70
containerIndexMapFunction · 0.70

Calls 2

getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected