Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

generateEmployeeFromConfig

Description

Generates an employee from the provided config.

Arguments

1 table config

the employee config.

2 number levelOffset

the offset to apply to the generated level.

Returns

1 developer

employee-the newly generated employee object.

Example

-- generate a female software engineer with a level between 3 to 5 aged 30

employeeCirculation:generateEmployeeFromConfig({role = "software_engineer", level = {3, 5}, age = 30, female = true})