Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

addUnlockCallback

Description

Add a method to call when an action gets unlocked via :unlockAction().

Arguments

1 string id

.the action to add the callback for.

2 function callback

the function to call when an action gets unlocked.

Example

-- taken from game/interaction_restrictor_register.lua


interactionRestrictor:addUnlockCallback("contract_work", function()
	contractWork:unlock()
end)