using System;
using System.Collections.Generic;
using System.Text;
using Irony.Compiler;
namespace ScriptNET.Runtime
{
///
/// Objects implementing this interface may be called from the script
/// just like usual functions.
///
public interface IInvokable
{
///
/// Indicates wether Invoke could be called
///
/// boolean value
bool CanInvoke();
///
/// Executes call to the object.
///
/// Current execution context
/// Arguments or empty list. Prefer passing empty array instead of null.
/// execution result
object Invoke(IScriptContext context, object[] args);
}
}