| 123456789101112131415161718192021222324252627282930313233343536373839 |
- // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <AnKi/Resource/ResourceObject.h>
- namespace anki
- {
- /// @addtogroup resource
- /// @{
- /// Script resource.
- class ScriptResource : public ResourceObject
- {
- public:
- ScriptResource(ResourceManager* manager)
- : ResourceObject(manager)
- {
- }
- ~ScriptResource();
- ANKI_USE_RESULT Error load(const ResourceFilename& filename, Bool async);
- CString getSource() const
- {
- return m_source.toCString();
- }
- private:
- String m_source;
- };
- /// @}
- } // namespace anki
|