mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Add functions for writing and reading avatar clothing files
This also introduces a filename member in plClothingOutfit so it can determine whether to read the clothing information from the file or the vault.
This commit is contained in:
@ -84,6 +84,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "plMessage/plListenerMsg.h"
|
||||
#include "plMessage/plAgeLoadedMsg.h"
|
||||
#include "plMessage/plParticleUpdateMsg.h"
|
||||
#include "plMessage/plLoadClothingMsg.h"
|
||||
|
||||
#include "plParticleSystem/plParticleSystem.h"
|
||||
#include "plParticleSystem/plParticleSDLMod.h"
|
||||
@ -1293,6 +1294,8 @@ bool plArmatureMod::MsgReceive(plMessage* msg)
|
||||
}
|
||||
}
|
||||
|
||||
// We also want to use the trigger msg when loading an avatar
|
||||
MsgReceive(avLoadMsg->GetTriggerMsg());
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -1334,6 +1337,15 @@ bool plArmatureMod::MsgReceive(plMessage* msg)
|
||||
}
|
||||
}
|
||||
|
||||
plLoadClothingMsg *clothingMsg = plLoadClothingMsg::ConvertNoRef(msg);
|
||||
if (clothingMsg)
|
||||
{
|
||||
// We got a clothing file and are supposed to load our avatar from it.
|
||||
// Let's tell our outfit to do so!
|
||||
fClothingOutfit->SetClothingFile(clothingMsg->GetClothingFile());
|
||||
return true;
|
||||
}
|
||||
|
||||
plLinkEffectBCMsg *linkBCMsg = plLinkEffectBCMsg::ConvertNoRef(msg);
|
||||
if (linkBCMsg)
|
||||
{
|
||||
|
Reference in New Issue
Block a user