mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-21 10:56:35 +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;
|
struct LegoOrientedEdge;
|
||||||
class LegoWorld;
|
class LegoWorld;
|
||||||
class MxDSAction;
|
class MxDSAction;
|
||||||
|
namespace Multiplayer
|
||||||
|
{
|
||||||
|
class NetworkManager;
|
||||||
|
}
|
||||||
|
|
||||||
// SIZE 0x30
|
// SIZE 0x30
|
||||||
struct ModelInfo {
|
struct ModelInfo {
|
||||||
@ -199,12 +203,12 @@ class LegoAnimationManager : public MxCore {
|
|||||||
|
|
||||||
LEGO1_EXPORT static void configureLegoAnimationManager(MxS32 p_legoAnimationManagerConfig);
|
LEGO1_EXPORT static void configureLegoAnimationManager(MxS32 p_legoAnimationManagerConfig);
|
||||||
|
|
||||||
void SetMaxAllowedExtras(MxU32 p_maxAllowedExtras) { m_maxAllowedExtras = p_maxAllowedExtras; }
|
|
||||||
|
|
||||||
// SYNTHETIC: LEGO1 0x1005ed10
|
// SYNTHETIC: LEGO1 0x1005ed10
|
||||||
// LegoAnimationManager::`scalar deleting destructor'
|
// LegoAnimationManager::`scalar deleting destructor'
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
friend class Multiplayer::NetworkManager;
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
MxResult FUN_100605e0(
|
MxResult FUN_100605e0(
|
||||||
MxU32 p_index,
|
MxU32 p_index,
|
||||||
|
|||||||
@ -366,7 +366,7 @@ void NetworkManager::ProcessIncomingPackets()
|
|||||||
if (maxActors >= 5 && maxActors <= 40) {
|
if (maxActors >= 5 && maxActors <= 40) {
|
||||||
LegoAnimationManager::configureLegoAnimationManager(maxActors);
|
LegoAnimationManager::configureLegoAnimationManager(maxActors);
|
||||||
if (AnimationManager()) {
|
if (AnimationManager()) {
|
||||||
AnimationManager()->SetMaxAllowedExtras(maxActors);
|
AnimationManager()->m_maxAllowedExtras = maxActors;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user