chore: logging

This commit is contained in:
Nick Fisher
2024-12-17 16:37:34 +08:00
parent b6bde0c9d9
commit d92d47faa5

View File

@@ -172,16 +172,19 @@ namespace thermion
{ {
if (!_grid) if (!_grid)
{ {
TRACE("No grid");
return false; return false;
} }
if (entity == _grid->getEntity()) if (entity == _grid->getEntity())
{ {
TRACE("%d is a grid entity.", entity);
return true; return true;
} }
for (int i = 0; i < _grid->getChildEntityCount(); i++) for (int i = 0; i < _grid->getChildEntityCount(); i++)
{ {
if (entity == _grid->getChildEntities()[i]) if (entity == _grid->getChildEntities()[i])
{ {
TRACE("%d is a child entity of grid.", entity);
return true; return true;
} }
} }