====== COMP_LODGING ====== **Category**: Component Parent class: [[preview:api:component|COMPONENT]]\\ ===== Properties ===== ---- ==== AssetBuildingFunctionLodging ==== //[[:annotations#runtime_only|Runtime only]], [[:annotations#savegame|Savegame]]// * **Type**: ''[[preview:api:building_function_lodging|BUILDING_FUNCTION_LODGING]]'' * **Expected**: ''asset ID'' ===== Functions ===== ---- ==== registerGuest ==== ''void **registerGuest**(//guest//)'' ^ Name ^ Type ^ Description ^ | //''guest''// | ''[[preview:api:comp_guest|COMP_GUEST]]'' | | ---- ==== unregisterGuest ==== ''void **unregisterGuest**(//guest//)'' ^ Name ^ Type ^ Description ^ | //''guest''// | ''[[preview:api:comp_guest|COMP_GUEST]]'' | | ---- ==== isFull ==== ''[[preview:data-types#boolean|boolean]] **isFull**()'' ---- ==== getCurrentOccupationCount ==== ''[[preview:data-types#integer_and_unsigned_integer|integer_and_unsigned_integer]] **getCurrentOccupationCount**()'' ---- ==== getGuestList ==== ''[[preview:data-types#list|list]]<[[preview:api:comp_guest|COMP_GUEST]]> **getGuestList**()'' ---- ==== isClosed ==== ''[[preview:data-types#boolean|boolean]] **isClosed**()'' ---- ==== getCapacity ==== ''[[preview:data-types#integer_and_unsigned_integer|integer_and_unsigned_integer]] **getCapacity**()'' ===== Events ===== ---- ==== ON_LODGING_CHANGED ==== ''ON_LODGING_CHANGED([[preview:data-types#integer_and_unsigned_integer|integer_and_unsigned_integer]] currentOccupationCount)''