Wobbly Life Mod SDK
 
Loading...
Searching...
No Matches
ModWobblyLife.ModClothingPiece Class Referenceabstract

Defines a characters clothing base. More...

Inheritance diagram for ModWobblyLife.ModClothingPiece:
ModWobblyLife.ModClothingBottom ModWobblyLife.ModClothingHat ModWobblyLife.ModClothingTop

Public Member Functions

SkinnedMeshRenderer GetSkinnedMeshRenderer ()
 Returns the skinned mesh of the clothing.
 
Renderer[] GetExternalRenderers ()
 Returns the renderers which are part of the clothing.
 
Sprite GetIconSprite ()
 Returns the icon sprite.
 
Color GetDefaultPrimaryColor ()
 Returns the default primary color.
 
ModClothingMaterialIndex GetMaterialPropertyIndex ()
 Returns the material property index mask.
 
bool IsAllowedToChangePrimaryColor ()
 Returns whether this clothing is allowed to change colour.
 
abstract ModClothingSelectionType GetClothingSelectionType ()
 Returns what type of clothing this is.
 

Protected Member Functions

virtual void OnValidate ()
 

Detailed Description

Defines a characters clothing base.

Member Function Documentation

◆ GetClothingSelectionType()

abstract ModClothingSelectionType ModWobblyLife.ModClothingPiece.GetClothingSelectionType ( )
pure virtual

Returns what type of clothing this is.

Returns

Implemented in ModWobblyLife.ModClothingBottom, ModWobblyLife.ModClothingHat, and ModWobblyLife.ModClothingTop.

◆ GetDefaultPrimaryColor()

Color ModWobblyLife.ModClothingPiece.GetDefaultPrimaryColor ( )

Returns the default primary color.

Returns

◆ GetExternalRenderers()

Renderer[] ModWobblyLife.ModClothingPiece.GetExternalRenderers ( )

Returns the renderers which are part of the clothing.

Returns

◆ GetIconSprite()

Sprite ModWobblyLife.ModClothingPiece.GetIconSprite ( )

Returns the icon sprite.

Returns

◆ GetMaterialPropertyIndex()

ModClothingMaterialIndex ModWobblyLife.ModClothingPiece.GetMaterialPropertyIndex ( )

Returns the material property index mask.

Returns

◆ GetSkinnedMeshRenderer()

SkinnedMeshRenderer ModWobblyLife.ModClothingPiece.GetSkinnedMeshRenderer ( )

Returns the skinned mesh of the clothing.

Returns

◆ IsAllowedToChangePrimaryColor()

bool ModWobblyLife.ModClothingPiece.IsAllowedToChangePrimaryColor ( )

Returns whether this clothing is allowed to change colour.

Returns

◆ OnValidate()

virtual void ModWobblyLife.ModClothingPiece.OnValidate ( )
protectedvirtual