Class VendingMachineComponent
Inheritance
System.Object
VendingMachineComponent
Assembly: Content.Shared.dll
Syntax
public sealed class VendingMachineComponent : Component
Fields
|
Improve this Doc
View Source
Action
The action available to the player controlling the vending machine
Declaration
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
ActionEntity
Declaration
public EntityUid? ActionEntity
Field Value
Type |
Description |
System.Nullable<EntityUid> |
|
|
Improve this Doc
View Source
Broken
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
BrokenState
RSI state for when the vending machine is unpowered.
Will be displayed on the layer Base
Declaration
public string? BrokenState
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
CanShoot
When true, will forcefully throw any object it dispenses
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Contraband
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ContrabandInventory
Declaration
public Dictionary<string, VendingMachineInventoryEntry> ContrabandInventory
Field Value
|
Improve this Doc
View Source
DenyAccumulator
Declaration
public float DenyAccumulator
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
DenyDelay
Used by the server to determine how long the vending machine stays in the "Deny" state.
Used by the client to determine how long the deny animation should be played.
Declaration
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Denying
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DenyState
RSI state for the vending machine's deny animation. Will either be played once as sprite flick
or looped depending on how LoopDenyAnimation is set.
Will be displayed on the layer BaseUnshaded
Declaration
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
DispenseOnHitAccumulator
Declaration
public float DispenseOnHitAccumulator
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
DispenseOnHitChance
The chance that a vending machine will randomly dispense an item on hit.
Chance is 0 if null.
Declaration
public float? DispenseOnHitChance
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
DispenseOnHitCooldown
Amount of time in seconds that need to pass before damage can cause a vending machine to eject again.
This value is separate to EjectDelay because that value might be
0 for a vending machine for legitimate reasons (no desired delay/no eject animation)
and can be circumvented with forced ejections.
Declaration
public float? DispenseOnHitCooldown
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
DispenseOnHitCoolingDown
Declaration
public bool DispenseOnHitCoolingDown
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DispenseOnHitThreshold
The minimum amount of damage that must be done per hit to have a chance
of dispensing an item.
Declaration
public float? DispenseOnHitThreshold
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
EjectAccumulator
Declaration
public float EjectAccumulator
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
EjectDelay
Used by the server to determine how long the vending machine stays in the "Eject" state.
The selected item is dispensed afer this delay.
Used by the client to determine how long the deny animation should be played.
Declaration
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Ejecting
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
EjectState
RSI state for the vending machine's eject animation.
Will be displayed on the layer BaseUnshaded
Declaration
public string? EjectState
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
EmaggedInventory
Declaration
public Dictionary<string, VendingMachineInventoryEntry> EmaggedInventory
Field Value
|
Improve this Doc
View Source
Inventory
Declaration
public Dictionary<string, VendingMachineInventoryEntry> Inventory
Field Value
|
Improve this Doc
View Source
LoopDenyAnimation
If set to true
(default) will loop the animation of the DenyState for the duration
of DenyDelay. If set to false
will play a sprite
flick animation for the state and then linger on the final frame until the end of the delay.
Declaration
public bool LoopDenyAnimation
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
NextEmpEject
While disabled by EMP it randomly ejects items
Declaration
public TimeSpan NextEmpEject
Field Value
Type |
Description |
TimeSpan |
|
|
Improve this Doc
View Source
NextItemToEject
Declaration
public string? NextItemToEject
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
NonLimitedEjectForce
Declaration
public float NonLimitedEjectForce
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
NonLimitedEjectRange
Declaration
public float NonLimitedEjectRange
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
NormalState
RSI state for the vending machine's normal state. Usually a looping animation.
Will be displayed on the layer BaseUnshaded
Declaration
public string? NormalState
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
OffState
RSI state for when the vending machine is unpowered.
Will be displayed on the layer Base
Declaration
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
PackPrototypeId
Declaration
public string PackPrototypeId
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ScreenState
RSI state for the screen of the vending machine
Will be displayed on the layer Screen
Declaration
public string? ScreenState
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
SoundDeny
Sound that plays when an item can't be ejected
Declaration
public SoundSpecifier SoundDeny
Field Value
Type |
Description |
Robust.Shared.Audio.SoundSpecifier |
|
|
Improve this Doc
View Source
SoundVend
Sound that plays when ejecting an item
Declaration
public SoundSpecifier SoundVend
Field Value
Type |
Description |
Robust.Shared.Audio.SoundSpecifier |
|
|
Improve this Doc
View Source
ThrowNextItem
Declaration
public bool ThrowNextItem
Field Value
Type |
Description |
System.Boolean |
|