mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-02 10:33:57 +00:00
Replace SetMaxAllowedExtras setter with friend class
This commit is contained in:
parent
f697524187
commit
37f33a91df
@ -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,
|
||||
|
||||
@ -366,7 +366,7 @@ void NetworkManager::ProcessIncomingPackets()
|
||||
if (maxActors >= 5 && maxActors <= 40) {
|
||||
LegoAnimationManager::configureLegoAnimationManager(maxActors);
|
||||
if (AnimationManager()) {
|
||||
AnimationManager()->SetMaxAllowedExtras(maxActors);
|
||||
AnimationManager()->m_maxAllowedExtras = maxActors;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user