thug/Code/Sk/Components/SkaterCleanupStateComponent.h

59 lines
1.8 KiB
C
Raw Normal View History

2016-02-13 21:39:12 +00:00
//****************************************************************************
//* MODULE: Sk/Components
//* FILENAME: SkaterCleanupStateComponent.h
//* OWNER: Dan
//* CREATION DATE: 3/26/3
//****************************************************************************
#ifndef __COMPONENTS_SKATERCLEANUPSTATECOMPONENT_H__
#define __COMPONENTS_SKATERCLEANUPSTATECOMPONENT_H__
#include <core/defines.h>
#include <core/support.h>
#include <sk/objects/skater.h>
#include <gel/object/basecomponent.h>
#define CRC_SKATERCLEANUPSTATE CRCD(0xd8cc3428, "SkaterCleanupState")
#define GetSkaterCleanupStateComponent() ((Obj::CSkaterCleanupStateComponent*)GetComponent(CRC_SKATERCLEANUPSTATE))
#define GetSkaterCleanupStateComponentFromObject(pObj) ((Obj::CSkaterCleanupStateComponent*)(pObj)->GetComponent(CRC_SKATERCLEANUPSTATE))
namespace Script
{
class CScript;
class CStruct;
}
namespace Obj
{
class CSkaterStateComponent;
class CSkaterCleanupStateComponent : public CBaseComponent
{
public:
CSkaterCleanupStateComponent();
virtual ~CSkaterCleanupStateComponent();
public:
virtual void Update();
virtual void Finalize( );
virtual void InitFromStructure( Script::CStruct* pParams );
virtual void RefreshFromStructure( Script::CStruct* pParams );
virtual EMemberFunctionResult CallMemberFunction( uint32 Checksum, Script::CStruct* pParams, Script::CScript* pScript );
virtual void GetDebugInfo( Script::CStruct* p_info );
static CBaseComponent* s_create();
CSkater* GetSkater() { return static_cast< CSkater* >(GetObject()); }
private:
CSkaterStateComponent* mp_state_component;
};
}
#endif