logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class WeaponAcquiredSignal

    Signal dispatched when the arsenal acquires a new weapon.

    Inheritance
    object
    WeaponAcquiredSignal
    Namespace: Serenity.GameWeapon.Application.Events
    Assembly: Serenity.GameWeapon.Application.dll
    Syntax
    public class WeaponAcquiredSignal : EventDispatcherSignal
    Remarks

    Dispatched by IGameWeaponService.AcquireWeapon(id) when the weapon is actually added to the arsenal — not on a duplicate acquire, and not when the weapon was never registered via RegisterWeapon (acquiring an unregistered weapon is a silent no-op).

    Constructors

    WeaponAcquiredSignal()

    Initializes a new instance of the WeaponAcquiredSignal class.

    Declaration
    public WeaponAcquiredSignal()

    WeaponAcquiredSignal(string)

    Initializes a new instance of the WeaponAcquiredSignal class.

    Declaration
    public WeaponAcquiredSignal(string weaponId)
    Parameters
    Type Name Description
    string weaponId

    The identity of the weapon that was acquired.

    Fields

    WeaponId

    The identity of the weapon that was acquired.

    Declaration
    public readonly string WeaponId
    Field Value
    Type Description
    string

    Methods

    ToString()

    Returns a string representation of the event.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved