Emergency 20 Dokumentation  4.2.0
em5::FreeplayEvent::EventResult Struct Reference

#include <FreeplayEvent.h>

Public Attributes

std::string mEventName
 Localizable name of the event (e.g. "EM5_EVENT_TITLE_04") More...
 
bool mSuccess = false
 Has the event succeeded. More...
 
uint32 mPointGain = 0
 All points the player gets. More...
 
uint32 mEfficiencyPoints = 0
 The points the player gets for his efficiency. More...
 
uint32 mObjectivePoints = 0
 The points the player gets for all objective he succeeded. More...
 
std::string mFailedText
 The text, which should be shown on event failure. More...
 
boost::container::flat_map< std::string, uint32mObjectiveNamesPoints
 Key: Name of the objective. Value: Point gain of the objective. More...
 
ObjectiveList mObjectives
 List of all objectives. More...
 
uint32 mPlayerIndex = 0
 To which player is the event assigned (in single player this value is always uninitialized) More...
 
uint32 mEventId = 0
 

Detailed Description

Event result structure

Member Data Documentation

uint32 em5::FreeplayEvent::EventResult::mEfficiencyPoints = 0

The points the player gets for his efficiency.

uint32 em5::FreeplayEvent::EventResult::mEventId = 0
std::string em5::FreeplayEvent::EventResult::mEventName

Localizable name of the event (e.g. "EM5_EVENT_TITLE_04")

std::string em5::FreeplayEvent::EventResult::mFailedText

The text, which should be shown on event failure.

boost::container::flat_map<std::string, uint32> em5::FreeplayEvent::EventResult::mObjectiveNamesPoints

Key: Name of the objective. Value: Point gain of the objective.

uint32 em5::FreeplayEvent::EventResult::mObjectivePoints = 0

The points the player gets for all objective he succeeded.

ObjectiveList em5::FreeplayEvent::EventResult::mObjectives

List of all objectives.

uint32 em5::FreeplayEvent::EventResult::mPlayerIndex = 0

To which player is the event assigned (in single player this value is always uninitialized)

uint32 em5::FreeplayEvent::EventResult::mPointGain = 0

All points the player gets.

bool em5::FreeplayEvent::EventResult::mSuccess = false

Has the event succeeded.


The documentation for this struct was generated from the following file: