gdle/Source/Chest.cpp

31 lines
505 B
C++

#include "StdAfx.h"
#include "Chest.h"
#include "World.h"
CChestWeenie::CChestWeenie()
{
}
CChestWeenie::~CChestWeenie()
{
}
void CChestWeenie::PostSpawn()
{
CContainerWeenie::PostSpawn();
}
void CChestWeenie::OnContainerOpened(std::shared_ptr<CWeenieObject> other)
{
CContainerWeenie::OnContainerOpened(other);
DoForcedMotion(Motion_On);
}
void CChestWeenie::OnContainerClosed(std::shared_ptr<CWeenieObject> other)
{
CContainerWeenie::OnContainerClosed(other);
DoForcedMotion(Motion_Off);
}