Fixes #145. Uses kind of a hacky approach. The problem is, that when generating a level somewhere entities, static_entities and non_collidable_entities are set. When loading any level for playtesting, entities get split into the other two categories, therefore we lose that entity information. However, when loading a level from e.g. generator these categories are not set.
This is probably one of the first steps into fixing the differences between editor and game levels.
Summary
Fixes #145. Uses kind of a hacky approach. The problem is, that when generating a level somewhere
entities
,static_entities
andnon_collidable_entities
are set. When loading any level for playtesting,entities
get split into the other two categories, therefore we lose that entity information. However, when loading a level from e.g.generator
these categories are not set. This is probably one of the first steps into fixing the differences between editor and game levels.