libhsplasma
libhsplasma copied to clipboard
pyClothingItem index safety and extra properties
pyClothingItem was missing a few things to be properly usable, so I made the following modifications:
- Added constants
pyClothingItem.kNumLODLevelsandpyClothingItem.kLayerMax. - Added
pyClothingItem.numElementsgetter (as well as matchingplClothingItem::getNumElements()). - The following will throw an
IndexErrorwhen appropriate instead of crashing:getElementTexturesetElementTexturegetElementNamesetElementNamedelElement