Rework API graphique Vulkan - EnTT pour ECS + Chargement modèle 3D assimp + SDL3 pour events input et fenetre + mesh texture camera transform ok + attention tous les assets nouveaus ne sont pas commités et il y a du code test en dur dans scene addentity + restructuration globale
This commit is contained in:
@@ -6,20 +6,20 @@
|
||||
namespace CosmicCore
|
||||
{
|
||||
|
||||
CEntity::CEntity(ECManager& registry, EntityId handle) : CSerializable(), m_registryReference(registry), m_handle(handle)
|
||||
CEntity::CEntity(EntityComponentManager& registry, EntityId handle, CScene* scene) : CSerializable(), m_scene(scene), m_registryReference(registry), m_handle(handle)
|
||||
{
|
||||
}
|
||||
|
||||
CEntity::CEntity(const CEntity& cop): m_registryReference(cop.m_registryReference), m_handle(cop.m_handle){
|
||||
CEntity::CEntity(const CEntity& cop): m_scene(cop.m_scene), m_registryReference(cop.m_registryReference), m_handle(cop.m_handle){
|
||||
|
||||
}
|
||||
|
||||
std::weak_ptr<CScene> CEntity::getScene()
|
||||
CScene* CEntity::getScene()
|
||||
{
|
||||
return m_scene;
|
||||
}
|
||||
|
||||
void CEntity::setScene(std::weak_ptr<CScene> s)
|
||||
void CEntity::setScene(CScene* s)
|
||||
{
|
||||
m_scene = s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user