def _call_entity_method(self, entityid, method, param): entity = EntityManager().getentity(entityid) if entity: getattr(entity, method)()
def _create_entity(self, entityid): '''创建Avatar对象''' from logic.Avatar import Avatar entity = Avatar(entityid) EntityManager().addentity(entityid, entity) return True