Package com.fs.starfarer.api.impl.codex
Class CodexDataV2
java.lang.Object
com.fs.starfarer.api.impl.codex.CodexDataV2
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static Map<String,
CodexEntryPlugin> static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static CodexEntryPlugin
static Map<String,
CodexEntryPlugin> static String
static String
static String
static String
static String
static String
static String
static String
static boolean
static boolean
static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static CodexEntryPlugin
addModuleEntry
(CodexEntryPlugin parent, CodexEntryPlugin entryForParentShip, FleetMemberAPI member, boolean isEmptyHull) static List<CodexEntryPlugin>
addModulesForVariant
(ShipVariantAPI variant, boolean isEmptyHull, CodexEntryPlugin entry, CodexEntryPlugin parent) static void
static boolean
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static CodexEntryV2
static List<CodexEntryPlugin>
Returns a list because it could be a station or a ship with modules.static CodexEntryV2
static String
getAbilityEntryId
(String abilityId) static String
getAptitudeName
(SkillSpecAPI spec) static String
getBaseHullId
(ShipHullSpecAPI spec) static String
static String
getCommodityEntryId
(String commodityId) static String
getConditionEntryId
(String conditionId) static CodexEntryPlugin
static String
getFactionEntryId
(String factionId) static String
getFighterEntryId
(String wingId) static String
static String
getFleetMemberEntryId
(FleetMemberAPI member) static String
getGalleryEntryId
(String galleryId) static String
getHullmodEntryId
(String hullModId) static String
static String
getIndustryEntryId
(String industryId) static String
getItemEntryId
(String itemId) static String
getMechanicEntryId
(String mechanicId) static String
getPlanetEntryId
(String planetId) static String
getShipEntryId
(String shipId) static String
getShipSystemEntryId
(String shipSystemId) static String
getSkillEntryId
(String skillId) static String
getWeaponEntryId
(String weaponId) static boolean
hasUnlockedEntry
(String entryId) static boolean
hasUnlockedEntryForShip
(String hullId) static void
init()
static void
linkFleetMemberEntryToRelated
(CodexEntryPlugin entry, FleetMemberAPI member, boolean linkCaptainSkills) This method assumes the entry is a specific fleet member with a loadout, and NOT an empty hull.static void
static void
makeRelated
(CodexEntryPlugin... plugins) static void
makeRelated
(String... ids) static void
makeRelated
(List<CodexEntryPlugin> plugins) static void
makeUnrelated
(String... ids) static void
populateAbilities
(CodexEntryPlugin parent) static void
populateCommodities
(CodexEntryPlugin commodities, CodexEntryPlugin items) static void
populateFighters
(CodexEntryPlugin parent) static void
populateGallery
(CodexEntryPlugin parent) static void
populateHullMods
(CodexEntryPlugin parent) static void
populateIndustries
(CodexEntryPlugin parent) static void
static void
populateShipsAndStations
(CodexEntryPlugin ships, CodexEntryPlugin stations) static void
populateShipSystems
(CodexEntryPlugin parent, CodexEntryPlugin ships) static void
populateSkills
(CodexEntryPlugin parent) static void
populateSpecialItems
(CodexEntryPlugin parent) static void
static void
populateWeapons
(CodexEntryPlugin parent) static void
static void
static void
setCatSort
(CodexEntryPlugin root, Set<CodexEntryPlugin> seen) static void
static void
-
Field Details
-
WITH_GAME_MECHANICS_CAT
public static boolean WITH_GAME_MECHANICS_CAT -
WITH_CUSTOM_EXAMPLE_CAT
public static boolean WITH_CUSTOM_EXAMPLE_CAT -
USE_KEY_NAMES_FOR_GALLERY
public static boolean USE_KEY_NAMES_FOR_GALLERY -
ROOT
-
ENTRIES
-
SEEN_STATION_MODULES
-
TAG_EMPTY_MODULE
-
CAT_ROOT
-
CAT_SHIPS
-
CAT_STATIONS
-
CAT_FIGHTERS
-
CAT_WEAPONS
-
CAT_HULLMODS
-
CAT_SHIP_SYSTEMS
-
CAT_SPECIAL_ITEMS
-
CAT_INDUSTRIES
-
CAT_STARS_AND_PLANETS
-
CAT_PLANETARY_CONDITIONS
-
CAT_COMMODITIES
-
CAT_GALLERY
-
CAT_SKILLS
-
CAT_ABILITIES
-
CAT_GAME_MECHANICS
-
CAT_CUSTOM_EXAMPLE
-
UNKNOWN_ENTRY_ID
-
CAT_SORT_RELATED_ENTRIES
-
ALL_TECHS
-
ALL_APTITUDES
-
ALL_SIZES
-
ALL_TYPES
-
ALL_DAMAGE_TYPES
-
HIGH_EXPLOSIVE
-
KINETIC
-
DAM_ENERGY
-
FRAGMENTATION
-
FRIGATES
-
DESTROYERS
-
CRUISERS
-
CAPITALS
-
COMBAT_SHIPS
-
PHASE_SHIPS
-
CARRIERS
-
CIVILIAN
-
SMALL
-
MEDIUM
-
LARGE
-
FIGHTER_WEAPON
-
BALLISTIC
-
MISSILE
-
ENERGY
-
HYBRID
-
COMPOSITE
-
SYNERGY
-
UNIVERSAL
-
BEAM
-
FIGHTER
-
BOMBER
-
INTERCEPTOR
-
OTHER
-
DMODS
-
INTRINSIC
-
PLANETS
-
STARS
-
GAS_GIANTS
-
HABITABLE
-
COLONY
-
AI_CORE
-
BLUEPRINTS
-
INDUSTRIES
-
STRUCTURES
-
STATIONS
-
RESOURCES
-
PILOTED_SHIP
-
-
Constructor Details
-
CodexDataV2
public CodexDataV2()
-
-
Method Details
-
init
public static void init() -
addUnknownEntry
public static void addUnknownEntry() -
addCustomCodexEntryDetailPanelExample
public static void addCustomCodexEntryDetailPanelExample() -
setCatSort
-
createHullModsCategory
-
createGameMechanicsCategory
-
createGalleryCategory
-
createCommoditiesCategory
-
createIndustriesCategory
-
createSpecialItemsCategory
-
createPlanetaryConditionsCategory
-
createStarsAndPlanetsCategory
-
createShipSystemsCategory
-
createFightersCategory
-
createCustomExampleCategory
-
createWeaponsCategory
-
createSkillsCategory
-
createAbilitiesCategory
-
createShipsCategory
-
createStationsCategory
-
populateShipsAndStations
-
addModulesForVariant
public static List<CodexEntryPlugin> addModulesForVariant(ShipVariantAPI variant, boolean isEmptyHull, CodexEntryPlugin entry, CodexEntryPlugin parent) -
addModuleEntry
public static CodexEntryPlugin addModuleEntry(CodexEntryPlugin parent, CodexEntryPlugin entryForParentShip, FleetMemberAPI member, boolean isEmptyHull) -
populateShipSystems
-
populateSkills
-
populateAbilities
-
getAptitudeName
-
sortSkillsCategory
public static void sortSkillsCategory() -
populateWeapons
-
populateFighters
-
populateGallery
-
populateSpecialItems
-
populateCommodities
-
populateHullMods
-
populateIndustries
-
populateStarsAndPlanets
-
populatePlanetaryConditions
-
linkRelatedEntries
public static void linkRelatedEntries() -
makeRelated
-
makeRelated
-
makeRelated
-
getBaseHullIdEvenIfNotRestorableTo
-
getBaseHullId
-
getFleetMemberEntryId
-
getFleetMemberBaseHullId
-
getShipEntryId
-
getWeaponEntryId
-
getFighterEntryId
-
getShipSystemEntryId
-
getHullmodEntryId
-
getPlanetEntryId
-
getConditionEntryId
-
getItemEntryId
-
getIndustryEntryId
-
getCommodityEntryId
-
getFactionEntryId
-
getMechanicEntryId
-
getGalleryEntryId
-
getSkillEntryId
-
getAbilityEntryId
-
getIcon
-
getEntry
-
rebuildIdToEntryMap
public static void rebuildIdToEntryMap() -
rebuildIdToEntryMap
-
codexFullyUnlocked
public static boolean codexFullyUnlocked() -
createTempFleetMemberEntry
Returns a list because it could be a station or a ship with modules.- Parameters:
member
-- Returns:
-
linkFleetMemberEntryToRelated
public static void linkFleetMemberEntryToRelated(CodexEntryPlugin entry, FleetMemberAPI member, boolean linkCaptainSkills) This method assumes the entry is a specific fleet member with a loadout, and NOT an empty hull. Meaning, this entry was added on the fly such as e.g. from a tooltip of a fleet member. The linking for empty hull entries is done in the linkRelatedEntries() method.- Parameters:
entry
-member
-parentOfModuleEntry
-parentOfModule
-
-
hasUnlockedEntry
-
hasUnlockedEntryForShip
-
unlinkAndRemoveTempEntry
-