Show / Hide Table of Contents

Class MechComponent

A large, pilotable machine that has equipment that is powered via an internal battery.

Inheritance
System.Object
MechComponent
Namespace: Content.Shared.Mech.Components
Assembly: Content.Shared.dll
Syntax
public sealed class MechComponent : Component

Fields

| Improve this Doc View Source

Airtight

Whether or not the mech is airtight.

Declaration
public bool Airtight
Field Value
Type Description
System.Boolean
Remarks

This needs to be redone when mech internals are added

| Improve this Doc View Source

BaseState

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

BatteryRemovalDelay

How long it takes to pull out the battery.

Declaration
public float BatteryRemovalDelay
Field Value
Type Description
System.Single
| Improve this Doc View Source

BatterySlot

The slot the battery is stored in.

Declaration
public ContainerSlot BatterySlot
Field Value
Type Description
Robust.Shared.Containers.ContainerSlot
| Improve this Doc View Source

BatterySlotId

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

Broken

Whether the mech has been destroyed and is no longer pilotable.

Declaration
public bool Broken
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

BrokenState

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

CurrentSelectedEquipment

The current selected equipment of the mech. If null, the mech is using just its fists.

Declaration
public EntityUid? CurrentSelectedEquipment
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

Energy

How much energy the mech has. Derived from the currently inserted battery.

Declaration
public FixedPoint2 Energy
Field Value
Type Description
FixedPoint2
| Improve this Doc View Source

EntryDelay

How long it takes to enter the mech.

Declaration
public float EntryDelay
Field Value
Type Description
System.Single
| Improve this Doc View Source

EquipmentContainer

A container for storing the equipment entities.

Declaration
public Container EquipmentContainer
Field Value
Type Description
Robust.Shared.Containers.Container
| Improve this Doc View Source

EquipmentContainerId

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

EquipmentWhitelist

A whitelist for inserting equipment items.

Declaration
public EntityWhitelist EquipmentWhitelist
Field Value
Type Description
EntityWhitelist
| Improve this Doc View Source

ExitDelay

How long it takes to pull another person outside of the mech. You can exit instantly yourself.

Declaration
public float ExitDelay
Field Value
Type Description
System.Single
| Improve this Doc View Source

Integrity

How much "health" the mech has left.

Declaration
public FixedPoint2 Integrity
Field Value
Type Description
FixedPoint2
| Improve this Doc View Source

MaxEnergy

The maximum amount of energy the mech can have. Derived from the currently inserted battery.

Declaration
public FixedPoint2 MaxEnergy
Field Value
Type Description
FixedPoint2
| Improve this Doc View Source

MaxEquipmentAmount

The maximum amount of equipment items that can be installed in the mech

Declaration
public int MaxEquipmentAmount
Field Value
Type Description
System.Int32
| Improve this Doc View Source

MaxIntegrity

The maximum amount of damage the mech can take.

Declaration
public FixedPoint2 MaxIntegrity
Field Value
Type Description
FixedPoint2
| Improve this Doc View Source

MechCycleAction

Declaration
public EntProtoId MechCycleAction
Field Value
Type Description
Robust.Shared.Prototypes.EntProtoId
| Improve this Doc View Source

MechCycleActionEntity

Declaration
public EntityUid? MechCycleActionEntity
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

MechEjectAction

Declaration
public EntProtoId MechEjectAction
Field Value
Type Description
Robust.Shared.Prototypes.EntProtoId
| Improve this Doc View Source

MechEjectActionEntity

Declaration
public EntityUid? MechEjectActionEntity
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

MechToPilotDamageMultiplier

A multiplier used to calculate how much of the damage done to a mech is transfered to the pilot

Declaration
public float MechToPilotDamageMultiplier
Field Value
Type Description
System.Single
| Improve this Doc View Source

MechUiAction

Declaration
public EntProtoId MechUiAction
Field Value
Type Description
Robust.Shared.Prototypes.EntProtoId
| Improve this Doc View Source

MechUiActionEntity

Declaration
public EntityUid? MechUiActionEntity
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

OpenState

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

PilotSlot

The slot the pilot is stored in.

Declaration
public ContainerSlot PilotSlot
Field Value
Type Description
Robust.Shared.Containers.ContainerSlot
| Improve this Doc View Source

PilotSlotId

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

PilotWhitelist

Declaration
public EntityWhitelist PilotWhitelist
Field Value
Type Description
EntityWhitelist
| Improve this Doc View Source

StartingEquipment

The equipment that the mech initially has when it spawns. Good for things like nukie mechs that start with guns.

Declaration
public List<EntProtoId> StartingEquipment
Field Value
Type Description
List<Robust.Shared.Prototypes.EntProtoId>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾