Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    EventKey<T> Class

    Namespace: Stride.Engine.Events
    Assembly: Stride.Engine.dll
    System.Object → EventKeyBase<T> → EventKey<T>
    Derived from EventKey<T>:

    public sealed class EventKey<T> : EventKeyBase<T>, IDisposable
    Type Parameters
    Name Description
    T
    Name Description
    Constructors
    EventKey(String, String)
    Methods
    Broadcast(T)

    Broadcasts the event to all the receivers

    | Improve this Doc View Source

    Constructors


    EventKey(String, String)

    public EventKey(string category = "General", string eventName = "Event")
    Parameters
    Type Name Description
    System.String category
    System.String eventName
    | Improve this Doc View Source

    Methods


    Broadcast(T)

    Broadcasts the event to all the receivers

    public void Broadcast(T data)
    Parameters
    Type Name Description
    T data

    Inherited Members

    EventKeyBase<T>.Dispose()
    EventKeyBase<T>.InternalBroadcast(T)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation