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#include <map>
24
25namespace Eris {
26
27class Entity;
28
29class View;
30
32 std::string type;
33 std::string constraint;
34 int min;
35 int max;
36};
37
38struct Usage {
39 std::string name;
40 std::string constraint;
41 std::string description;
42
43 std::map<std::string, UsageParameter> params;
44
45 bool operator==(const Usage& x) const {
46 return name == x.name;
47 }
48};
49
50struct TaskUsage {
51 std::string name;
52
53 std::map<std::string, UsageParameter> params;
54
55 bool operator==(const TaskUsage& x) const {
56 return name == x.name;
57 }
58
59};
60
61}
62
63#endif //ERIS_USAGE_H
Definition: Account.cpp:33