Hackish fix for inheritance.

Character should inherit from Entity/Thing, but doesn't really in the
Python class hierarchy. We'll fudge it anyways.
This commit is contained in:
Erik Ogenvik 2018-07-29 19:56:45 +02:00
parent d1ebd44e01
commit a4e29323a4
4 changed files with 36 additions and 10 deletions

View file

@ -49,8 +49,8 @@ CyPy_Server::CyPy_Server() : ExtensionModule("server")
Py::Dict d(moduleDictionary());
//d["LocatedEntity"] = CyPy_LocatedEntity::type();
d["Character"] = CyPy_Character::type();
d["Entity"] = CyPy_Entity::type();
//FIXME: Remove "Thing"
// d["Entity"] = CyPy_Entity::type();
//FIXME: Make CyPy_Entity wrap Thing. And in the process also combine Thing and Entity (no reason to separate them)
d["Thing"] = CyPy_Entity::type();
d["Mind"] = CyPy_BaseMind::type();
d["MemEntity"] = CyPy_MemEntity::type();