20 #include <yaml-cpp/yaml.h> 34 std::map<std::string, std::vector<int> > _criteria;
35 std::vector<std::vector<std::pair<int, std::vector<std::string> > > > _killCriteria;
36 std::string _description;
44 void load(
const YAML::Node& node);
48 std::map<std::string, std::vector<int> > *
getCriteria();
50 std::vector<std::vector<std::pair<int, std::vector<std::string> > > > *
getKillCriteria();
int getSprite() const
Get the commendation's sprite.
Definition: RuleCommendations.cpp:82
std::map< std::string, std::vector< int > > * getCriteria()
Get the commendation's award criteria.
Definition: RuleCommendations.cpp:64
RuleCommendations()
Creates a blank commendation ruleset.
Definition: RuleCommendations.cpp:28
std::string getDescription() const
Get the commendation's description.
Definition: RuleCommendations.cpp:55
Represents a specific type of commendation.
Definition: RuleCommendations.h:31
~RuleCommendations()
Cleans up the commendation ruleset.
Definition: RuleCommendations.cpp:35
std::vector< std::vector< std::pair< int, std::vector< std::string > > > > * getKillCriteria()
Get the commendation's award kill related criteria.
Definition: RuleCommendations.cpp:73
void load(const YAML::Node &node)
Loads commendation data from YAML.
Definition: RuleCommendations.cpp:43
Definition: BaseInfoState.cpp:40