Replace SetMaxAllowedExtras setter with friend class

This commit is contained in:
Christian Semmler 2026-03-09 13:53:37 -07:00
parent f697524187
commit 37f33a91df
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C
2 changed files with 7 additions and 3 deletions

View File

@ -20,6 +20,10 @@ class LegoROIList;
struct LegoOrientedEdge;
class LegoWorld;
class MxDSAction;
namespace Multiplayer
{
class NetworkManager;
}
// SIZE 0x30
struct ModelInfo {
@ -199,12 +203,12 @@ class LegoAnimationManager : public MxCore {
LEGO1_EXPORT static void configureLegoAnimationManager(MxS32 p_legoAnimationManagerConfig);
void SetMaxAllowedExtras(MxU32 p_maxAllowedExtras) { m_maxAllowedExtras = p_maxAllowedExtras; }
// SYNTHETIC: LEGO1 0x1005ed10
// LegoAnimationManager::`scalar deleting destructor'
private:
friend class Multiplayer::NetworkManager;
void Init();
MxResult FUN_100605e0(
MxU32 p_index,

View File

@ -366,7 +366,7 @@ void NetworkManager::ProcessIncomingPackets()
if (maxActors >= 5 && maxActors <= 40) {
LegoAnimationManager::configureLegoAnimationManager(maxActors);
if (AnimationManager()) {
AnimationManager()->SetMaxAllowedExtras(maxActors);
AnimationManager()->m_maxAllowedExtras = maxActors;
}
}
}