#include "stg/users.h"
#include "stg/blowfish.h"
#include "stg/rs_packets.h"
+#include "stg/logger.h"
#include "nrmap_parser.h"
extern "C" PLUGIN * GetPlugin();
//-----------------------------------------------------------------------------
class RS_ADD_USER_NONIFIER: public NOTIFIER_BASE<USER_PTR> {
public:
- RS_ADD_USER_NONIFIER(REMOTE_SCRIPT & r) : rs(r) {}
+ RS_ADD_USER_NONIFIER(REMOTE_SCRIPT & r)
+ : NOTIFIER_BASE<USER_PTR>(), rs(r) {}
virtual ~RS_ADD_USER_NONIFIER() {}
void Notify(const USER_PTR & user);
//-----------------------------------------------------------------------------
class RS_DEL_USER_NONIFIER: public NOTIFIER_BASE<USER_PTR> {
public:
- RS_DEL_USER_NONIFIER(REMOTE_SCRIPT & r) : rs(r) {}
+ RS_DEL_USER_NONIFIER(REMOTE_SCRIPT & r)
+ : NOTIFIER_BASE<USER_PTR>(), rs(r) {}
virtual ~RS_DEL_USER_NONIFIER() {}
void Notify(const USER_PTR & user);
template <typename T>
class RS_CHG_AFTER_NOTIFIER: public PROPERTY_NOTIFIER_BASE<T> {
public:
- RS_CHG_AFTER_NOTIFIER(REMOTE_SCRIPT & r, USER_PTR u) : user(u), rs(r) {}
+ RS_CHG_AFTER_NOTIFIER(REMOTE_SCRIPT & r, USER_PTR u)
+ : PROPERTY_NOTIFIER_BASE<T>(), user(u), rs(r) {}
RS_CHG_AFTER_NOTIFIER(const RS_CHG_AFTER_NOTIFIER<T> & rvalue)
- : user(rvalue.user), rs(rvalue.rs)
- {}
+ : PROPERTY_NOTIFIER_BASE<T>(), user(rvalue.user), rs(rvalue.rs) {}
void Notify(const T & oldValue, const T & newValue);
USER_PTR GetUser() { return user; }
const std::string & GetStrError() const { return errorStr; }
const std::string GetVersion() const { return "Remote script v 0.3"; }
- uint16_t GetStartPosition() const { return 20; }
- uint16_t GetStopPosition() const { return 20; }
+ uint16_t GetStartPosition() const { return 10; }
+ uint16_t GetStopPosition() const { return 10; }
void DelUser(USER_PTR u) { UnSetUserNotifier(u); }
void AddUser(USER_PTR u) { SetUserNotifier(u); }
RS_ADD_USER_NONIFIER onAddUserNotifier;
RS_DEL_USER_NONIFIER onDelUserNotifier;
+ PLUGIN_LOGGER logger;
+
friend class UpdateRouter;
friend class DisconnectUser;
};