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