HatchitResource
ht_scene_resource.h
1 
15 #pragma once
16 
17 #include <ht_resource.h>
18 
19 #include <json.hpp>
20 
21 #include <string>
22 
23 namespace Hatchit {
24  namespace Resource {
25  class HT_API Scene : public FileResource<Scene>
26  {
27  public:
28  Scene(Core::Guid ID);
29  virtual ~Scene(void) = default;
30  Scene(Scene&& rhs) = default;
31  Scene& operator=(Scene&& rhs) = default;
32 
33  //Required function for all RefCounted classes
34  bool Initialize(const std::string& file);
35 
36  bool VInitFromFile(const std::string& file);
37 
38  const nlohmann::json& GetSceneDescription(void) const;
39  private:
40  nlohmann::json m_sceneDescription;
41  };
42 
43  using SceneHandle = Core::Handle<const Scene>;
44  }
45 }
Definition: ht_scene_resource.h:25
Definition: ht_resource.h:35
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_assimp.h:31