X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9701b7ab4dc4cd709ad4dcaa750fc0021f15e231..70f8adff2c970496bdc45717cad49ddec0405ae7:/include/stg/corp_conf.h diff --git a/include/stg/corp_conf.h b/include/stg/corp_conf.h index 88a84f18..d6cc2ebb 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) {} +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