Converty ScriptFactory for Entity to a template

This class is now completely generic except for the type pointers for
the class being wrapped, so this starts the codebase moving to using
it for all server objects that should be scriptable
This commit is contained in:
Alistair Riddoch 2011-12-15 01:00:28 +00:00
parent 8f7c07a49d
commit e7f5ac91ea
5 changed files with 34 additions and 63 deletions

View file

@ -73,7 +73,7 @@ int main()
// Py_DECREF(package_name);
// assert(testmod);
PythonScriptFactory psf("testmod", "TestEntity");
PythonScriptFactory<Entity> psf("testmod", "TestEntity");
int ret = psf.setup();
assert(ret == 0);
Entity * e = new Entity("1", 1);