Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: API questions for Alex - com.fs.starfarer.api.loading.Description  (Read 1631 times)

Kiloman

  • Ensign
  • *
  • Posts: 35
    • View Profile

Two questions:

1: Is it possible to create and load a new description on the fly? Obviously I can create a new instance of the class, but doing so and then trying to set an object's customDescriptionId to use it doesn't work. It appears there's an internal cache somewhere that I need to register it with, but I don't see an interface to do that.

2: Given that we can read a SectorEntityToken's customDescriptionId, is there a way we can use that ID to get the Description object? Minus an API for dynamic description add/remove, it'd be nice to be able to change the text fields of a Description on the fly, even if we had to create a 'dummy' description for it in the CSV and switch it out at runtime.

« Last Edit: October 10, 2013, 01:36:33 PM by Kiloman »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24113
    • View Profile
Re: API questions for Alex - com.fs.starfarer.api.loading.Description
« Reply #1 on: October 11, 2013, 08:17:50 PM »

#1: No.

#2: Yes, I think you could do this - see SettingsAPI.getDescription(String id, Type type)


Didn't see your question for a while; sorry!
Logged