Example #1
0
    public static int OnMessage(IntPtr l)
    {
        int result;

        try
        {
            ProjectLPlayerContextWrapper projectLPlayerContextWrapper = (ProjectLPlayerContextWrapper)LuaObject.checkSelf(l);
            object msg;
            LuaObject.checkType <object>(l, 2, out msg);
            int msgId;
            LuaObject.checkType(l, 3, out msgId);
            projectLPlayerContextWrapper.OnMessage(msg, msgId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }