mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
plCloneSpawnModifier template name => plString
This commit is contained in:
@ -53,19 +53,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
#include "pnMessage/plNodeRefMsg.h"
|
#include "pnMessage/plNodeRefMsg.h"
|
||||||
#include "plMessage/plLoadCloneMsg.h"
|
#include "plMessage/plLoadCloneMsg.h"
|
||||||
|
|
||||||
plCloneSpawnModifier::plCloneSpawnModifier() : fTemplateName(nil), fExportTime(false)
|
plCloneSpawnModifier::plCloneSpawnModifier() : fExportTime(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
plCloneSpawnModifier::~plCloneSpawnModifier()
|
|
||||||
{
|
|
||||||
delete [] fTemplateName;
|
|
||||||
}
|
|
||||||
|
|
||||||
void plCloneSpawnModifier::Read(hsStream *s, hsResMgr *mgr)
|
void plCloneSpawnModifier::Read(hsStream *s, hsResMgr *mgr)
|
||||||
{
|
{
|
||||||
delete [] fTemplateName;
|
fTemplateName = s->ReadSafeString_TEMP();
|
||||||
fTemplateName = s->ReadSafeString();
|
|
||||||
plSingleModifier::Read(s, mgr);
|
plSingleModifier::Read(s, mgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,12 +69,6 @@ void plCloneSpawnModifier::Write(hsStream *s, hsResMgr *mgr)
|
|||||||
plSingleModifier::Write(s, mgr);
|
plSingleModifier::Write(s, mgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void plCloneSpawnModifier::SetTemplateName(const char *templateName)
|
|
||||||
{
|
|
||||||
delete [] fTemplateName;
|
|
||||||
fTemplateName = hsStrcpy(templateName);
|
|
||||||
}
|
|
||||||
|
|
||||||
void plCloneSpawnModifier::SetTarget(plSceneObject* so)
|
void plCloneSpawnModifier::SetTarget(plSceneObject* so)
|
||||||
{
|
{
|
||||||
fTarget = so;
|
fTarget = so;
|
||||||
|
@ -47,14 +47,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
class plCloneSpawnModifier : public plSingleModifier
|
class plCloneSpawnModifier : public plSingleModifier
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
char* fTemplateName;
|
plString fTemplateName;
|
||||||
bool fExportTime;
|
bool fExportTime;
|
||||||
|
|
||||||
virtual bool IEval(double secs, float del, uint32_t dirty) { return true; }
|
virtual bool IEval(double secs, float del, uint32_t dirty) { return true; }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
plCloneSpawnModifier();
|
plCloneSpawnModifier();
|
||||||
~plCloneSpawnModifier();
|
|
||||||
|
|
||||||
CLASSNAME_REGISTER(plCloneSpawnModifier);
|
CLASSNAME_REGISTER(plCloneSpawnModifier);
|
||||||
GETINTERFACE_ANY(plCloneSpawnModifier, plSingleModifier);
|
GETINTERFACE_ANY(plCloneSpawnModifier, plSingleModifier);
|
||||||
@ -64,7 +63,7 @@ public:
|
|||||||
|
|
||||||
virtual void SetTarget(plSceneObject* so);
|
virtual void SetTarget(plSceneObject* so);
|
||||||
|
|
||||||
void SetTemplateName(const char *templateName);
|
void SetTemplateName(const plString &templateName) { fTemplateName = templateName; }
|
||||||
|
|
||||||
// Set this to true at export time so the clone mod won't try to make a
|
// Set this to true at export time so the clone mod won't try to make a
|
||||||
// clone when it's attached
|
// clone when it's attached
|
||||||
|
Reference in New Issue
Block a user