Ludeon Forums

RimWorld => Mods => Help => Topic started by: mipen on July 23, 2014, 03:47:25 AM

Title: [Question] Override or add to core game methods, and have game use that instead
Post by: mipen on July 23, 2014, 03:47:25 AM
I was wondering if I could, for example add to the Verse.MapUpdate() method, or override it to include some of my own things? I am trying to make a water system similar to the power system, but in order for it to function, I need to call some methods from the MapUpdate method. Or would there be a better way of doing this?
Title: Re: [Question] Override or add to core game methods, and have game use that instead
Post by: RawCode on July 23, 2014, 07:43:56 AM
That method is not static, invocation "Verse.MapUpdate()" wont compile at all.

Since it's possible to modify runtime memory answer is "yes" but you should provide more info about what exactly you want to do and valid code sample that does not work or work in unexpected way.