diff options
| author | Juan Linietsky | 2017-01-25 21:55:59 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-25 21:57:08 -0300 |
| commit | 96de0141ccef3bb035574010816dafdbfc17eb63 (patch) | |
| tree | 24bcad418177b4aba1a24d959a50ff401028f0ea /core/path_remap.h | |
| parent | ae258e2679bd9deda8b311d030771fab03303833 (diff) | |
| download | godot-96de0141ccef3bb035574010816dafdbfc17eb63.tar.gz godot-96de0141ccef3bb035574010816dafdbfc17eb63.tar.zst godot-96de0141ccef3bb035574010816dafdbfc17eb63.zip | |
Diffstat (limited to 'core/path_remap.h')
| -rw-r--r-- | core/path_remap.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/core/path_remap.h b/core/path_remap.h index a106030f9..966bb10ea 100644 --- a/core/path_remap.h +++ b/core/path_remap.h @@ -29,39 +29,4 @@ #ifndef PATH_REMAP_H #define PATH_REMAP_H -#include "hash_map.h" -#include "ustring.h" -#include "object.h" - - -class PathRemap : public Object { - - GDCLASS(PathRemap,Object); - - static PathRemap* singleton; - struct RemapData { - String always; - Map<String,String> locale; - }; - - HashMap<String,RemapData> remap; -protected: - - static void _bind_methods(); -public: - - void add_remap(const String& p_from, const String& p_to,const String& p_locale=String()); - bool has_remap(const String& p_from) const; - //_FORCE_INLINE_ String get_remap(const String& p_from) const { const String *ptr=remap.getptr(p_from); if (!ptr) return p_from; else return *ptr; } - String get_remap(const String& p_from) const; - void erase_remap(const String& p_from); - void clear_remaps(); - - void load_remaps(); - - static PathRemap* get_singleton(); - - PathRemap(); -}; - #endif // PATH_REMAP_H |
