summaryrefslogtreecommitdiff
path: root/src/game-server/statuseffect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/statuseffect.h')
-rw-r--r--src/game-server/statuseffect.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game-server/statuseffect.h b/src/game-server/statuseffect.h
index 2b7a36f8..7da5fdf9 100644
--- a/src/game-server/statuseffect.h
+++ b/src/game-server/statuseffect.h
@@ -21,7 +21,7 @@
#ifndef STATUSEFFECT_H
#define STATUSEFFECT_H
-#include <string>
+#include "scripting/script.h"
class Being;
@@ -36,12 +36,12 @@ class StatusEffect
int getId() const
{ return mId; }
- void setTickFunction(const std::string &tickFunction)
- { mTickFunction = tickFunction; }
+ void setTickCallback(Script *script)
+ { script->assignCallback(mTickCallback); }
private:
int mId;
- std::string mTickFunction;
+ Script::Ref mTickCallback;
};
#endif