1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
3 | #pragma once |
4 | |
5 | #include "BsPrerequisites.h" |
6 | #include "Importer/BsSpecificImporter.h" |
7 | |
8 | namespace bs |
9 | { |
10 | /** @addtogroup Resources-Engine-Internal |
11 | * @{ |
12 | */ |
13 | |
14 | /** Imports plain text files (.txt, .xml, .json). */ |
15 | class BS_EXPORT PlainTextImporter : public SpecificImporter |
16 | { |
17 | public: |
18 | /** @copydoc SpecificImporter::isExtensionSupported */ |
19 | bool isExtensionSupported(const String& ext) const override; |
20 | |
21 | /** @copydoc SpecificImporter::isMagicNumberSupported */ |
22 | bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const override; |
23 | |
24 | /** @copydoc SpecificImporter::import */ |
25 | SPtr<Resource> import(const Path& filePath, SPtr<const ImportOptions> importOptions) override; |
26 | }; |
27 | |
28 | /** @} */ |
29 | } |