A16 changes to the Find class

Started by twoski, December 31, 2016, 06:53:59 PM

Previous topic - Next topic

twoski

So before A16 came out, there was no concept of several maps. You just had the one map with your colony and that is all.

My mods made use of classes like Find.ListerBuildings, etc. But now it seems that each map has its own class which contains these things.

I guess my question is how do i grab the current active map class? And in some cases, given a random pawn, how would i figure out what map it is on?

Grim

#1
Hello

I had the same problem, you're wanting Find.VisibleMap now :)


Grim

JaxelT

Quote from: twoski on December 31, 2016, 06:53:59 PM
So before A16 came out, there was no concept of several maps. You just had the one map with your colony and that is all.

My mods made use of classes like Find.ListerBuildings, etc. But now it seems that each map has its own class which contains these things.

I guess my question is how do i grab the current active map class? And in some cases, given a random pawn, how would i figure out what map it is on?

You want pawn.Map and pawn.Map.listerBuildings.