class_pathremap.rst 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_PathRemap:
  4. PathRemap
  5. =========
  6. **Inherits:** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Singleton containing the list of remapped resources.
  11. Member Functions
  12. ----------------
  13. +------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | void | :ref:`add_remap<class_PathRemap_add_remap>` **(** :ref:`String<class_string>` from, :ref:`String<class_string>` to, :ref:`String<class_string>` locale="" **)** |
  15. +------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`has_remap<class_PathRemap_has_remap>` **(** :ref:`String<class_string>` path **)** const |
  17. +------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`String<class_string>` | :ref:`get_remap<class_PathRemap_get_remap>` **(** :ref:`String<class_string>` path **)** const |
  19. +------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | void | :ref:`erase_remap<class_PathRemap_erase_remap>` **(** :ref:`String<class_string>` path **)** |
  21. +------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`clear_remaps<class_PathRemap_clear_remaps>` **(** **)** |
  23. +------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. Description
  25. -----------
  26. When exporting, the types of some resources may change internally so they are converted to more optimized versions. While it's not usually necessary to access to this directly (path remapping happens automatically when opening a file), it's exported just for information.
  27. Member Function Description
  28. ---------------------------
  29. .. _class_PathRemap_add_remap:
  30. - void **add_remap** **(** :ref:`String<class_string>` from, :ref:`String<class_string>` to, :ref:`String<class_string>` locale="" **)**
  31. Add a remap from a file to another.
  32. .. _class_PathRemap_has_remap:
  33. - :ref:`bool<class_bool>` **has_remap** **(** :ref:`String<class_string>` path **)** const
  34. Return true if a file is being remapped.
  35. .. _class_PathRemap_get_remap:
  36. - :ref:`String<class_string>` **get_remap** **(** :ref:`String<class_string>` path **)** const
  37. Return the remapped new path of a file.
  38. .. _class_PathRemap_erase_remap:
  39. - void **erase_remap** **(** :ref:`String<class_string>` path **)**
  40. Erase a remap.
  41. .. _class_PathRemap_clear_remaps:
  42. - void **clear_remaps** **(** **)**
  43. Clear all remaps.