sinevil404 Posted September 30, 2025 Share Posted September 30, 2025 As a beginner, I want to develop a new building that relies on a room system. I need to change the state of the building I'm developing when the state of the room or other specific types of buildings within the room change. However, the OnUpdateRoom method in RoomTracker is private, and I cannot rewrite this method. I don't want Harmony to monitor all buildings; I only want it to take effect on the buildings I have developed. Link to comment https://forums.kleientertainment.com/forums/topic/168240-how-to-listen-for-updates-on-room-status-to-perform-custom-operations/ Share on other sites More sharing options...
FIXBUGFIXBUGFIX Posted October 1, 2025 Share Posted October 1, 2025 (edited) 14 hours ago, sinevil404 said: when the state of the room or other specific types of buildings within the room change base.Subscribe<...>(GameHashes.ChangeRoom, ...); base.Subscribe<...>(GameHashes.UpdateRoom, ...); Choose one 14 hours ago, sinevil404 said: private https://github.com/pardeike/Harmony/wiki/Utilities Edited October 1, 2025 by FIXBUGFIXBUGFIX 1 Link to comment https://forums.kleientertainment.com/forums/topic/168240-how-to-listen-for-updates-on-room-status-to-perform-custom-operations/#findComment-1837833 Share on other sites More sharing options...
SGT_Imalas Posted October 1, 2025 Share Posted October 1, 2025 (edited) room tracker is not relevant when you have the custom component subscribe to the event as written by FIXBUGFIXBUGFIX Edited October 1, 2025 by SGT_Imalas Link to comment https://forums.kleientertainment.com/forums/topic/168240-how-to-listen-for-updates-on-room-status-to-perform-custom-operations/#findComment-1837937 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now