ResourceInteractiveLoader.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ResourceInteractiveLoader" inherits="Reference" category="Core" version="3.1">
  3. <brief_description>
  4. Interactive Resource Loader.
  5. </brief_description>
  6. <description>
  7. Interactive Resource Loader. This object is returned by ResourceLoader when performing an interactive load. It allows to load with high granularity, so this is mainly useful for displaying load bars/percentages.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_resource">
  15. <return type="Resource">
  16. </return>
  17. <description>
  18. Return the loaded resource (only if loaded). Otherwise, returns null.
  19. </description>
  20. </method>
  21. <method name="get_stage" qualifiers="const">
  22. <return type="int">
  23. </return>
  24. <description>
  25. Return the load stage. The total amount of stages can be queried with [method get_stage_count]
  26. </description>
  27. </method>
  28. <method name="get_stage_count" qualifiers="const">
  29. <return type="int">
  30. </return>
  31. <description>
  32. Return the total amount of stages (calls to [method poll]) needed to completely load this resource.
  33. </description>
  34. </method>
  35. <method name="poll">
  36. <return type="int" enum="Error">
  37. </return>
  38. <description>
  39. Poll the load. If OK is returned, this means poll will have to be called again. If ERR_FILE_EOF is returned, them the load has finished and the resource can be obtained by calling [method get_resource].
  40. </description>
  41. </method>
  42. <method name="wait">
  43. <return type="int" enum="Error">
  44. </return>
  45. <description>
  46. </description>
  47. </method>
  48. </methods>
  49. <constants>
  50. </constants>
  51. </class>