diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:16:40 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:16:40 +1000 |
commit | 008bd6d3df469f69eaf667bc3ae357a03894bddb (patch) | |
tree | 0aa0548dae863c727cd32fc2b0d562783c7edb4e /source/core/StarAssetPath.hpp | |
parent | 2bd399fd00d87683e37b41bfc1a25772c6cde71f (diff) |
more!! more!!!!
Diffstat (limited to 'source/core/StarAssetPath.hpp')
-rw-r--r-- | source/core/StarAssetPath.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/StarAssetPath.hpp b/source/core/StarAssetPath.hpp index fd77005..93fa8eb 100644 --- a/source/core/StarAssetPath.hpp +++ b/source/core/StarAssetPath.hpp @@ -3,6 +3,7 @@ #include "StarDirectives.hpp" #include "StarHash.hpp" +#include "StarDataStream.hpp" namespace Star { @@ -53,6 +54,7 @@ struct AssetPath { static String relativeTo(String const& sourcePath, String const& givenPath); AssetPath() = default; + AssetPath(const char* path); AssetPath(String const& path); AssetPath(String&& basePath, Maybe<String>&& subPath, DirectivesGroup&& directives); AssetPath(const String& basePath, const Maybe<String>& subPath, const DirectivesGroup& directives); @@ -63,6 +65,9 @@ struct AssetPath { bool operator==(AssetPath const& rhs) const; }; +DataStream& operator>>(DataStream& ds, AssetPath& path); +DataStream& operator<<(DataStream& ds, AssetPath const& path); + std::ostream& operator<<(std::ostream& os, AssetPath const& rhs); template <> |