Starsector API
Loading...
Searching...
No Matches
com.fs.starfarer.api.impl.SharedUnlockData Class Reference
Inheritance diagram for com.fs.starfarer.api.impl.SharedUnlockData:
[legend]
Collaboration diagram for com.fs.starfarer.api.impl.SharedUnlockData:
[legend]

Public Member Functions

boolean isPlayerAwareOfSpecialItem (String itemId)
 
boolean reportPlayerAwareOfSpecialItem (String itemId, boolean withSave)
 
boolean isPlayerAwareOfIllustration (String key)
 
boolean reportPlayerAwareOfIllustration (String key, boolean withSave)
 
boolean isPlayerAwareOfShip (String hullId)
 
boolean reportPlayerAwareOfShip (String hullId, boolean withSave)
 
boolean isPlayerAwareOfFighter (String fighterId)
 
boolean reportPlayerAwareOfFighter (String fighterId, boolean withSave)
 
boolean isPlayerAwareOfWeapon (String weaponId)
 
boolean reportPlayerAwareOfWeapon (String weaponId, boolean withSave)
 
boolean isPlayerAwareOfShipSystem (String sysId)
 
boolean reportPlayerAwareOfShipSystem (String sysId, boolean withSave)
 
boolean isPlayerAwareOfHullmod (String hullmodId)
 
boolean reportPlayerAwareOfHullmod (String hullmodId, boolean withSave)
 
boolean isPlayerAwareOfCommodity (String commodityId)
 
boolean reportPlayerAwareOfCommodity (String commodityId, boolean withSave)
 
boolean isPlayerAwareOfIndustry (String industryId)
 
boolean reportPlayerAwareOfIndustry (String industryId, boolean withSave)
 
boolean isPlayerAwareOfPlanet (String planetId)
 
boolean reportPlayerAwareOfPlanet (String planetId, boolean withSave)
 
boolean isPlayerAwareOfCondition (String conditionId)
 
boolean reportPlayerAwareOfCondition (String conditionId, boolean withSave)
 
boolean isPlayerAwareOfSkill (String skillId)
 
boolean reportPlayerAwareOfSkill (String skillId, boolean withSave)
 
boolean isPlayerAwareOfAbility (String abilityId)
 
boolean reportPlayerAwareOfAbility (String abilityId, boolean withSave)
 
void checkIfImageIsIllustrationAndMakeAware (String spriteName)
 
boolean isEntryLocked (String entryId)
 
- Public Member Functions inherited from com.fs.starfarer.api.impl.BaseSharedJSONFile
void loadIfNeeded ()
 
void saveIfNeeded ()
 
Set< String > getSet (String key)
 
boolean doesSetContain (String key, String value)
 
boolean addToSet (String key, String value)
 
boolean optBoolean (String key, boolean defaultValue)
 
void setBoolean (String key, boolean value)
 
float optFloat (String key, float defaultValue)
 
void setFloat (String key, float value)
 
int optInt (String key, int defaultValue)
 
void setInt (String key, int value)
 
String optString (String key, String defaultValue)
 
void setString (String key, String value)
 
void unset (String key)
 

Static Public Member Functions

static SharedUnlockData get ()
 

Static Public Attributes

static String SHARED_UNLOCKS_DATA_FILE = "core_shared_unlocks.json"
 
static String ITEMS = "items"
 
static String ILLUSTRATIONS = "illustrations"
 
static String SHIPS = "ships"
 
static String FIGHTERS = "fighters"
 
static String WEAPONS = "weapons"
 
static String SHIP_SYSTEMS = "ship_systems"
 
static String HULLMODS = "hullmods"
 
static String COMMODITIES = "commodities"
 
static String INDUSTRIES = "industries"
 
static String PLANETS = "planets"
 
static String CONDITIONS = "conditions"
 
static String SKILLS = "skills"
 
static String ABILITIES = "abilities"
 
static Map< String, String > ILLUSTRATION_KEY_LOOKUP = null
 

Protected Member Functions

String getFilename ()
 
boolean reportPlayerAwareOfThing (String thingId, String setId, String codexEntryId, boolean withSave)
 
- Protected Member Functions inherited from com.fs.starfarer.api.impl.BaseSharedJSONFile

Static Protected Attributes

static SharedUnlockData instance
 

Additional Inherited Members

- Protected Attributes inherited from com.fs.starfarer.api.impl.BaseSharedJSONFile
JSONObject json = new JSONObject()
 
Map< String, Set< String > > setCache = new HashMap<>()
 

Detailed Description

DO NOT store references to the instance anywhere that makes them end up in the savefile, this does not belong in the campaign savefile.

Author
Alex

Definition at line 17 of file SharedUnlockData.java.

Member Function Documentation

◆ checkIfImageIsIllustrationAndMakeAware()

void com.fs.starfarer.api.impl.SharedUnlockData.checkIfImageIsIllustrationAndMakeAware ( String spriteName)

Definition at line 158 of file SharedUnlockData.java.

◆ get()

static SharedUnlockData com.fs.starfarer.api.impl.SharedUnlockData.get ( )
static

Definition at line 38 of file SharedUnlockData.java.

◆ getFilename()

String com.fs.starfarer.api.impl.SharedUnlockData.getFilename ( )
protected

Reimplemented from com.fs.starfarer.api.impl.BaseSharedJSONFile.

Definition at line 47 of file SharedUnlockData.java.

◆ isEntryLocked()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isEntryLocked ( String entryId)

Definition at line 185 of file SharedUnlockData.java.

◆ isPlayerAwareOfAbility()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfAbility ( String abilityId)

Definition at line 148 of file SharedUnlockData.java.

◆ isPlayerAwareOfCommodity()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfCommodity ( String commodityId)

Definition at line 108 of file SharedUnlockData.java.

◆ isPlayerAwareOfCondition()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfCondition ( String conditionId)

Definition at line 132 of file SharedUnlockData.java.

◆ isPlayerAwareOfFighter()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfFighter ( String fighterId)

Definition at line 75 of file SharedUnlockData.java.

◆ isPlayerAwareOfHullmod()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfHullmod ( String hullmodId)

Definition at line 100 of file SharedUnlockData.java.

◆ isPlayerAwareOfIllustration()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfIllustration ( String key)

Definition at line 59 of file SharedUnlockData.java.

◆ isPlayerAwareOfIndustry()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfIndustry ( String industryId)

Definition at line 116 of file SharedUnlockData.java.

◆ isPlayerAwareOfPlanet()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfPlanet ( String planetId)

Definition at line 124 of file SharedUnlockData.java.

◆ isPlayerAwareOfShip()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfShip ( String hullId)

Definition at line 67 of file SharedUnlockData.java.

◆ isPlayerAwareOfShipSystem()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfShipSystem ( String sysId)

Definition at line 92 of file SharedUnlockData.java.

◆ isPlayerAwareOfSkill()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfSkill ( String skillId)

Definition at line 140 of file SharedUnlockData.java.

◆ isPlayerAwareOfSpecialItem()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfSpecialItem ( String itemId)

Definition at line 51 of file SharedUnlockData.java.

◆ isPlayerAwareOfWeapon()

boolean com.fs.starfarer.api.impl.SharedUnlockData.isPlayerAwareOfWeapon ( String weaponId)

Definition at line 83 of file SharedUnlockData.java.

◆ reportPlayerAwareOfAbility()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfAbility ( String abilityId,
boolean withSave )

Definition at line 152 of file SharedUnlockData.java.

◆ reportPlayerAwareOfCommodity()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfCommodity ( String commodityId,
boolean withSave )

Definition at line 112 of file SharedUnlockData.java.

◆ reportPlayerAwareOfCondition()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfCondition ( String conditionId,
boolean withSave )

Definition at line 136 of file SharedUnlockData.java.

◆ reportPlayerAwareOfFighter()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfFighter ( String fighterId,
boolean withSave )

Definition at line 79 of file SharedUnlockData.java.

◆ reportPlayerAwareOfHullmod()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfHullmod ( String hullmodId,
boolean withSave )

Definition at line 104 of file SharedUnlockData.java.

◆ reportPlayerAwareOfIllustration()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfIllustration ( String key,
boolean withSave )

Definition at line 63 of file SharedUnlockData.java.

◆ reportPlayerAwareOfIndustry()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfIndustry ( String industryId,
boolean withSave )

Definition at line 120 of file SharedUnlockData.java.

◆ reportPlayerAwareOfPlanet()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfPlanet ( String planetId,
boolean withSave )

Definition at line 128 of file SharedUnlockData.java.

◆ reportPlayerAwareOfShip()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfShip ( String hullId,
boolean withSave )

Definition at line 71 of file SharedUnlockData.java.

◆ reportPlayerAwareOfShipSystem()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfShipSystem ( String sysId,
boolean withSave )

Definition at line 96 of file SharedUnlockData.java.

◆ reportPlayerAwareOfSkill()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfSkill ( String skillId,
boolean withSave )

Definition at line 144 of file SharedUnlockData.java.

◆ reportPlayerAwareOfSpecialItem()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfSpecialItem ( String itemId,
boolean withSave )

Definition at line 55 of file SharedUnlockData.java.

◆ reportPlayerAwareOfThing()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfThing ( String thingId,
String setId,
String codexEntryId,
boolean withSave )
protected

Definition at line 175 of file SharedUnlockData.java.

◆ reportPlayerAwareOfWeapon()

boolean com.fs.starfarer.api.impl.SharedUnlockData.reportPlayerAwareOfWeapon ( String weaponId,
boolean withSave )

Definition at line 87 of file SharedUnlockData.java.

Member Data Documentation

◆ ABILITIES

String com.fs.starfarer.api.impl.SharedUnlockData.ABILITIES = "abilities"
static

Definition at line 34 of file SharedUnlockData.java.

◆ COMMODITIES

String com.fs.starfarer.api.impl.SharedUnlockData.COMMODITIES = "commodities"
static

Definition at line 29 of file SharedUnlockData.java.

◆ CONDITIONS

String com.fs.starfarer.api.impl.SharedUnlockData.CONDITIONS = "conditions"
static

Definition at line 32 of file SharedUnlockData.java.

◆ FIGHTERS

String com.fs.starfarer.api.impl.SharedUnlockData.FIGHTERS = "fighters"
static

Definition at line 24 of file SharedUnlockData.java.

◆ HULLMODS

String com.fs.starfarer.api.impl.SharedUnlockData.HULLMODS = "hullmods"
static

Definition at line 28 of file SharedUnlockData.java.

◆ ILLUSTRATION_KEY_LOOKUP

Map<String, String> com.fs.starfarer.api.impl.SharedUnlockData.ILLUSTRATION_KEY_LOOKUP = null
static

Definition at line 156 of file SharedUnlockData.java.

◆ ILLUSTRATIONS

String com.fs.starfarer.api.impl.SharedUnlockData.ILLUSTRATIONS = "illustrations"
static

Definition at line 22 of file SharedUnlockData.java.

◆ INDUSTRIES

String com.fs.starfarer.api.impl.SharedUnlockData.INDUSTRIES = "industries"
static

Definition at line 30 of file SharedUnlockData.java.

◆ instance

SharedUnlockData com.fs.starfarer.api.impl.SharedUnlockData.instance
staticprotected

Definition at line 36 of file SharedUnlockData.java.

◆ ITEMS

String com.fs.starfarer.api.impl.SharedUnlockData.ITEMS = "items"
static

Definition at line 21 of file SharedUnlockData.java.

◆ PLANETS

String com.fs.starfarer.api.impl.SharedUnlockData.PLANETS = "planets"
static

Definition at line 31 of file SharedUnlockData.java.

◆ SHARED_UNLOCKS_DATA_FILE

String com.fs.starfarer.api.impl.SharedUnlockData.SHARED_UNLOCKS_DATA_FILE = "core_shared_unlocks.json"
static

Definition at line 19 of file SharedUnlockData.java.

◆ SHIP_SYSTEMS

String com.fs.starfarer.api.impl.SharedUnlockData.SHIP_SYSTEMS = "ship_systems"
static

Definition at line 27 of file SharedUnlockData.java.

◆ SHIPS

String com.fs.starfarer.api.impl.SharedUnlockData.SHIPS = "ships"
static

Definition at line 23 of file SharedUnlockData.java.

◆ SKILLS

String com.fs.starfarer.api.impl.SharedUnlockData.SKILLS = "skills"
static

Definition at line 33 of file SharedUnlockData.java.

◆ WEAPONS

String com.fs.starfarer.api.impl.SharedUnlockData.WEAPONS = "weapons"
static

Definition at line 25 of file SharedUnlockData.java.


The documentation for this class was generated from the following file: