The server will now parse a death event and pass it forward with a KillDeath event to the score system.

This commit is contained in:
stiffly
2016-03-03 22:48:42 +01:00
parent c467d54d44
commit 8466a282b7
5 changed files with 65 additions and 19 deletions
+3 -2
View File
@@ -10,8 +10,9 @@ namespace Events
struct PlayerDeath : Event
{
//KilledBy,KilledByWhat is optional for now. It might be used later in the playerlog-system
EntityWrapper Player;
std::string KilledByWhat;
EntityWrapper Player = EntityWrapper::Invalid;
EntityWrapper Killer = EntityWrapper::Invalid;
std::string KilledByWhat = "";
};
}