跳到主要内容
版本:0.2.0

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​

object ← ServerEventsApi

Implements​

IDisposable

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​

Action<AreaId, Entity>?

OnAreaDeleted​

public event Action<AreaId, Entity>? OnAreaDeleted

Event Type​

Action<AreaId, Entity>?

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​

Action<PlayerId, Entity>?

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​

Action<PlayerId, AreaId>?

OnPlayerLeftArea​

public event Action<PlayerId, AreaId>? OnPlayerLeftArea

Event Type​

Action<PlayerId, AreaId>?

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

Event Type​

Action<Entity>?

  • Methods
    • Dispose()
    • OnAreaCreated
    • OnAreaDeleted
    • OnCellCreated
    • OnCellDeleted
    • OnPlayerActivatedCell
    • OnPlayerConnected
    • OnPlayerDeactivatedCell
    • OnPlayerDisconnected
    • OnPlayerJoinedArea
    • OnPlayerLeftArea
    • OnWorldEntityCreated