Skip to content
Snippets Groups Projects
Commit 4c6ed6da authored by toaster's avatar toaster
Browse files

The availability unlockable number for a skin is now available, read only, to Lua.

parent 417e9187
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,8 @@ enum skin {
skin_starttranscolor,
skin_prefcolor,
skin_highresscale,
skin_soundsid
skin_soundsid,
skin_availability
};
static const char *const skin_opt[] = {
"valid",
......@@ -86,6 +87,7 @@ static const char *const skin_opt[] = {
"prefcolor",
"highresscale",
"soundsid",
"availability",
NULL};
#define UNIMPLEMENTED luaL_error(L, LUA_QL("skin_t") " field " LUA_QS " is not implemented for Lua and cannot be accessed.", skin_opt[field])
......@@ -205,6 +207,9 @@ static int skin_get(lua_State *L)
case skin_soundsid:
LUA_PushUserdata(L, skin->soundsid, META_SOUNDSID);
break;
case skin_availability:
lua_pushinteger(L, skin->availability);
break;
}
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment