Skip to main content

TexturePacker.ExistingBlit

A private class in Root.Township, Alta.Customization. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Key for a texture already packed into the cosmetics atlas, so parts with the same texture and colours can share it.

Constructors​

MemberWhat it is
ExistingBlit(int workingIndex, Texture2D texture, CosmeticColor colorA, CosmeticColor colorB)Creates a TexturePacker.ExistingBlit from workingIndex, texture, colorA and colorB.

Fields​

4 private and internal fields
MemberWhat it is
private CosmeticColor colorAPrimary colour applied.
private CosmeticColor colorBSecondary colour applied.
private Texture2D textureThe source texture.
private int workingIndexThe part's working index, or 0 when sharing is allowed.

Methods​

MemberWhat it is
override bool Equals(object obj)Equal when index, texture and both colours are the same objects.
override int GetHashCode()Hash from the index, texture and both colours.

Used in​

Members of other types that take, return or hold a ExistingBlit: