mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* IEventBus -> EventBus * Fix CompIdx.RefArray * IEntityManager -> EntityManager * Remove double delegate * Add GetNetCompEventHandlers() * release notes & cleanup * Make PVS use GetNetCompEventHandlers * I love event bus tests * also fix pvs pause test * dont trimm --------- Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
20 lines
728 B
C#
20 lines
728 B
C#
using System;
|
|
|
|
namespace Robust.Shared.GameObjects;
|
|
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
|
|
public sealed class ByRefEventAttribute : Attribute;
|
|
|
|
/// <summary>
|
|
/// This attribute enables an event to be raised as a "component event" via <see cref="IDirectedEventBus.RaiseComponentEvent{TEvent}(EntityUid, IComponent, TEvent)"/>.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
|
|
internal sealed class ComponentEventAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// If true, this event may **only** be raised via as a "component event", as any subscriptions will not be
|
|
/// included in the normal event tables.
|
|
/// </summary>
|
|
public bool Exclusive = true;
|
|
}
|