| 2080 | } |
| 2081 | |
| 2082 | static int textures_deleteHandle(lua_State *state) |
| 2083 | { |
| 2084 | if (lua_isinteger(state,1)) { |
| 2085 | auto handle = luaL_checkunsigned(state, 1); |
| 2086 | Textures::deleteHandle(handle); |
| 2087 | } else if (lua_istable(state,1)) { |
| 2088 | vector<TexposHandle> handles; |
| 2089 | Lua::GetVector(state, handles); |
| 2090 | for (auto& handle: handles) { |
| 2091 | Textures::deleteHandle(handle); |
| 2092 | } |
| 2093 | } |
| 2094 | return 0; |
| 2095 | } |
| 2096 | |
| 2097 | static int textures_createTile(lua_State *state) |
| 2098 | { |
nothing calls this directly
no test coverage detected