Exemple #1
0
    public void Invoke()
    {
        MethodInfo methodInfo = APICommandBuffer.GetAPIMethod(methodName);

        if (methodInfo == null)
        {
            return;
        }

        methodInfo.Invoke(null, arguments);
    }
Exemple #2
0
    public bool AddCommand(string methodName, params object[] arguments)
    {
        if (APICommandBuffer.GetAPIMethod(methodName) == null)
        {
            return(false);
        }

        APICommand command = new APICommand(methodName, arguments);

        _Commands.Add(command);

        return(true);
    }