Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

employeeAssignment



This library handles assignment of employees to workplaces.

Methods

Events

ASSIGNED

fired when an employee has been assigned to a workplace. 1 argument: the assigned employee

ASSIGNED_TEAM

fired when a team has been assigned to a workplace. 2 arguments: the assigned team, the building that they were assigned to.

SELECTED

fired when the player selects an employee to assign to a workplace.

SELECTED_TEAM

fired when the player selects a team to assign to an office.

DESELECTED

fired when the player deselects the employee.

DESELECTED_TEAM

fired when the player deselects the team.

UNASSIGNED

fired when the player unassigns an employee from a workplace. 2 arguments: the employee, the office they were assigned to a workplace in.

AUTO_ASSIGNED

fired when auto-assigning employees to a workplace. 2 arguments: the list of employees that have been assigned, a bool indicating whether it was an automatic assignment

UNASSIGNED_EVERYONE

fired when everyone has been unassigned from a workplace.

ASSIGNMENT_MODE_CHANGED

fired when changing the assignment mode (ie. employees/teams). 1 argument: the new assignment mode.