X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9701b7ab4dc4cd709ad4dcaa750fc0021f15e231..0d6d9ba8a9c8512a0e1fd66a398c61e656644516:/include/stg/corp_conf.h?ds=sidebyside diff --git a/include/stg/corp_conf.h b/include/stg/corp_conf.h index 88a84f18..3810516d 100644 --- a/include/stg/corp_conf.h +++ b/include/stg/corp_conf.h @@ -1,10 +1,22 @@ #ifndef CORP_CONF_H #define CORP_CONF_H +#include + struct CORP_CONF { -string name; -double cash; +CORP_CONF() : name(), cash(0) {} +explicit CORP_CONF(const std::string & n) : name(n), cash(0) {} +CORP_CONF(const std::string & n, double c) : name(n), cash(c) {} + +std::string name; +double cash; }; +inline +bool operator==(const CORP_CONF & a, const CORP_CONF & b) +{ +return a.name == b.name; +} + #endif //CORP_CONF_H