Jump to content

Recommended Posts

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.

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 by FIXBUGFIXBUGFIX
  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...