Ludeon Forums

RimWorld => Mods => Topic started by: skullywag on November 19, 2014, 04:39:41 PM

Title: Tynan - Access to Internal classes
Post by: skullywag on November 19, 2014, 04:39:41 PM
Hi Tynan,

Are we likely to get access to internal classes like PowerPlantSteam for example.

Theres a mod im writing and as much as I managed to do what i wanted perfectly to solar panels, I cannot do the same thing to the thermal gen.

Ive looked up reflection and think i can maybe getting working if i really hunkered down (if im getting the gist of what im reading correct) but it would be so much easier if classes like this were public, is there a reason its not?
Title: Re: Tynan - Access to Internal classes
Post by: JuliaEllie on November 19, 2014, 05:30:08 PM
You could simply copy the code with ILSpy and write your own class from it then you make your own PowerPlantSteam ThingDef which overwrites the original.

But yeah I second this.
Title: Re: Tynan - Access to Internal classes
Post by: skullywag on November 19, 2014, 05:39:05 PM
Yeah I know but this one links to the geysers and stuff so id be going down the rabbit hole. Tynans said its technically a typo and he'll be making them all public YAY!
Title: Re: Tynan - Access to Internal classes
Post by: JuliaEllie on November 19, 2014, 06:36:52 PM
Ah ok thought you just wanted to change the geothermal plant a bit and I like rabbit holes they produce food ;)
Title: Re: Tynan - Access to Internal classes
Post by: Tynan on November 20, 2014, 12:15:36 AM
Yes, definitely. The fact that it's internal is just a mistake on my part.