| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- //
- // 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 "SceneImporter.h"
- namespace ToolCore
- {
- SceneImporter::SceneImporter(Context* context, Asset* asset) : AssetImporter(context, asset)
- {
- }
- SceneImporter::~SceneImporter()
- {
- }
- void SceneImporter::SetDefaults()
- {
- AssetImporter::SetDefaults();
- }
- bool SceneImporter::Import()
- {
- return true;
- }
- bool SceneImporter::LoadSettingsInternal(JSONValue& jsonRoot)
- {
- if (!AssetImporter::LoadSettingsInternal(jsonRoot))
- return false;
- JSONValue import = jsonRoot.Get("SceneImporter");
- return true;
- }
- bool SceneImporter::SaveSettingsInternal(JSONValue& jsonRoot)
- {
- if (!AssetImporter::SaveSettingsInternal(jsonRoot))
- return false;
- JSONValue import(JSONValue::emptyObject);
- jsonRoot.Set("SceneImporter", import);
- return true;
- }
- }
|