CorsixTH Lua Documentation

ToiletRoom Class

Declared on: line 39 of Lua/rooms/toilets.lua.
Inheritance: ToiletRoom ยป Room

Method Index

Member Index

(*) only used in superclass methods
function ToiletRoom:ToiletRoom(...)

Parameters:

NameTypeDescription
... ? ?

Declared on: line 44 of Lua/rooms/toilets.lua.

function ToiletRoom:afterLoad(old, new)

Parameters:

NameTypeDescription
old ? ?
new ? ?

Overrides: Room:afterLoad.
Declared on: line 170 of Lua/rooms/toilets.lua.

function ToiletRoom:dealtWithPatient(patient)

Parameters:

NameTypeDescription
patient ? ?

Overrides: Room:dealtWithPatient.
Declared on: line 62 of Lua/rooms/toilets.lua.

function ToiletRoom:getPatientCount()

Override the standard way to count the number of patients to take into account that some of them may not be using the loo, allowing others to enter the room earlier than normal; but not if there is only one loo in the room, then it becomes a private toilet with only one person at a time.

Overrides: Room:getPatientCount.
Declared on: line 146 of Lua/rooms/toilets.lua.

function ToiletRoom:onHumanoidEnter(humanoid)

Parameters:

NameTypeDescription
humanoid ? ?

Overrides: Room:onHumanoidEnter.
Declared on: line 72 of Lua/rooms/toilets.lua.