mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
* 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.
14 lines
326 B
C++
14 lines
326 B
C++
// This file may be redistributed and modified only under the terms of
|
|
// the GNU General Public License (See COPYING for details).
|
|
// Copyright (C) 2001 Alistair Riddoch
|
|
|
|
#include "PythonScript.h"
|
|
|
|
PythonScript::PythonScript(PyObject * o) : scriptObject(o)
|
|
{
|
|
}
|
|
|
|
PythonScript::~PythonScript()
|
|
{
|
|
Py_DECREF(scriptObject);
|
|
}
|