VisualScriptClassConstant.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptClassConstant" inherits="VisualScriptNode" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Gets a constant from a given class.
  5. </brief_description>
  6. <description>
  7. This node returns a constant from a given class, such as [@GlobalScope.TYPE_INT]. See the given class' documentation for available constants.
  8. [b]Input Ports:[/b]
  9. none
  10. [b]Output Ports:[/b]
  11. - Data (variant): [code]value[/code]
  12. </description>
  13. <tutorials>
  14. </tutorials>
  15. <demos>
  16. </demos>
  17. <methods>
  18. <method name="get_base_type">
  19. <return type="String">
  20. </return>
  21. <description>
  22. </description>
  23. </method>
  24. <method name="get_class_constant">
  25. <return type="String">
  26. </return>
  27. <description>
  28. </description>
  29. </method>
  30. <method name="set_base_type">
  31. <return type="void">
  32. </return>
  33. <argument index="0" name="name" type="String">
  34. </argument>
  35. <description>
  36. </description>
  37. </method>
  38. <method name="set_class_constant">
  39. <return type="void">
  40. </return>
  41. <argument index="0" name="name" type="String">
  42. </argument>
  43. <description>
  44. </description>
  45. </method>
  46. </methods>
  47. <members>
  48. <member name="base_type" type="String" setter="set_base_type" getter="get_base_type">
  49. The constant's parent class.
  50. </member>
  51. <member name="constant" type="String" setter="set_class_constant" getter="get_class_constant">
  52. The constant to return. See the given class for its available constants.
  53. </member>
  54. </members>
  55. <constants>
  56. </constants>
  57. </class>