Class: PlayerAssignmentsController

PlayerAssignmentsController()

This class provides a property independent interface to g_PlayerAssignment events and actions.

Constructor

new PlayerAssignmentsController()

Source:

Methods

assignPlayer()

If both clients are assigned players, this will swap their assignments.
Source:

onClientJoin()

On client join, try to assign them to a free slot. (This is called before g_PlayerAssignments is updated).
Source:

onPlayerAssignmentMessage()

Called whenever a client joins or leaves or any game setting is changed.
Source:

updatePlayerAssignments()

To be called when g_PlayerAssignments is modified.
Source: