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