Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Generic List of Factions?  (Read 1399 times)

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Generic List of Factions?
« on: September 15, 2012, 02:09:12 PM »

Was wondering if there's a generic way to pull a list / array with all the Factions so that I can iterate through them without having to know their names.
Logged
Please check out my SS projects :)
Xeno's Mod Pack

Darloth

  • Admiral
  • *****
  • Posts: 592
    • View Profile
Re: Generic List of Factions?
« Reply #1 on: September 18, 2012, 05:16:40 AM »

Not yet.

I've done it before by iterating through all of the fleets on a slowish-but-regular basis (since it's quite expensive. Once a game day maybe?), and adding any new ones that show up to a list of factions held by whatever you're doing, but it's certainly not perfect.  I didn't find any better method currently, and Alex has said that the faction system is quite placeholder at the moment, so it will probably be replaced entirely at some point.
Logged