consume

abstract fun consume(receiver: R, message: T)

A function to consume a specific incoming game message of type T.

Parameters

receiver

the receiver object on which state is modified corresponding to this packet.

message

the message that provides information about what to do.