Interface IBuildingWorkerModule

All Known Implementing Classes:
ChildrenBuildingModule, CraftingWorkerBuildingModule, DeliverymanAssignmentModule, GuardBuildingModule, HospitalAssignmentModule, LumberjackAssignmentModule, MinerBuildingModule, NoPrivateCrafterWorkerModule, StableCavalryBuildingModule, WorkAtHomeBuildingModule, WorkerBuildingModule

public interface IBuildingWorkerModule
  • Method Details

    • createJob

      @NotNull @NotNull IJob<?> createJob(ICitizenData citizen)
      The abstract method which creates a job for the building.
      Parameters:
      citizen - the citizen to take the job.
      Returns:
      the Job.
    • canWorkDuringTheRain

      boolean canWorkDuringTheRain()
      Method which defines if a worker should be allowed to work during the rain.
      Returns:
      true if so.
    • getPrimarySkill

      @NotNull @NotNull Skill getPrimarySkill()
      Primary skill getter.
      Returns:
      the primary skill.
    • getSecondarySkill

      @NotNull @NotNull Skill getSecondarySkill()
      Secondary skill getter.
      Returns:
      the secondary skill.
    • getJobEntry

      JobEntry getJobEntry()
      Getter for the job entry.
      Returns:
      the entry.