mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
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:
parent
8f7c07a49d
commit
e7f5ac91ea
5 changed files with 34 additions and 63 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue