class_jsonrpc.rst 5.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the JSONRPC.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_JSONRPC:
  6. JSONRPC
  7. =======
  8. **Inherits:** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Methods
  13. -------
  14. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`Dictionary<class_Dictionary>` | :ref:`make_notification<class_JSONRPC_method_make_notification>` **(** :ref:`String<class_String>` method, :ref:`Variant<class_Variant>` params **)** |
  16. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`Dictionary<class_Dictionary>` | :ref:`make_request<class_JSONRPC_method_make_request>` **(** :ref:`String<class_String>` method, :ref:`Variant<class_Variant>` params, :ref:`Variant<class_Variant>` id **)** |
  18. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`Dictionary<class_Dictionary>` | :ref:`make_response<class_JSONRPC_method_make_response>` **(** :ref:`Variant<class_Variant>` result, :ref:`Variant<class_Variant>` id **)** |
  20. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`Dictionary<class_Dictionary>` | :ref:`make_response_error<class_JSONRPC_method_make_response_error>` **(** :ref:`int<class_int>` code, :ref:`String<class_String>` message, :ref:`Variant<class_Variant>` id=null **)** const |
  22. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Variant<class_Variant>` | :ref:`process_action<class_JSONRPC_method_process_action>` **(** :ref:`Variant<class_Variant>` action, :ref:`bool<class_bool>` recurse=false **)** |
  24. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`String<class_String>` | :ref:`process_string<class_JSONRPC_method_process_string>` **(** :ref:`String<class_String>` action **)** |
  26. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`set_scope<class_JSONRPC_method_set_scope>` **(** :ref:`String<class_String>` scope, :ref:`Object<class_Object>` target **)** |
  28. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. Enumerations
  30. ------------
  31. .. _enum_JSONRPC_ErrorCode:
  32. .. _class_JSONRPC_constant_PARSE_ERROR:
  33. .. _class_JSONRPC_constant_INVALID_REQUEST:
  34. .. _class_JSONRPC_constant_METHOD_NOT_FOUND:
  35. .. _class_JSONRPC_constant_INVALID_PARAMS:
  36. .. _class_JSONRPC_constant_INTERNAL_ERROR:
  37. enum **ErrorCode**:
  38. - **PARSE_ERROR** = **-32700**
  39. - **INVALID_REQUEST** = **-32600**
  40. - **METHOD_NOT_FOUND** = **-32601**
  41. - **INVALID_PARAMS** = **-32602**
  42. - **INTERNAL_ERROR** = **-32603**
  43. Method Descriptions
  44. -------------------
  45. .. _class_JSONRPC_method_make_notification:
  46. - :ref:`Dictionary<class_Dictionary>` **make_notification** **(** :ref:`String<class_String>` method, :ref:`Variant<class_Variant>` params **)**
  47. .. _class_JSONRPC_method_make_request:
  48. - :ref:`Dictionary<class_Dictionary>` **make_request** **(** :ref:`String<class_String>` method, :ref:`Variant<class_Variant>` params, :ref:`Variant<class_Variant>` id **)**
  49. .. _class_JSONRPC_method_make_response:
  50. - :ref:`Dictionary<class_Dictionary>` **make_response** **(** :ref:`Variant<class_Variant>` result, :ref:`Variant<class_Variant>` id **)**
  51. .. _class_JSONRPC_method_make_response_error:
  52. - :ref:`Dictionary<class_Dictionary>` **make_response_error** **(** :ref:`int<class_int>` code, :ref:`String<class_String>` message, :ref:`Variant<class_Variant>` id=null **)** const
  53. .. _class_JSONRPC_method_process_action:
  54. - :ref:`Variant<class_Variant>` **process_action** **(** :ref:`Variant<class_Variant>` action, :ref:`bool<class_bool>` recurse=false **)**
  55. .. _class_JSONRPC_method_process_string:
  56. - :ref:`String<class_String>` **process_string** **(** :ref:`String<class_String>` action **)**
  57. .. _class_JSONRPC_method_set_scope:
  58. - void **set_scope** **(** :ref:`String<class_String>` scope, :ref:`Object<class_Object>` target **)**