eris  1.4.0
A WorldForge client library.
Usage.h
1 /*
2  Copyright (C) 2019 Erik Ogenvik
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18 
19 #ifndef ERIS_USAGE_H
20 #define ERIS_USAGE_H
21 
22 #include <string>
23 
24 namespace Eris {
25 
26 class Entity;
27 
28 class View;
29 
31  std::string type;
32  std::string constraint;
33  int min;
34  int max;
35 };
36 
37 struct Usage {
38  std::string name;
39  std::string constraint;
40  std::string description;
41 
42  std::map<std::string, UsageParameter> params;
43 
44  bool operator==(const Usage& x) const {
45  return name == x.name;
46  }
47 };
48 
49 struct TaskUsage {
50  std::string name;
51 
52  std::map<std::string, UsageParameter> params;
53 
54  bool operator==(const TaskUsage& x) const {
55  return name == x.name;
56  }
57 
58 };
59 
60 }
61 
62 #endif //ERIS_USAGE_H
Definition: Account.cpp:33