File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 14
14
namespace Langulus ::A
15
15
{
16
16
17
+ struct Resource ;
18
+ struct Converter ;
19
+
17
20
// /
18
21
// / Abstract economy module
19
22
// /
20
23
struct Economy : virtual Module {
21
24
LANGULUS_BASES (Module);
22
25
Economy () : Resolvable {this }, Module {nullptr } {}
26
+
27
+ using Text = Anyness::Text;
28
+
29
+ virtual auto GetResource (const Text&) const -> const Resource* = 0;
30
+ virtual auto GetConverter (const Text&) const -> const Converter* = 0;
23
31
};
24
32
25
33
// /
@@ -60,7 +68,7 @@ namespace Langulus::A
60
68
virtual Real GetConsumption () const noexcept = 0;
61
69
virtual Real GetConsumptionLocal (const Place&, Real radius) const noexcept = 0;
62
70
63
- auto At (const Place&) const noexcept -> const ResourceInstance*;
71
+ virtual auto At (const Place&) const noexcept -> const ResourceInstance* = 0 ;
64
72
};
65
73
66
74
// /
@@ -94,7 +102,7 @@ namespace Langulus::A
94
102
virtual Count GetInstanceCount () const noexcept = 0;
95
103
virtual Count GetInstanceCountLocal (const Place&, Real radius) const noexcept = 0;
96
104
97
- auto At (const Place&) const noexcept -> const ConverterInstance*;
105
+ virtual auto At (const Place&) const noexcept -> const ConverterInstance* = 0 ;
98
106
};
99
107
100
108
// /
You can’t perform that action at this time.
0 commit comments