MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / NewColor

Method NewColor

LuaSTGPlus/LuaWrapper.cpp:1786–1802  ·  view source on GitHub ↗

对象构造函数

Source from the content-addressed store, hash-verified

1784
1785 // 对象构造函数
1786 static int NewColor(lua_State* L)LNOEXCEPT
1787 {
1788 fcyColor c;
1789 if (lua_gettop(L) == 1)
1790 c.argb = luaL_checkinteger(L, 1);
1791 else
1792 {
1793 c = fcyColor(
1794 luaL_checkinteger(L, 1),
1795 luaL_checkinteger(L, 2),
1796 luaL_checkinteger(L, 3),
1797 luaL_checkinteger(L, 4)
1798 );
1799 }
1800 *ColorWrapper::CreateAndPush(L) = c;
1801 return 1;
1802 }
1803 static int NewRand(lua_State* L)LNOEXCEPT
1804 {
1805 RandomizerWrapper::CreateAndPush(L);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected