git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented some service and corporation management functions.
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
sgconfig2
/
stgconfig.cpp
diff --git
a/projects/stargazer/plugins/configuration/sgconfig2/stgconfig.cpp
b/projects/stargazer/plugins/configuration/sgconfig2/stgconfig.cpp
index d83942dc3a78065c172a8a5475643da9090a8609..f08286ca7906e015cbfd983b2f945c23e6e82bd6 100644
(file)
--- a/
projects/stargazer/plugins/configuration/sgconfig2/stgconfig.cpp
+++ b/
projects/stargazer/plugins/configuration/sgconfig2/stgconfig.cpp
@@
-4,33
+4,13
@@
#include <functional>
#include <algorithm>
#include <functional>
#include <algorithm>
+#include "stg/plugin_creator.h"
#include "stgconfig.h"
#include "../../../tariffs.h"
#include "../../../admins.h"
#include "../../../users.h"
#include "stgconfig.h"
#include "../../../tariffs.h"
#include "../../../admins.h"
#include "../../../users.h"
-class STGCONFIG_CREATOR
-{
-private:
- STG_CONFIG * stgconfig;
-
-public:
- STGCONFIG_CREATOR()
- : stgconfig(new STG_CONFIG())
- {
- };
- ~STGCONFIG_CREATOR()
- {
- delete stgconfig;
- };
-
- STG_CONFIG * GetPlugin()
- {
- return stgconfig;
- };
-};
-
-STGCONFIG_CREATOR stgc;
+PLUGIN_CREATOR<STG_CONFIG> stgc;
BASE_PLUGIN * GetPlugin()
{
BASE_PLUGIN * GetPlugin()
{
@@
-175,12
+155,12
@@
return NULL;
uint16_t STG_CONFIG::GetStartPosition() const
{
uint16_t STG_CONFIG::GetStartPosition() const
{
-return 2
2
0;
+return 20;
}
uint16_t STG_CONFIG::GetStopPosition() const
{
}
uint16_t STG_CONFIG::GetStopPosition() const
{
-return 2
2
0;
+return 20;
}
bool PrepareNetwork()
}
bool PrepareNetwork()