AddEventHandlerLua() public method

public AddEventHandlerLua ( ) : int
return int
Esempio n. 1
0
    public static int addEventListener(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 3 ||
            Luna.get_uniqueid(L, 1) != LunaTraits_LWF_LWF.uniqueID ||
            Lua.lua_isstring(L, 2) == 0 || !Lua.lua_isfunction(L, 3))
        {
            Luna.printStack(L);
            Lua.luaL_error(L, "luna typecheck failed: LWF.addEventListener");
        }

        LWF.LWF a = Luna_LWF_LWF.check(L, 1);
        return(a.AddEventHandlerLua());
    }