Beispiel #1
0
    def from_json(self, json):
        '''
        Restore this object from the passed in json object

        @param json - the json object
        '''
        EntitySprite.from_json(self, json)
        self.health = json['health']
        self.item = get_items()[json['item']]
Beispiel #2
0
    def from_json(self, json):
        '''
        Restore this object from the passed in json object

        @param json - the json object
        '''
        EntitySprite.from_json(self, json)
        self.action_wait_val = json['action_wait_val']
        self.iters_until_action = json['iters_until_action']
        self.direction = json['direction']