Ludeon Forums

Ludeon Forums

  • December 06, 2021, 07:32:08 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: A16 changes to the Find class  (Read 843 times)

twoski

  • Colonist
  • ***
  • Posts: 264
    • View Profile
    • nuke.sexy
A16 changes to the Find class
« 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?

Grim

  • Drifter
  • **
  • Posts: 20
  • Hermit
    • View Profile
Re: A16 changes to the Find class
« Reply #1 on: December 31, 2016, 11:20:41 PM »

Hello

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


Grim
« Last Edit: December 31, 2016, 11:36:28 PM by Grim »
Logged

JaxelT

  • Drifter
  • **
  • Posts: 44
  • Refugee
    • View Profile
Re: A16 changes to the Find class
« Reply #2 on: January 01, 2017, 03:58:06 AM »

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.
Logged