Class LocalMessageBusExtensions
- Namespace
- LiteEntitySystem.Extensions
- Assembly
- LiteEntitySystem.dll
Extension methods for accessing the local message bus from entities.
public static class LocalMessageBusExtensions
- Inheritance
-
objectLocalMessageBusExtensions
Methods
GetLocalMessageBus(EntityManager)
Gets the local message bus singleton from the entity manager.
public static LocalMessageBus GetLocalMessageBus(this EntityManager ent)
Parameters
entEntityManagerThe entity to get the message bus from.
Returns
- LocalMessageBus
The local message bus instance, or null if not yet created.
GetLocalMessageBus(InternalEntity)
Gets the local message bus singleton from the entity manager.
public static LocalMessageBus GetLocalMessageBus(this InternalEntity ent)
Parameters
entInternalEntityThe entity to get the message bus from.
Returns
- LocalMessageBus
The local message bus instance, or null if not yet created.
GetOrCreateLocalMessageBus(InternalEntity)
Gets or creates a local message bus singleton for the entity manager.
public static LocalMessageBus GetOrCreateLocalMessageBus(this InternalEntity ent)
Parameters
entInternalEntityThe entity to get the message bus from.
Returns
- LocalMessageBus
The local message bus instance, creating it if it doesn't exist.