public void Invoke() { MethodInfo methodInfo = APICommandBuffer.GetAPIMethod(methodName); if (methodInfo == null) { return; } methodInfo.Invoke(null, arguments); }
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); }