ChannelAudience.RoomAudience()

Audience class representing other players in the same room as the sender Could even be used to broadcast to NPCs if you want them to pick up on dialogue, just make them broadcastables.

new RoomAudience()

Extends

Methods

alterMessage(message) → {string}

Modify the message to be sent

Parameters:
Name Type Description
message string
Returns:
string
Inherited From:

configure(options)

Configure the current state for the audience. Called by Channel#send

Parameters:
Name Type Description
options object
Properties
Name Type Description
state GameState
sender Player
message string
Inherited From:

getBroadcastTargets() → {Array.<Player>}

Find targets for this audience

Returns:
Array.<Player>
Overrides: