TextImporter.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #include <Atomic/Resource/ResourceCache.h>
  8. #include <Atomic/Audio/Sound.h>
  9. #include "Asset.h"
  10. #include "AssetDatabase.h"
  11. #include "TextImporter.h"
  12. namespace ToolCore
  13. {
  14. TextImporter::TextImporter(Context* context, Asset *asset) : AssetImporter(context, asset)
  15. {
  16. }
  17. TextImporter::~TextImporter()
  18. {
  19. }
  20. void TextImporter::SetDefaults()
  21. {
  22. AssetImporter::SetDefaults();
  23. }
  24. bool TextImporter::Import()
  25. {
  26. return true;
  27. }
  28. bool TextImporter::LoadSettingsInternal(JSONValue& jsonRoot)
  29. {
  30. if (!AssetImporter::LoadSettingsInternal(jsonRoot))
  31. return false;
  32. JSONValue import = jsonRoot.Get("TextImporter");
  33. return true;
  34. }
  35. bool TextImporter::SaveSettingsInternal(JSONValue& jsonRoot)
  36. {
  37. if (!AssetImporter::SaveSettingsInternal(jsonRoot))
  38. return false;
  39. JSONValue import(JSONValue::emptyObject);
  40. jsonRoot.Set("TextImporter", import);
  41. return true;
  42. }
  43. }