Small changes

This commit is contained in:
2024-12-13 13:32:19 -05:00
parent c64a21a1f1
commit 96417bf66d
2 changed files with 7 additions and 4 deletions

View File

@@ -23,8 +23,6 @@ namespace CaveGame::Core
MUD_BRICK,
CLAY_BRICK,
STONE_BRICK,
SANDSTONE,
SAND_BRICK,
GRANITE,
SMOOTH_GRANTITE,
SLATE,
@@ -43,8 +41,13 @@ namespace CaveGame::Core
MOSS,
SNOW, PACKED_SNOW,
ICE, PACKED_ICE, ICE_BRICK, THIN_ICE,
SAND, WET_SAND, WHITE_SAND, BLACK_SAND, GRAVEL, DUST,
SAND, WET_SAND, SANDSTONE, SAND_BRICK,
RED_SAND,
WHITE_SAND,
BLACK_SAND,
GRAVEL,
DUST,
GLASS, CRACKED_GLASS,
RED_STAINED_GLASS,
ORANGE_STAINED_GLASS,

View File

@@ -82,7 +82,7 @@ namespace CaveGame::Core
TEntity* AddNewEntity(Args&&... ctor_args)
{
// TODO: Does emplace_back construct the correct derived entity?
entities.emplace_back(std::forward<Args>(ctor_args)...);
return entities.emplace_back(std::forward<Args>(ctor_args)...);
}
/// Adds the entity pointer to the world, via std::move, this may leave the original entity pointer empty.