mirror of
https://github.com/edubart/otclient.git
synced 2025-12-22 00:17:10 +01:00
more scripting features (dynamic fields)
This commit is contained in:
@@ -31,9 +31,15 @@ class Scriptable : public boost::enable_shared_from_this<Scriptable>
|
||||
{
|
||||
public:
|
||||
virtual const char *getScriptableName() const { return NULL; }
|
||||
|
||||
void associateLuaRef(const std::string& refName, int refId);
|
||||
int getLuaRef(const std::string& refName);
|
||||
void clearLuaRefs();
|
||||
|
||||
private:
|
||||
std::map<std::string, int> m_luaRefs;
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<Scriptable> ScriptablePtr;
|
||||
typedef boost::weak_ptr<Scriptable> ScriptableWeakPtr;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user