Decor - KitchenMods/KitchenLib GitHub Wiki

GameDataObject - Decor

What is an Decor?

Decor is a cosmetic item which appears in the shop, these are either Floorings or Wallpapers.

Base Overrides

// Material is used as the visuals of this Decor.
public override Material Material => MaterialUtils.GetExistingMaterial("Wood - Default");

// ApplicatorAppliance is used to decide which Appliance will be used to apply this Decor.
public override Appliance ApplicatorAppliance => (Appliance)GDOUtils.GetExistingGDO(ApplianceReferences.FlooringApplicator);

// Type is used to decide if this Decor is a Flooring or Wallpaper
public override LayoutMaterialType Type => LayoutMaterialType.Floor;

// IsAvailable is used to decide if this Decor can appear in the shop.
public override bool IsAvailable => true;

KitchenLib Overrides

// UniqueNameID is used to generate the ID of the GDO. THIS MUST BE UNIQUE!
public override string UniqueNameID => "My Cool GDO";
⚠️ **GitHub.com Fallback** ⚠️