Struct ReagentId
Struct used to uniquely identify a reagent. This is usually just a ReagentPrototype id string, however some reagents
contain additional data (e.g., blood could store DNA data).
Assembly: Content.Shared.dll
Syntax
public struct ReagentId : IEquatable<ReagentId>
Constructors
|
Improve this Doc
View Source
ReagentId()
Declaration
|
Improve this Doc
View Source
ReagentId(String, ReagentData)
Declaration
public ReagentId(string prototype, ReagentData data)
Parameters
Type |
Name |
Description |
System.String |
prototype |
|
ReagentData |
data |
|
Properties
|
Improve this Doc
View Source
Data
Any additional data that is unique to this reagent type. E.g., for blood this could be DNA data.
Declaration
public ReagentData Data { get; }
Property Value
|
Improve this Doc
View Source
Prototype
Declaration
public string Prototype { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
Equals(ReagentId)
Declaration
public bool Equals(ReagentId other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Nullable<Object>)
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
System.Nullable<System.Object> |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(String, ReagentData)
Declaration
public bool Equals(string prototype, ReagentData otherData = null)
Parameters
Type |
Name |
Description |
System.String |
prototype |
|
ReagentData |
otherData |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToString(FixedPoint2)
Declaration
public string ToString(FixedPoint2 quantity)
Parameters
Returns
Type |
Description |
System.String |
|
Operators
|
Improve this Doc
View Source
Equality(ReagentId, ReagentId)
Declaration
public static bool operator ==(ReagentId left, ReagentId right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(ReagentId, ReagentId)
Declaration
public static bool operator !=(ReagentId left, ReagentId right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
IEquatable<>