21
21
#include " ../include/Langulus/Life.hpp"
22
22
#include " ../include/Langulus/Network.hpp"
23
23
#include " ../include/Langulus/User.hpp"
24
+ #include " ../include/Langulus/Economy.hpp"
24
25
25
26
#if LANGULUS_OS(WINDOWS)
26
27
#include < Windows.h>
@@ -146,6 +147,14 @@ namespace Langulus::Entity
146
147
(void )MetaDataOf<A::Ecosystem>();
147
148
(void )MetaDataOf<A::Organism>();
148
149
150
+ (void )MetaDataOf<A::Economy>();
151
+ (void )MetaDataOf<A::EconomyUnit>();
152
+ (void )MetaDataOf<A::Resource>();
153
+ (void )MetaDataOf<A::ResourceInstance>();
154
+ (void )MetaDataOf<A::Converter>();
155
+ (void )MetaDataOf<A::ConverterInstance>();
156
+ (void )MetaDataOf<A::Trader>();
157
+
149
158
(void )MetaDataOf<A::Network>();
150
159
(void )MetaDataOf<A::NetworkUnit>();
151
160
(void )MetaDataOf<A::Client>();
@@ -165,7 +174,7 @@ namespace Langulus::Entity
165
174
// First-stage destruction: tear down any potential circular
166
175
// references
167
176
for (auto list : mModules ) {
168
- for (auto & mod : list.mValue )
177
+ for (auto & mod : list.GetValue () )
169
178
mod->Teardown ();
170
179
}
171
180
@@ -187,7 +196,7 @@ namespace Langulus::Entity
187
196
if (mLibraries ) {
188
197
Logger::Error (this , " : Can't unload last module(s): " );
189
198
for (auto library : mLibraries )
190
- Logger::Append (library.mKey , " " );
199
+ Logger::Append (library.GetKey () , " " );
191
200
192
201
Logger::Error (this , " : This likely involves a memory leak "
193
202
" that withholds managed data reflected by the given modules" );
@@ -459,11 +468,11 @@ namespace Langulus::Entity
459
468
// Test if the boundary conflicts with any of the previously
460
469
// loaded libraries
461
470
for (auto lib : mLibraries ) {
462
- if (lib.mValue .mBoundary == library.mBoundary ) {
471
+ if (lib.GetValue () .mBoundary == library.mBoundary ) {
463
472
Logger::Error (
464
473
" The library `" , path, " ` boundary `" , library.mBoundary ,
465
- " ` conflicts with already loaded library `" , lib.mKey ,
466
- " ` boundary `" , lib.mValue .mBoundary , ' `'
474
+ " ` conflicts with already loaded library `" , lib.GetKey () ,
475
+ " ` boundary `" , lib.GetValue () .mBoundary , ' `'
467
476
);
468
477
(void )UnloadSharedLibrary (library);
469
478
return {};
@@ -606,8 +615,8 @@ namespace Langulus::Entity
606
615
return {};
607
616
608
617
for (auto library : mLibraries ) {
609
- if (library.mValue .mBoundary == type->mLibraryName )
610
- return library.mValue ;
618
+ if (library.GetValue () .mBoundary == type->mLibraryName )
619
+ return library.GetValue () ;
611
620
}
612
621
return {};
613
622
}
@@ -646,7 +655,7 @@ namespace Langulus::Entity
646
655
// / @return true if no exit was requested by any of the modules
647
656
bool Runtime::Update (Time dt) {
648
657
for (auto pair : mModules ) {
649
- for (auto module : pair.mValue ) {
658
+ for (auto module : pair.GetValue () ) {
650
659
if (not module ->Update (dt))
651
660
return false ;
652
661
}
0 commit comments