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 SourceName
Declaration
public string Name
Field Value
Type | Description |
---|---|
System.String |
Price
The price per cm3.
Declaration
public double Price
Field Value
Type | Description |
---|---|
System.Double |
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> |
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 SourceAbstract
Declaration
public bool Abstract { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Color
Declaration
public Color Color { get; }
Property Value
Type | Description |
---|---|
Color |
Icon
An icon used to represent the material in graphic interfaces.
Declaration
public SpriteSpecifier Icon { get; }
Property Value
Type | Description |
---|---|
Robust.Shared.Utility.SpriteSpecifier |
ID
Declaration
public string ID { get; }
Property Value
Type | Description |
---|---|
System.String |
Parents
Declaration
public string[] Parents { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Implements
Robust.Shared.Prototypes.IPrototype
Robust.Shared.Prototypes.IInheritingPrototype