Class ServerEventsApi
Namespace: ReadyM.Relay.Server.Sdk.Events
Assembly: ReadyM.Relay.Server.Sdk.dll
Provides an API for subscribing to server events.
public sealed class ServerEventsApi : IDisposable
Inheritance
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Dispose()
public void Dispose()
OnAreaCreated
public event Action<AreaId, Entity>? OnAreaCreated
Event Type
OnAreaDeleted
public event Action<AreaId, Entity>? OnAreaDeleted
Event Type
OnCellCreated
public event Action<AreaId, CellId, Entity>? OnCellCreated
Event Type
Action<AreaId, CellId, Entity>?
OnCellDeleted
public event Action<AreaId, CellId, Entity>? OnCellDeleted
Event Type
Action<AreaId, CellId, Entity>?
OnPlayerActivatedCell
public event Action<PlayerId, AreaId, CellId>? OnPlayerActivatedCell
Event Type
Action<PlayerId, AreaId, CellId>?
OnPlayerConnected
public event Action<PlayerId, Entity>? OnPlayerConnected
Event Type
OnPlayerDeactivatedCell
public event Action<PlayerId, AreaId, CellId>? OnPlayerDeactivatedCell
Event Type
Action<PlayerId, AreaId, CellId>?
OnPlayerDisconnected
public event Action<PlayerId, Entity, DisconnectReason?>? OnPlayerDisconnected
Event Type
Action<PlayerId, Entity, DisconnectReason?>?
OnPlayerJoinedArea
public event Action<PlayerId, AreaId>? OnPlayerJoinedArea
Event Type
OnPlayerLeftArea
public event Action<PlayerId, AreaId>? OnPlayerLeftArea
Event Type
OnWorldEntityCreated
Raised once, when the world entity exists. A mod's Init runs before that, so this is the earliest point at which world components can be written.
public event Action<Entity>? OnWorldEntityCreated