Interfaces
INetworkEventService
Service for handling network events.
Methods
TriggerEvent
Triggers a network event for a specific player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player to trigger the event for. |
| guid | string | The unique identifier of the event. |
| args | params object[] | The arguments to pass with the event. |
TriggerEventSerialized
Triggers a serialized network event for a specific player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player to trigger the event for. |
| guid | string | The unique identifier of the event. |
| obj | object | The object to serialize and pass with the event. |
TriggerEventWithResponse
Triggers a network event with a response for a specific player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player to trigger the event for. |
| guid | string | The unique identifier of the event. |
| status | bool | The status of the response. |
| title | string | The title of the response. |
| description | string | The description of the response. |
| params | Dictionary<string, string> | The parameters of the response. |
TriggerEventWithUnexpectedError
Triggers a network event with an unexpected error for a specific player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player to trigger the event for. |
| guid | string | The unique identifier of the event. |