class ClothingContainer

in global :: Sandbox

Holds a collection of clothing items. Won't let you add items that aren't compatible.


public float Height { get; set; }

The avatar's height. Default is 1.

public bool PrefersHuman { get; set; }

If true, this avatar prefers to use a human model when possible

public List<ClothingContainer.ClothingEntry> Clothing

A list of clothing items the avatar is wearing

public void Toggle( Clothing clothing )

Add a clothing item if we don't already contain it, else remove it

public ClothingContainer.ClothingEntry Add( Clothing clothing )

Add clothing item

public void Add( ClothingContainer.ClothingEntry clothing )

Add clothing item

public ClothingContainer.ClothingEntry FindEntry( Clothing clothing )

Find a clothing entry matching this clothing item

public bool Has( Clothing clothing )

Returns true if we have this clothing item

public void Deserialize( string json )

Deserialize from Json

public static ClothingContainer CreateFromJson( string json )

Create the container from json definitions

public int GetHashCode( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public IEnumerable<ValueTuple<string,int>> GetBodyGroups( IEnumerable<Clothing> items )

😔 No documentation found.

public void Normalize( )

😔 No documentation found.

public ClothingContainer( )

😔 No documentation found.

public IEnumerable<ValueTuple<string,int>> GetBodyGroups( )

😔 No documentation found.

public void AddRange( IEnumerable<ClothingContainer.ClothingEntry> clothing )

😔 No documentation found.

public static ClothingContainer CreateFromLocalUser( )

😔 No documentation found.

public string Serialize( )

😔 No documentation found.