Tynan - Access to Internal classes

Started by skullywag, November 19, 2014, 04:39:41 PM

Previous topic - Next topic

skullywag

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?
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

JuliaEllie

#1
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.

skullywag

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!
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

JuliaEllie

Ah ok thought you just wanted to change the geothermal plant a bit and I like rabbit holes they produce food ;)

Tynan

Yes, definitely. The fact that it's internal is just a mistake on my part.
Tynan Sylvester - @TynanSylvester - Tynan's Blog