AssetImporter.cpp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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/IO/File.h>
  8. #include <Atomic/IO/FileSystem.h>
  9. #include "AssetDatabase.h"
  10. #include "AssetImporter.h"
  11. namespace ToolCore
  12. {
  13. AssetImporter::AssetImporter(Context* context, Asset *asset) : Object(context),
  14. asset_(asset),
  15. requiresCacheFile_(true)
  16. {
  17. SetDefaults();
  18. }
  19. AssetImporter::~AssetImporter()
  20. {
  21. }
  22. void AssetImporter::SetDefaults()
  23. {
  24. }
  25. bool AssetImporter::LoadSettings(JSONValue& root)
  26. {
  27. LoadSettingsInternal(root);
  28. return true;
  29. }
  30. bool AssetImporter::LoadSettingsInternal(JSONValue& jsonRoot)
  31. {
  32. return true;
  33. }
  34. bool AssetImporter::SaveSettings(JSONValue& root)
  35. {
  36. SaveSettingsInternal(root);
  37. return true;
  38. }
  39. bool AssetImporter::SaveSettingsInternal(JSONValue& jsonRoot)
  40. {
  41. return true;
  42. }
  43. }