Ajout de Jolt Physics + 1ere version des factory entitecomposants - camera, transform, rigidbody, collider, renderer
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "../Utils/CSerializable.hpp"
|
||||
#include <string>
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
#include "../Physics/CTangibleWorld.hpp"
|
||||
namespace CosmicCore {
|
||||
class CEntity;
|
||||
class CScene : public CSerializable {
|
||||
@@ -13,15 +13,16 @@ namespace CosmicCore {
|
||||
// The name of the scene.
|
||||
std::string m_name;
|
||||
EntityComponentManager m_ecManager;
|
||||
|
||||
CTangibleWorld m_tangibleWorld;
|
||||
|
||||
public:
|
||||
CScene() = delete;
|
||||
CScene(std::string name);
|
||||
virtual ~CScene() = default;
|
||||
virtual ~CScene();
|
||||
|
||||
unsigned int getNumEntity() const;
|
||||
|
||||
CEntity addEntity(std::string name, std::string description);
|
||||
CEntity createEntity();
|
||||
|
||||
std::string getName() const;
|
||||
|
||||
@@ -29,6 +30,7 @@ namespace CosmicCore {
|
||||
|
||||
void removeEntity(unsigned int index, bool destroy = true);
|
||||
|
||||
CTangibleWorld& getTangibleWorld() {return m_tangibleWorld;};
|
||||
//CEntity* getActiveCamera();
|
||||
//void setActiveCamera(CEntity* newCamera);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user