mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 03:09:13 +00:00
Convert custom HeadSpin integer types to standard types from stdint.h
This commit is contained in:
@ -99,7 +99,7 @@ void plLogicModBase::AddTarget(plSceneObject* so)
|
||||
plSingleModifier::AddTarget(so);
|
||||
}
|
||||
|
||||
void plLogicModBase::RegisterForMessageType(UInt16 hClass)
|
||||
void plLogicModBase::RegisterForMessageType(uint16_t hClass)
|
||||
{
|
||||
plgDispatch::Dispatch()->RegisterForExactType( hClass, GetKey() );
|
||||
}
|
||||
|
@ -68,14 +68,14 @@ public:
|
||||
protected:
|
||||
hsTArray<plMessage*> fCommandList;
|
||||
hsTArray<plKey> fReceiverList;
|
||||
UInt32 fCounterLimit;
|
||||
uint32_t fCounterLimit;
|
||||
hsScalar fTimer;
|
||||
hsBitVector fFlags;
|
||||
UInt32 fCounter;
|
||||
uint32_t fCounter;
|
||||
plNotifyMsg* fNotify;
|
||||
bool fDisabled;
|
||||
|
||||
virtual hsBool IEval(double secs, hsScalar del, UInt32 dirty) {return false;}
|
||||
virtual hsBool IEval(double secs, hsScalar del, uint32_t dirty) {return false;}
|
||||
void IUpdateSharedState(bool triggered) const;
|
||||
hsBool IEvalCounter();
|
||||
virtual void PreTrigger(hsBool netRequest);
|
||||
@ -107,7 +107,7 @@ public:
|
||||
|
||||
void AddCommand(plMessage* msg) { fCommandList.Append(msg); }
|
||||
void SetOneShot(hsBool b) { if (b) SetFlag(kOneShot); else ClearFlag(kOneShot); }
|
||||
void RegisterForMessageType(UInt16 hClass);
|
||||
void RegisterForMessageType(uint16_t hClass);
|
||||
|
||||
virtual void RequestTrigger(hsBool netRequest=false);
|
||||
virtual void RequestUnTrigger() { UnTrigger(); }
|
||||
|
@ -77,9 +77,9 @@ plAudioInterface* plModifier::IGetTargetAudioInterface(int iTarg) const
|
||||
return GetTarget(iTarg) ? GetTarget(iTarg)->GetVolatileAudioInterface() : nil;
|
||||
}
|
||||
|
||||
plObjInterface* plModifier::IGetTargetGenericInterface(int iTarg, UInt32 classIdx) const
|
||||
plObjInterface* plModifier::IGetTargetGenericInterface(int iTarg, uint32_t classIdx) const
|
||||
{
|
||||
return GetTarget(iTarg) ? GetTarget(iTarg)->GetVolatileGenericInterface((UInt16)classIdx) : nil;
|
||||
return GetTarget(iTarg) ? GetTarget(iTarg)->GetVolatileGenericInterface((uint16_t)classIdx) : nil;
|
||||
}
|
||||
|
||||
plModifier* plModifier::IGetTargetModifier(int iTarg, int iMod) const
|
||||
@ -92,7 +92,7 @@ hsBool plModifier::MsgReceive(plMessage* msg)
|
||||
plEvalMsg* eval = plEvalMsg::ConvertNoRef(msg);
|
||||
if( eval )
|
||||
{
|
||||
UInt32 dirty = ~0L;
|
||||
uint32_t dirty = ~0L;
|
||||
IEval(eval->DSeconds(), eval->DelSeconds(), dirty);
|
||||
return true;
|
||||
}
|
||||
|
@ -64,10 +64,10 @@ protected:
|
||||
plSimulationInterface* IGetTargetSimulationInterface(int iTarg) const;
|
||||
plCoordinateInterface* IGetTargetCoordinateInterface(int iTarg) const;
|
||||
plAudioInterface* IGetTargetAudioInterface(int iTarg) const;
|
||||
plObjInterface* IGetTargetGenericInterface(int iTarg, UInt32 classIdx) const;
|
||||
plObjInterface* IGetTargetGenericInterface(int iTarg, uint32_t classIdx) const;
|
||||
plModifier* IGetTargetModifier(int iTarg, int iMod) const;
|
||||
|
||||
virtual hsBool IEval(double secs, hsScalar del, UInt32 dirty) = 0; // called only by owner object's Eval()
|
||||
virtual hsBool IEval(double secs, hsScalar del, uint32_t dirty) = 0; // called only by owner object's Eval()
|
||||
|
||||
friend class plSceneObject;
|
||||
public:
|
||||
|
@ -64,7 +64,7 @@ public:
|
||||
CLASSNAME_REGISTER( plMultiModifier );
|
||||
GETINTERFACE_ANY( plMultiModifier, plModifier );
|
||||
|
||||
virtual hsBool IEval(double secs, hsScalar del, UInt32 dirty) = 0;
|
||||
virtual hsBool IEval(double secs, hsScalar del, uint32_t dirty) = 0;
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
|
@ -56,7 +56,7 @@ protected:
|
||||
plSceneObject* fTarget;
|
||||
hsBitVector fFlags;
|
||||
|
||||
virtual hsBool IEval(double secs, hsScalar del, UInt32 dirty) = 0;
|
||||
virtual hsBool IEval(double secs, hsScalar del, uint32_t dirty) = 0;
|
||||
|
||||
public:
|
||||
plSingleModifier();
|
||||
|
Reference in New Issue
Block a user