Page 1 of 1

Item Equip

PostPosted: Thu Jul 08, 2010 3:42 pm
by geshi
Hey, In this patch I have added Equip method to PlayerInventoryItem.cs and moved all the Equip code from GamePlayer to there.

Re: Item Equip

PostPosted: Thu Jul 08, 2010 4:51 pm
by Tolakram
Interesting Geshi, thanks.

I'm changing things around still so not quite ready, but this may be a good idea. My thinking is the interface will die and all classtypes that handle items will have to inherit from playerinventoryitem. Even if so, most of this patch can be accepted once I'm done, I'll have to think about what methods we want to move once I have some more time.

Re: Item Equip

PostPosted: Thu Jul 08, 2010 8:03 pm
by Graveen
really geshi you code that ? with reflection ?

well, anyway, interesting patch, that will not be included in the core due to heavy changes performed by Tola, but it worths it.

Re: Item Equip

PostPosted: Thu Jul 08, 2010 10:02 pm
by geshi
mmh I didn't really code it.. I looked at how Tolakram did it for Delve and did the same for Equip and it worked :D but now I know what you meant by Reflection :D :D