refactor: removed unnecessary logs

This commit is contained in:
Syntriax 2025-04-22 21:43:36 +03:00
parent 82cc25a9ef
commit 9581f5aa54

View File

@ -15,23 +15,13 @@ public class EntityFinder
{
TypeData typeData = Utils.GetTypeData(@object.GetType());
if (@object is IEntity entity)
{
if (_entities.Add(entity))
{
Console.WriteLine($"Found Entity: {entity.Id}");
FindEntitiesUnder(entity);
}
else
{
Console.WriteLine($"Duplicate Entity: {entity.Id}");
return;
}
}
else
{
if (@object is not IEntity entity)
return;
}
if (!_entities.Add(entity))
return;
FindEntitiesUnder(entity);
foreach (PropertyInfo propertyInfo in typeData.Properties)
{
@ -57,8 +47,8 @@ public class EntityFinder
if (fieldInfo.HasAttribute<System.Runtime.CompilerServices.CompilerGeneratedAttribute>())
continue;
// if (!fieldInfo.HasAttribute<SerializeAttribute>())
// continue;
if (!fieldInfo.HasAttribute<SerializeAttribute>())
continue;
object? value = fieldInfo.GetValue(@object);