Ludeon Forums

RimWorld => Mods => Help => Topic started by: twoski on December 31, 2016, 06:53:59 PM

Title: A16 changes to the Find class
Post by: 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?
Title: Re: A16 changes to the Find class
Post by: Grim on December 31, 2016, 11:20:41 PM
Hello

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


Grim
Title: Re: A16 changes to the Find class
Post by: JaxelT on January 01, 2017, 03:58:06 AM
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.