| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- //
- // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
- // LICENSE: Atomic Game Engine Editor and Tools EULA
- // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
- // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
- //
- #include "Asset.h"
- #include "AssetDatabase.h"
- #include "FolderImporter.h"
- namespace ToolCore
- {
- FolderImporter::FolderImporter(Context* context, Asset* asset) : AssetImporter(context, asset)
- {
- }
- FolderImporter::~FolderImporter()
- {
- }
- void FolderImporter::SetDefaults()
- {
- AssetImporter::SetDefaults();
- }
- bool FolderImporter::Import()
- {
- return true;
- }
- bool FolderImporter::LoadSettingsInternal(JSONValue& jsonRoot)
- {
- if (!AssetImporter::LoadSettingsInternal(jsonRoot))
- return false;
- JSONValue import = jsonRoot.Get("FolderImporter");
- return true;
- }
- bool FolderImporter::SaveSettingsInternal(JSONValue& jsonRoot)
- {
- if (!AssetImporter::SaveSettingsInternal(jsonRoot))
- return false;
- JSONValue import(JSONValue::emptyObject);
- jsonRoot.Set("FolderImporter", import);
- return true;
- }
- }
|