I don't really know the terminology for what i'm trying to accomplish, but essentially what i'm trying to do is the following:
But what im trying to avoid is having to create a class for equipment. Is there any way to contain the "Equipment" class methods and dictionaries without creating an entire new class for it? Id still like to be able to access it the same way, but without a new class.
#edit: Realized i put this in the wrong section. My apologies. Id move it if I could.
Code:
Character.Equipment.Equip(Item, Position);
#edit: Realized i put this in the wrong section. My apologies. Id move it if I could.