2001-04-10 19:05:14 +00:00
|
|
|
// This file may be redistributed and modified only under the terms of
|
|
|
|
|
// the GNU General Public License (See COPYING for details).
|
2001-04-16 16:26:44 +00:00
|
|
|
// Copyright (C) 2001 Alistair Riddoch
|
2001-04-10 19:05:14 +00:00
|
|
|
|
|
|
|
|
#include "PythonScript.h"
|
|
|
|
|
|
2005-12-05 Al Riddoch <alriddoch@zepler.org>
* server/TaskFactory.cpp, server/TaskFactory.h: Re-write the
script task to handle creating the script directly, rather than
use ScriptFactory which is not suitable.
* rulesets/PythonMindScript.cpp, rulesets/PythonScript.cpp,
rulesets/PythonScript.h, PythonThingScript.cpp,
rulesets/PythonThingScript.h, rulesets/Python_API.cpp,
server/ScriptFactory.cpp: Remove obsolete pointer to entity
from script class, removing its link to Entity, making it more
generally useful.
2005-12-05 23:47:17 +00:00
|
|
|
PythonScript::PythonScript(PyObject * o) : scriptObject(o)
|
2001-04-10 19:05:14 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PythonScript::~PythonScript()
|
|
|
|
|
{
|
2001-05-23 19:09:15 +00:00
|
|
|
Py_DECREF(scriptObject);
|
2001-04-10 19:05:14 +00:00
|
|
|
}
|