Script.h 603 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright (C) 2009-2015, Panagiotis Christopoulos Charitos.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include "anki/resource/ResourceObject.h"
  7. namespace anki {
  8. /// @addtogroup resource
  9. /// @{
  10. /// Script resource.
  11. class Script: public ResourceObject
  12. {
  13. public:
  14. Script(ResourceManager* manager)
  15. : ResourceObject(manager)
  16. {}
  17. ~Script();
  18. ANKI_USE_RESULT Error load(const ResourceFilename& filename);
  19. CString getSource() const
  20. {
  21. return m_source.toCString();
  22. }
  23. private:
  24. String m_source;
  25. };
  26. /// @}
  27. } // end namespace