Interface ILuaFunction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ILuaFunction
A function, which can be called from Lua. If you need to return a table of functions, it is recommended to use an object with LuaFunction methods, or implement IDynamicLuaObject.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    call(IArguments arguments)
    Call this function with a series of arguments.
  • Method Details

    • call

      MethodResult call(IArguments arguments) throws LuaException
      Call this function with a series of arguments. Note, this will always be called on the computer thread, and so its implementation must be thread-safe.
      Parameters:
      arguments - The arguments for this function
      Returns:
      The result of calling this function.
      Throws:
      LuaException - Upon Lua errors.