]> git.stg.codes - stg.git/blob - include/stg/corp_conf.h
d6cc2ebbe626f5422de591c3f9e47f26d4e97a83
[stg.git] / include / stg / corp_conf.h
1 #ifndef CORP_CONF_H
2 #define CORP_CONF_H
3
4 #include <string>
5
6 struct CORP_CONF
7 {
8 CORP_CONF() : name(), cash(0) {}
9 CORP_CONF(const std::string & n) : name(n), cash(0) {}
10 CORP_CONF(const std::string & n, double c) : name(n), cash(c) {}
11
12 std::string name;
13 double      cash;
14 };
15
16 inline
17 bool operator==(const CORP_CONF & a, const CORP_CONF & b)
18 {
19 return a.name == b.name;
20 }
21
22 #endif //CORP_CONF_H