NiklasHansen/Life — Issue #8: GetEntityTypes() in Entity.cs doesn't return the correct entities.
Author: jcgr
Created: 2011-12-11 17:08:36+00:00
State: open

When calling the
public static IEnumerable GetEntityTypes()
in the Entity class, only the entity type Mammal is returned.

This is due to the line
where t.BaseType == typeof(Entity)
as Mammal is the only class that enherits from Entity.

This can be "hotfixed" by changing
typeof(Entity)
into
typeof(Mammal)
but that would not get the food entities when they're implemented.