User Tools

Site Tools


api:comp_building_manager

COMP_BUILDING_MANAGER

Category: Component

Parent class: COMPONENT

Functions


findAvailableWorkplaceForJob

COMP_WORKPLACE findAvailableWorkplaceForJob(job, villager)

Name Type Description
job JOB
villager COMP_VILLAGER

unlockBuildingListByUnlockName

void unlockBuildingListByUnlockName(unlockName [, forceUnlock])

Name Type Description
unlockName string
forceUnlock boolean

getUnlockBuildingListByUnlockName

void getUnlockBuildingListByUnlockName(unlockName, outBuildingList)

Name Type Description
unlockName string
outBuildingList list<BUILDING> Out argument

unlockBuilding

void unlockBuilding(building)

Name Type Description
building InstBuildingData

void unlockBuilding(resBuilding)

Name Type Description
resBuilding BUILDING

lockBuilding

void lockBuilding(resBuilding)

Name Type Description
resBuilding BUILDING

canAssignBuildingFunction

boolean canAssignBuildingFunction(buildingFunction)

Name Type Description
buildingFunction BUILDING_FUNCTION

getAssignedBuildingFunctionCount

integer getAssignedBuildingFunctionCount(buildingFunction)

Name Type Description
buildingFunction BUILDING_FUNCTION

unlockWall

void unlockWall(wallConfig)

Name Type Description
wallConfig WALL_CONFIG
api/comp_building_manager.txt · Last modified: 2021/11/18 15:50 (external edit)