1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Rename members of AnimationPeepType

This commit is contained in:
Gymnasiast
2025-10-05 01:10:06 +02:00
parent d8da02e7dd
commit ee67a827c0
16 changed files with 56 additions and 56 deletions

View File

@@ -848,7 +848,7 @@ namespace OpenRCT2::Scripting
std::vector<std::string> ScGuest::availableAnimations_get() const
{
std::vector<std::string> availableAnimations{};
for (auto& animation : getAnimationsByPeepType(AnimationPeepType::Guest))
for (auto& animation : getAnimationsByPeepType(AnimationPeepType::guest))
{
availableAnimations.push_back(std::string(animation.first));
}
@@ -859,7 +859,7 @@ namespace OpenRCT2::Scripting
{
std::vector<uint32_t> spriteIds{};
auto& availableGuestAnimations = getAnimationsByPeepType(AnimationPeepType::Guest);
auto& availableGuestAnimations = getAnimationsByPeepType(AnimationPeepType::guest);
auto animationType = availableGuestAnimations.TryGet(groupKey);
if (animationType == std::nullopt)
{
@@ -895,7 +895,7 @@ namespace OpenRCT2::Scripting
return nullptr;
}
auto& availableGuestAnimations = getAnimationsByPeepType(AnimationPeepType::Guest);
auto& availableGuestAnimations = getAnimationsByPeepType(AnimationPeepType::guest);
std::string_view action = availableGuestAnimations[peep->AnimationType];
// Special consideration for sitting peeps
@@ -910,7 +910,7 @@ namespace OpenRCT2::Scripting
{
ThrowIfGameStateNotMutable();
auto& availableGuestAnimations = getAnimationsByPeepType(AnimationPeepType::Guest);
auto& availableGuestAnimations = getAnimationsByPeepType(AnimationPeepType::guest);
auto newType = availableGuestAnimations.TryGet(groupKey);
if (newType == std::nullopt)
{