#This file is distributed under the terms of the GNU General Public license.
#Copyright (C) 1999 Aloril (See the file COPYING for details).

from atlas import *

from world.objects.Thing import Thing

class Garment(Thing):
    """This is base class for clothing. This mechanism is just a quick hacky
       way to modify the guise attribute."""
    def wear_operation(self, op):
        #to_ = self.world.get_object(op[1].id)
        wearer = self.world.get_object(op.from_)
        guise = wearer.guise
        # return Operation("set",op[0],Entity(op.from_, ),to=to_)
        print type(guise)
        print guise
        print guise['mesh']
        print guise['mesh'].dress
        print guise['mesh'].head
        print guise['mesh'].pants
        print guise['material']
        print guise['material'].dress
        print guise['material'].head
        print guise['material'].pants
