Show / Hide Table of Contents

Class MaterialPrototype

Materials are read-only storage for the properties of specific materials. Properties should be intrinsic (or at least as much is necessary for game purposes).

Inheritance
System.Object
MaterialPrototype
Implements
Robust.Shared.Prototypes.IPrototype
Robust.Shared.Prototypes.IInheritingPrototype
Namespace: Content.Shared.Materials
Assembly: Content.Shared.dll
Syntax
public sealed class MaterialPrototype : object, IPrototype, IInheritingPrototype

Fields

| Improve this Doc View Source

Name

Declaration
public string Name
Field Value
Type Description
System.String
| Improve this Doc View Source

Price

The price per cm3.

Declaration
public double Price
Field Value
Type Description
System.Double
| Improve this Doc View Source

StackEntity

For material storage to be able to convert back and forth between the material and physical entities you can carry, include which stack we should spawn by default.

Declaration
public string? StackEntity
Field Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

Unit

Locale id for the unit of this material. Lathe recipe tooltips and material storage display use this to let you change a material to sound nicer. For example, 5 bars of gold is better than 5 sheets of gold.

Declaration
public string Unit
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

Abstract

Declaration
public bool Abstract { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Color

Declaration
public Color Color { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Icon

An icon used to represent the material in graphic interfaces.

Declaration
public SpriteSpecifier Icon { get; }
Property Value
Type Description
Robust.Shared.Utility.SpriteSpecifier
| Improve this Doc View Source

ID

Declaration
public string ID { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Parents

Declaration
public string[] Parents { get; }
Property Value
Type Description
System.String[]

Implements

Robust.Shared.Prototypes.IPrototype
Robust.Shared.Prototypes.IInheritingPrototype
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾