Show / Hide Table of Contents

Class TakeAmmoEvent

Raised on a gun when it would like to take the specified amount of ammo.

Inheritance
System.Object
TakeAmmoEvent
Namespace: Content.Shared.Weapons.Ranged.Events
Assembly: Content.Shared.dll
Syntax
public sealed class TakeAmmoEvent : EntityEventArgs

Constructors

| Improve this Doc View Source

TakeAmmoEvent(Int32, List<(Nullable<EntityUid> Entity, IShootable Shootable)>, EntityCoordinates, Nullable<EntityUid>)

Declaration
public TakeAmmoEvent(int shots, List<(EntityUid? Entity, IShootable Shootable)> ammo, EntityCoordinates coordinates, EntityUid? user)
Parameters
Type Name Description
System.Int32 shots
List<System.ValueTuple<System.Nullable<EntityUid>, IShootable>> ammo
Robust.Shared.Map.EntityCoordinates coordinates
System.Nullable<EntityUid> user

Fields

| Improve this Doc View Source

Ammo

Declaration
public List<(EntityUid? Entity, IShootable Shootable)> Ammo
Field Value
Type Description
List<System.ValueTuple<System.Nullable<EntityUid>, IShootable>>
| Improve this Doc View Source

Coordinates

Coordinates to spawn the ammo at.

Declaration
public EntityCoordinates Coordinates
Field Value
Type Description
Robust.Shared.Map.EntityCoordinates
| Improve this Doc View Source

Reason

If no ammo returned what is the reason for it?

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

Shots

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

User

Declaration
public readonly EntityUid? User
Field Value
Type Description
System.Nullable<EntityUid>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾