Lifebuoy working
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "Game/EHitPad.h"
|
||||
#include "Game/EHitLag.h"
|
||||
#include "Game/EActionButton.h"
|
||||
#include "Game/CLifebuoy.h"
|
||||
|
||||
namespace dd
|
||||
{
|
||||
|
||||
@@ -52,6 +52,16 @@ private:
|
||||
bool OnContact(const dd::Events::Contact &event);
|
||||
bool OnPause(const dd::Events::Pause &event);
|
||||
bool OnLifebuoy(const dd::Events::Lifebuoy &event);
|
||||
|
||||
struct LifeBuoyInfo
|
||||
{
|
||||
EntityID Entity;
|
||||
float TimeToLive = 20.f;
|
||||
};
|
||||
|
||||
float m_LeftEdge = -4.f;
|
||||
float m_RightEdge = 4.f;
|
||||
std::list<LifeBuoyInfo> m_LifeBuoys;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user