AssetPart

References
public sealed class AssetPart
A monotone part of an asset.

Constructors

AssetPart

#
Create a new partial asset.
public AssetPart(
mesh,
Asset mesh.
name,
Asset name.
season,
Asset season.
params (AssetColour colour, int luminance)[]
colours
One or more luminance adjusted colours (-10 to +10).
)

AssetPart

#
Create a new partial asset.
public AssetPart(
mesh,
Asset mesh.
name,
Asset name.
season,
Asset season.
params AssetColour[]
colours
One or more asset colours.
)

AssetPart

#
Create a new partial asset.
public AssetPart(
mesh,
Asset mesh.
name,
Asset name.
season,
Asset season.
params Color[]
colours
One or more asset colours.
)

AssetPart

#
Deserialise this partial asset from a reader.
public AssetPart()

Properties

Colours

#
(Potentially unresolved) colours for this part.
public Color[] Colours { get; }

Mesh

#
Low polygon mesh of this part.
public AssetMesh Mesh { get; }

Name

#
Name of this part.
public string Name { get; }

Season

#
Seasons for which this part is relevant.
public AssetSeason Season { get; }

Methods

WithColour

#
Modify the colours of this part.
public AssetPart WithColour(
Color[]
newColours
)

WithName

#
Modify the name of this part.
public AssetPart WithName(
newName
)

WithSeason

#
Modify the season of this part.
public AssetPart WithSeason(
newSeason
)

Write

#
Serialise this partial asset to a writer.
public void Write()