gdle/Source/Chest.cpp

32 lines
505 B
C++
Raw Normal View History

2018-03-29 17:01:57 -04:00
#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)
2018-03-29 17:01:57 -04:00
{
CContainerWeenie::OnContainerOpened(other);
DoForcedMotion(Motion_On);
}
void CChestWeenie::OnContainerClosed(std::shared_ptr<CWeenieObject> other)
2018-03-29 17:01:57 -04:00
{
CContainerWeenie::OnContainerClosed(other);
DoForcedMotion(Motion_Off);
}