gdle/Source/Chest.cpp

32 lines
473 B
C++
Raw Permalink Normal View History

2018-03-29 17:01:57 -04:00
2019-07-07 20:56:15 +00:00
#include <StdAfx.h>
2018-03-29 17:01:57 -04:00
#include "Chest.h"
#include "World.h"
CChestWeenie::CChestWeenie()
{
}
CChestWeenie::~CChestWeenie()
{
}
void CChestWeenie::PostSpawn()
{
CContainerWeenie::PostSpawn();
}
2018-07-12 14:41:21 -07:00
void CChestWeenie::OnContainerOpened(CWeenieObject *other)
2018-03-29 17:01:57 -04:00
{
CContainerWeenie::OnContainerOpened(other);
DoForcedMotion(Motion_On);
}
2018-07-12 14:41:21 -07:00
void CChestWeenie::OnContainerClosed(CWeenieObject *other)
2018-03-29 17:01:57 -04:00
{
CContainerWeenie::OnContainerClosed(other);
DoForcedMotion(Motion_Off);
}