Search Results for

    Show / Hide Table of Contents

    Class SpawningItemEventArgs

    Contains all information before the server spawns an item.

    Inheritance
    System.Object
    SpawningItemEventArgs
    Implements
    IDeniableEvent
    IPickupEvent
    IExiledEvent
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.Events.EventArgs.Map
    Assembly: Exiled.Events.dll
    Syntax
    public class SpawningItemEventArgs : IDeniableEvent, IPickupEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    SpawningItemEventArgs(ItemPickupBase, Boolean, DoorVariant)

    Initializes a new instance of the SpawningItemEventArgs class.

    Declaration
    public SpawningItemEventArgs(ItemPickupBase pickupBase, bool shouldInitiallySpawn, DoorVariant door)
    Parameters
    Type Name Description
    InventorySystem.Items.Pickups.ItemPickupBase pickupBase
    System.Boolean shouldInitiallySpawn
    Interactables.Interobjects.DoorUtils.DoorVariant door

    Properties

    | Improve this Doc View Source

    IsAllowed

    Gets or sets a value indicating whether or not the item can be spawned.

    Declaration
    public bool IsAllowed { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Pickup

    Gets a value indicating the pickup being spawned.

    Declaration
    public Pickup Pickup { get; }
    Property Value
    Type Description
    Pickup
    | Improve this Doc View Source

    ShouldInitiallySpawn

    Gets or sets a value indicating whether or not the item will be initially spawned.

    Declaration
    public bool ShouldInitiallySpawn { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    TriggerDoor

    Gets or sets a value indicating the trigger door for pickup.

    Declaration
    public Door TriggerDoor { get; set; }
    Property Value
    Type Description
    Door
    Remarks

    Works only when ShouldInitiallySpawn is false. null when ShouldInitiallySpawn is true.

    Implements

    IDeniableEvent
    IPickupEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX