3a1056a2c3
Added new variable in CapturePoint: IsHomeCapturePointForTeam CapturePointSystem updated so -5 = team 2 owns it, +5 = team 1 owns it. Its also looking for a winner each update Updated Test. TODO: better Tests
20 lines
310 B
C++
20 lines
310 B
C++
#ifndef ECaptured_h__
|
|
#define ECaptured_h__
|
|
|
|
#include "EventBroker.h"
|
|
#include "../Core/Entity.h"
|
|
#include "Engine/GLM.h"
|
|
|
|
namespace Events
|
|
{
|
|
|
|
//triggers when a capturePoint has been taken over
|
|
struct Captured : Event
|
|
{
|
|
int TeamNumberThatCapturedCapturePoint;
|
|
EntityID CapturePointID;
|
|
};
|
|
|
|
}
|
|
|
|
#endif |