VisualScriptConstructor.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptConstructor" inherits="VisualScriptNode" category="Core" version="3.0-alpha">
  3. <brief_description>
  4. A Visual Script node which calls a base type constructor.
  5. </brief_description>
  6. <description>
  7. A Visual Script node which calls a base type constructor. It can be used for type conversion as well.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_constructor" qualifiers="const">
  15. <return type="Dictionary">
  16. </return>
  17. <description>
  18. </description>
  19. </method>
  20. <method name="get_constructor_type" qualifiers="const">
  21. <return type="int" enum="Variant.Type">
  22. </return>
  23. <description>
  24. </description>
  25. </method>
  26. <method name="set_constructor">
  27. <return type="void">
  28. </return>
  29. <argument index="0" name="constructor" type="Dictionary">
  30. </argument>
  31. <description>
  32. </description>
  33. </method>
  34. <method name="set_constructor_type">
  35. <return type="void">
  36. </return>
  37. <argument index="0" name="type" type="int" enum="Variant.Type">
  38. </argument>
  39. <description>
  40. </description>
  41. </method>
  42. </methods>
  43. <members>
  44. <member name="constructor" type="Dictionary" setter="set_constructor" getter="get_constructor">
  45. The constructor function's method info. Has roughly the following structure:
  46. [codeblock]
  47. {
  48. name = "string",
  49. args = [{
  50. name = "string"
  51. class_name = "string"
  52. type = TYPE_*
  53. hint = PROPERTY_HINT_*
  54. hint_string = "string"
  55. }]
  56. default_args = [] # Array of variants
  57. flags = METHOD_FLAG_*
  58. id = 0
  59. return = {type = TYPE_*}
  60. }
  61. [/codeblock]
  62. </member>
  63. <member name="type" type="int" setter="set_constructor_type" getter="get_constructor_type" enum="Variant.Type">
  64. The type to be constructed.
  65. </member>
  66. </members>
  67. <constants>
  68. </constants>
  69. </class>