public Entity CreateEntity(EntityType type, Vector2Ref position = null, Coord2?speed = null, GameTime gameTime = null, Allegiance allegiance = Allegiance.Neutral) { Entity entity = ECS_CreateEntity.CreateEntity(type, position, speed, gameTime, allegiance); if (type == EntityType.Hero || type == EntityType.ForestWolf || type == EntityType.ForestKnight) { _actors.Add(entity); } if (type == EntityType.ForestArcher || type == EntityType.ForestKnight || type == EntityType.ForestWolf || type == EntityType.ForestBoss) //TODO temporary { _levelTracker.EnemiesCount++; } return(entity); }
//enum for biome public ECS(Camera2D camera) { _camera = camera; ECS_CreateEntity.RegisterECS(this); }