public MapEntity CreateMapEntity(MAP_ENTITY type, Vector2 position) { switch (type) { case MAP_ENTITY.DIRT: return CreateDirtMapEntity(position); case MAP_ENTITY.GRASS: return CreateGrassMapEntity(position); case MAP_ENTITY.GRASS_BLADES: return CreateGrassBladesMapEntity(position); default: throw new NotImplementedException(); } }
public CollidableMapEntity CreateCollidableMapEntity(MAP_ENTITY type, Vector2 position) { switch (type) { case MAP_ENTITY.TREE_LARGE: return CreateTreeLargeMapEntity(position); case MAP_ENTITY.TREE_SMALL: return CreateTreeSmallMapEntity(position); case MAP_ENTITY.BUSH: return CreateBushMapEntity(position); case MAP_ENTITY.CHEST: return CreateChestMapEntityWithSword(position); default: throw new NotImplementedException(); } }