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. | void | :ref:`clear_remaps<class_PathRemap_clear_remaps>` **(** **)** |
  17. +------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | void | :ref:`erase_remap<class_PathRemap_erase_remap>` **(** :ref:`String<class_string>` path **)** |
  19. +------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`String<class_string>` | :ref:`get_remap<class_PathRemap_get_remap>` **(** :ref:`String<class_string>` path **)** const |
  21. +------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`bool<class_bool>` | :ref:`has_remap<class_PathRemap_has_remap>` **(** :ref:`String<class_string>` path **)** const |
  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_clear_remaps:
  33. - void **clear_remaps** **(** **)**
  34. Clear all remaps.
  35. .. _class_PathRemap_erase_remap:
  36. - void **erase_remap** **(** :ref:`String<class_string>` path **)**
  37. Erase a remap.
  38. .. _class_PathRemap_get_remap:
  39. - :ref:`String<class_string>` **get_remap** **(** :ref:`String<class_string>` path **)** const
  40. Return the remapped new path of a file.
  41. .. _class_PathRemap_has_remap:
  42. - :ref:`bool<class_bool>` **has_remap** **(** :ref:`String<class_string>` path **)** const
  43. Return true if a file is being remapped.