class_jsonrpc.rst 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. Methods
  10. -------
  11. +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  12. | :ref:`Dictionary<class_Dictionary>` | :ref:`make_notification<class_JSONRPC_method_make_notification>` **(** :ref:`String<class_String>` method, :ref:`Variant<class_Variant>` params **)** |
  13. +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | :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 **)** |
  15. +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`Dictionary<class_Dictionary>` | :ref:`make_response<class_JSONRPC_method_make_response>` **(** :ref:`Variant<class_Variant>` result, :ref:`Variant<class_Variant>` id **)** |
  17. +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :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| |
  19. +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Variant<class_Variant>` | :ref:`process_action<class_JSONRPC_method_process_action>` **(** :ref:`Variant<class_Variant>` action, :ref:`bool<class_bool>` recurse=false **)** |
  21. +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`String<class_String>` | :ref:`process_string<class_JSONRPC_method_process_string>` **(** :ref:`String<class_String>` action **)** |
  23. +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`set_scope<class_JSONRPC_method_set_scope>` **(** :ref:`String<class_String>` scope, :ref:`Object<class_Object>` target **)** |
  25. +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. Enumerations
  27. ------------
  28. .. _enum_JSONRPC_ErrorCode:
  29. .. _class_JSONRPC_constant_PARSE_ERROR:
  30. .. _class_JSONRPC_constant_INVALID_REQUEST:
  31. .. _class_JSONRPC_constant_METHOD_NOT_FOUND:
  32. .. _class_JSONRPC_constant_INVALID_PARAMS:
  33. .. _class_JSONRPC_constant_INTERNAL_ERROR:
  34. enum **ErrorCode**:
  35. - **PARSE_ERROR** = **-32700**
  36. - **INVALID_REQUEST** = **-32600**
  37. - **METHOD_NOT_FOUND** = **-32601**
  38. - **INVALID_PARAMS** = **-32602**
  39. - **INTERNAL_ERROR** = **-32603**
  40. Method Descriptions
  41. -------------------
  42. .. _class_JSONRPC_method_make_notification:
  43. - :ref:`Dictionary<class_Dictionary>` **make_notification** **(** :ref:`String<class_String>` method, :ref:`Variant<class_Variant>` params **)**
  44. ----
  45. .. _class_JSONRPC_method_make_request:
  46. - :ref:`Dictionary<class_Dictionary>` **make_request** **(** :ref:`String<class_String>` method, :ref:`Variant<class_Variant>` params, :ref:`Variant<class_Variant>` id **)**
  47. ----
  48. .. _class_JSONRPC_method_make_response:
  49. - :ref:`Dictionary<class_Dictionary>` **make_response** **(** :ref:`Variant<class_Variant>` result, :ref:`Variant<class_Variant>` id **)**
  50. ----
  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. ----
  54. .. _class_JSONRPC_method_process_action:
  55. - :ref:`Variant<class_Variant>` **process_action** **(** :ref:`Variant<class_Variant>` action, :ref:`bool<class_bool>` recurse=false **)**
  56. ----
  57. .. _class_JSONRPC_method_process_string:
  58. - :ref:`String<class_String>` **process_string** **(** :ref:`String<class_String>` action **)**
  59. ----
  60. .. _class_JSONRPC_method_set_scope:
  61. - void **set_scope** **(** :ref:`String<class_String>` scope, :ref:`Object<class_Object>` target **)**
  62. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  63. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  64. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`