Sp3 5 ecs #135

Merged
maverickdgg merged 4 commits from SP3-5-ECS into main 2022-10-31 15:10:53 +08:00
5 changed files with 7 additions and 5 deletions
Showing only changes of commit 78d13c0ab8 - Show all commits

View File

@ -439,7 +439,7 @@ namespace SHADE
{ {
if ((templateIDs[i] == oID)) if ((templateIDs[i] == oID))
{ {
assert("This Component is owned by another group"); SHLOG_WARNING("Component type already owned by another component group");
} }
} }
} }

View File

@ -88,7 +88,8 @@ namespace SHADE
if (!entityVec[eIndex]) if (!entityVec[eIndex])
{ {
//There is still an entity stored there.Something went wrong //There is still an entity stored there.Something went wrong
assert("FATAL ERROR: Entity Creation error. Entity Index Conflict"); SHLOG_CRITICAL("FATAL ERROR: Entity Creation error. Entity index conflict.")
} }
//Reset it to a newly constructed entity //Reset it to a newly constructed entity

View File

@ -119,7 +119,7 @@ namespace SHADE
if (!entityVec[eIndex]) if (!entityVec[eIndex])
{ {
//There is still an entity stored there.Something went wrong //There is still an entity stored there.Something went wrong
assert("FATAL ERROR: Entity Creation error. Entity Index Conflict"); SHLOG_CRITICAL("FATAL ERROR: Entity Creation error. Entity index conflict.")
} }
//Reset it to a newly constructed entity //Reset it to a newly constructed entity

View File

@ -29,7 +29,7 @@ namespace SHADE
{ {
system.second->Init(); system.second->Init();
#ifdef _DEBUG #ifdef _DEBUG
std::cout << system.first << " Init" << std::endl; SHLOG_INFO("{} Init", system.first);
#endif #endif
} }
} }

View File

@ -94,7 +94,8 @@ namespace SHADE
if (systemContainer.find(id) == systemContainer.end()) if (systemContainer.find(id) == systemContainer.end())
{ {
std::cout << "System Manager error: System Version " << version << " does not exit." << std::endl; SHLOG_WARNING("System Manager warning: System Version {} does not exist. Returning as nullptr", version)
return nullptr; return nullptr;
} }