Show / Hide Table of Contents

Class SharedVendingMachineSystem

Inheritance
System.Object
SharedVendingMachineSystem
VendingMachineSystem
VendingMachineSystem
Namespace: Content.Shared.VendingMachines
Assembly: Content.Shared.dll
Syntax
public abstract class SharedVendingMachineSystem : EntitySystem

Fields

| Improve this Doc View Source

Audio

Declaration
protected readonly SharedAudioSystem Audio
Field Value
Type Description
SharedAudioSystem
| Improve this Doc View Source

Popup

Declaration
protected readonly SharedPopupSystem Popup
Field Value
Type Description
SharedPopupSystem
| Improve this Doc View Source

PrototypeManager

Declaration
protected readonly IPrototypeManager PrototypeManager
Field Value
Type Description
Robust.Shared.Prototypes.IPrototypeManager

Methods

| Improve this Doc View Source

GetAllInventory(EntityUid, VendingMachineComponent)

Returns all of the vending machine's inventory. Only includes emagged and contraband inventories if EmaggedComponent exists and Contraband is true are true respectively.

Declaration
public List<VendingMachineInventoryEntry> GetAllInventory(EntityUid uid, VendingMachineComponent component = null)
Parameters
Type Name Description
EntityUid uid
VendingMachineComponent component
Returns
Type Description
List<VendingMachineInventoryEntry>
| Improve this Doc View Source

GetAvailableInventory(EntityUid, VendingMachineComponent)

Declaration
public List<VendingMachineInventoryEntry> GetAvailableInventory(EntityUid uid, VendingMachineComponent component = null)
Parameters
Type Name Description
EntityUid uid
VendingMachineComponent component
Returns
Type Description
List<VendingMachineInventoryEntry>
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
| Improve this Doc View Source

OnComponentInit(EntityUid, VendingMachineComponent, ComponentInit)

Declaration
protected virtual void OnComponentInit(EntityUid uid, VendingMachineComponent component, ComponentInit args)
Parameters
Type Name Description
EntityUid uid
VendingMachineComponent component
ComponentInit args
| Improve this Doc View Source

RestockInventoryFromPrototype(EntityUid, VendingMachineComponent)

Declaration
public void RestockInventoryFromPrototype(EntityUid uid, VendingMachineComponent component = null)
Parameters
Type Name Description
EntityUid uid
VendingMachineComponent component
| Improve this Doc View Source

TryAccessMachine(EntityUid, VendingMachineRestockComponent, VendingMachineComponent, EntityUid, EntityUid)

Declaration
public bool TryAccessMachine(EntityUid uid, VendingMachineRestockComponent restock, VendingMachineComponent machineComponent, EntityUid user, EntityUid target)
Parameters
Type Name Description
EntityUid uid
VendingMachineRestockComponent restock
VendingMachineComponent machineComponent
EntityUid user
EntityUid target
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryMatchPackageToMachine(EntityUid, VendingMachineRestockComponent, VendingMachineComponent, EntityUid, EntityUid)

Declaration
public bool TryMatchPackageToMachine(EntityUid uid, VendingMachineRestockComponent component, VendingMachineComponent machineComponent, EntityUid user, EntityUid target)
Parameters
Type Name Description
EntityUid uid
VendingMachineRestockComponent component
VendingMachineComponent machineComponent
EntityUid user
EntityUid target
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾