Ludeon Forums

RimWorld => Mods => Help => Topic started by: Kyna Tiona on January 12, 2017, 12:38:10 AM

Title: Where is a tile's name/faction base data found?
Post by: Kyna Tiona on January 12, 2017, 12:38:10 AM
I'm displaying an alert for a map-specific event, which could be really frustrating if I don't include the name of the map it's happening on. Problem is, while I can see the data structures for a map's tile info and for a faction base's info, I can't figure out how to access the latter from the former.
Title: Re: Where is a tile's name/faction base data found?
Post by: ison on January 12, 2017, 03:38:59 PM
You can use map.info.parent.
Title: Re: Where is a tile's name/faction base data found?
Post by: Kyna Tiona on January 12, 2017, 07:05:00 PM
Quote from: ison on January 12, 2017, 03:38:59 PM
You can use map.info.parent.

Oh! I didn't realize FactionBase was a child of MapParent. Thanks!