post_message


Description:

[ Version ( since = "0.10" ) ]
public void post_message (owned Message msg, PlayerMessageDestination destination)

Allows sending custom messages to the desired destination.

This functionality can be used for communication with enhancers implementing [iface@Clapper.Reactable] interface. Useful for applications to send custom messages to enhacers that can react to them and/or for enhancers development to send events from them to the applications. It can also be used for sending specific messages from application or enhancers to the player itself.

Messages send to the application can be received by connecting a [signal@Clapper.Player:ClapperPlayer:message] signal handler. Inspection of message source object can be done to determine who send given message.

Parameters:

this

a Player

msg

a Message

destination

a PlayerMessageDestination