Show / Hide Table of Contents

Class SiliconLaw

Inheritance
System.Object
SiliconLaw
SiliconLawPrototype
Namespace: Content.Shared.Silicons.Laws
Assembly: Content.Shared.dll
Syntax
public class SiliconLaw : IComparable<SiliconLaw>

Fields

| Improve this Doc View Source

LawIdentifierOverride

An identifier that overrides Order in the law menu UI.

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

LawString

A locale string which is the actual text of the law.

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

Order

The order of the law in the sequence. Also is the identifier if LawIdentifierOverride is null.

Declaration
public FixedPoint2 Order
Field Value
Type Description
FixedPoint2
Remarks

This is a fixedpoint2 only for the niche case of supporting laws that go between 0 and 1. Funny.

Methods

| Improve this Doc View Source

CompareTo(SiliconLaw)

Declaration
public int CompareTo(SiliconLaw other)
Parameters
Type Name Description
SiliconLaw other
Returns
Type Description
System.Int32
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾