1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Move function for NSF use

This commit is contained in:
Duncan
2021-09-27 21:54:41 +01:00
committed by GitHub
parent 6fcd224efd
commit 50118ae039
3 changed files with 20 additions and 22 deletions

View File

@@ -217,25 +217,6 @@ void Object::SetAuthors(std::vector<std::string>&& authors)
_authors = std::move(authors);
}
std::optional<uint8_t> rct_object_entry::GetSceneryType() const
{
switch (GetType())
{
case ObjectType::SmallScenery:
return SCENERY_TYPE_SMALL;
case ObjectType::LargeScenery:
return SCENERY_TYPE_LARGE;
case ObjectType::Walls:
return SCENERY_TYPE_WALL;
case ObjectType::Banners:
return SCENERY_TYPE_BANNER;
case ObjectType::PathBits:
return SCENERY_TYPE_PATH_ITEM;
default:
return std::nullopt;
}
}
bool rct_object_entry::IsEmpty() const
{
uint64_t a, b;