-
- All Implemented Interfaces:
public final class WeaponTagUtilsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static Map<String, TagStorageModes>tagStorageModeFromStr
-
Method Summary
Modifier and Type Method Description final Map<String, TagStorageModes>getTagStorageModeFromStr()final static AutofireAIPlugingetAutofirePlugin(WeaponAPI $self)final static BooleanapplyTagsToWeaponGroup(ShipAPI ship, Integer groupIndex, List<String> tags)final static UnitapplyTagsToWeapon(WeaponAPI weapon, List<String> tags)final static UnitsetAutofirePlugin(WeaponAPI weapon, AutofireAIPlugin plugin)final static UnitreloadAllShips(Integer storageIndex)final static UnitreloadShips(Integer storageIndex, List<ShipAPI> ships)final static UnitpersistTemporaryShipData(Integer storageIndex, List<ShipAPI> ships)final static List<String>loadTags(ShipAPI ship, Integer index, Integer storageIndex)final static List<String>loadAllTags(FleetMemberAPI ship, String universalId)loads all tag types that have been used for a given ship. final static UnitsaveTags(ShipAPI ship, Integer groupIndex, Integer loadoutIndex, List<String> tags)final static StringgenerateUniversalFleetMemberId(String parentId, Integer moduleIndex)final static StringgenerateUniversalFleetMemberId(ShipAPI ship)generate unique & persistent fleetMemberId return fleetMemberId-equivalent for modules of big ships return fleetMemberId for regular ships return empty string if something goes wrong final static StringgenerateUniversalFleetMemberId(FleetMemberAPI ship)final static UnitpersistTags(String shipId, FleetMemberAPI member, Integer groupIndex, Integer loadoutIndex, List<String> tags)final static BooleanhasAgcTag(WeaponAPI $self, String tag)final static BooleanhasAnyAgcTag(WeaponAPI $self, String tags)final static UnitpersistTagsByIndex(String shipId, Integer groupIndex, Integer loadoutIndex, List<String> tags)final static UnitpersistTagsByWeaponComposition(String universalShipId, FleetMemberAPI member, Integer groupIndex, Integer loadoutIndex, List<String> tags, String shipKey)final static UnitpersistTagsByWeaponCompositionGlobal(String universalShipId, FleetMemberAPI member, Integer groupIndex, Integer loadoutIndex, List<String> tags)final static StringgetWeaponCompositionString(FleetMemberAPI member, Integer groupIndex)final static UnitsaveTagsInShip(ShipAPI ship, Integer groupIndex, List<String> tags, Integer storageIndex)final static List<String>loadPersistentTags(String universalShipId, FleetMemberAPI ship, Integer groupIndex, Integer loadoutIndex)final static List<String>loadPersistentTagsByIndex(String universalShipId, Integer groupIndex, Integer loadoutIndex)final static List<String>loadPersistentTagsByWeaponComposition(FleetMemberAPI member, String universalShipId, Integer groupIndex, Integer loadoutIndex, String shipKey)final static List<String>loadPersistentTagsByWeaponCompositionGlobal(FleetMemberAPI member, String universalShipId, Integer groupIndex, Integer loadoutIndex)final static UnitbackupWeaponCompGlobalTagsToFile(String file, Integer loadoutIndex)final static UnitrestoreWeaponCompGlobalTagsFromFile(String file, Integer loadoutIndex, Boolean override)final static IntegergetWeaponGroupIndex(WeaponAPI weapon)final static List<String>loadTagsFromShip(ShipAPI ship, Integer groupIndex, Integer storageIndex)final static BooleandoesShipHaveLocalTags(ShipAPI ship, Integer storageIndex)final static BooleandoesShipHaveLocalShipModes(ShipAPI ship, Integer storageIndex)-
-
Method Detail
-
getTagStorageModeFromStr
final Map<String, TagStorageModes> getTagStorageModeFromStr()
-
getAutofirePlugin
final static AutofireAIPlugin getAutofirePlugin(WeaponAPI $self)
-
applyTagsToWeaponGroup
final static Boolean applyTagsToWeaponGroup(ShipAPI ship, Integer groupIndex, List<String> tags)
-
applyTagsToWeapon
final static Unit applyTagsToWeapon(WeaponAPI weapon, List<String> tags)
-
setAutofirePlugin
final static Unit setAutofirePlugin(WeaponAPI weapon, AutofireAIPlugin plugin)
-
reloadAllShips
final static Unit reloadAllShips(Integer storageIndex)
-
reloadShips
final static Unit reloadShips(Integer storageIndex, List<ShipAPI> ships)
-
persistTemporaryShipData
final static Unit persistTemporaryShipData(Integer storageIndex, List<ShipAPI> ships)
-
loadAllTags
final static List<String> loadAllTags(FleetMemberAPI ship, String universalId)
loads all tag types that have been used for a given ship. the returned list won't contain duplicates this is used to hot-load tags when viewing a ship in GUI
-
saveTags
final static Unit saveTags(ShipAPI ship, Integer groupIndex, Integer loadoutIndex, List<String> tags)
-
generateUniversalFleetMemberId
final static String generateUniversalFleetMemberId(String parentId, Integer moduleIndex)
-
generateUniversalFleetMemberId
final static String generateUniversalFleetMemberId(ShipAPI ship)
generate unique & persistent fleetMemberId return fleetMemberId-equivalent for modules of big ships return fleetMemberId for regular ships return empty string if something goes wrong
-
generateUniversalFleetMemberId
final static String generateUniversalFleetMemberId(FleetMemberAPI ship)
-
persistTags
final static Unit persistTags(String shipId, FleetMemberAPI member, Integer groupIndex, Integer loadoutIndex, List<String> tags)
-
hasAnyAgcTag
final static Boolean hasAnyAgcTag(WeaponAPI $self, String tags)
-
persistTagsByIndex
final static Unit persistTagsByIndex(String shipId, Integer groupIndex, Integer loadoutIndex, List<String> tags)
-
persistTagsByWeaponComposition
final static Unit persistTagsByWeaponComposition(String universalShipId, FleetMemberAPI member, Integer groupIndex, Integer loadoutIndex, List<String> tags, String shipKey)
-
persistTagsByWeaponCompositionGlobal
final static Unit persistTagsByWeaponCompositionGlobal(String universalShipId, FleetMemberAPI member, Integer groupIndex, Integer loadoutIndex, List<String> tags)
-
getWeaponCompositionString
final static String getWeaponCompositionString(FleetMemberAPI member, Integer groupIndex)
-
saveTagsInShip
final static Unit saveTagsInShip(ShipAPI ship, Integer groupIndex, List<String> tags, Integer storageIndex)
-
loadPersistentTags
final static List<String> loadPersistentTags(String universalShipId, FleetMemberAPI ship, Integer groupIndex, Integer loadoutIndex)
-
loadPersistentTagsByIndex
final static List<String> loadPersistentTagsByIndex(String universalShipId, Integer groupIndex, Integer loadoutIndex)
-
loadPersistentTagsByWeaponComposition
final static List<String> loadPersistentTagsByWeaponComposition(FleetMemberAPI member, String universalShipId, Integer groupIndex, Integer loadoutIndex, String shipKey)
-
loadPersistentTagsByWeaponCompositionGlobal
final static List<String> loadPersistentTagsByWeaponCompositionGlobal(FleetMemberAPI member, String universalShipId, Integer groupIndex, Integer loadoutIndex)
-
backupWeaponCompGlobalTagsToFile
final static Unit backupWeaponCompGlobalTagsToFile(String file, Integer loadoutIndex)
-
restoreWeaponCompGlobalTagsFromFile
final static Unit restoreWeaponCompGlobalTagsFromFile(String file, Integer loadoutIndex, Boolean override)
-
getWeaponGroupIndex
final static Integer getWeaponGroupIndex(WeaponAPI weapon)
-
loadTagsFromShip
final static List<String> loadTagsFromShip(ShipAPI ship, Integer groupIndex, Integer storageIndex)
-
doesShipHaveLocalTags
final static Boolean doesShipHaveLocalTags(ShipAPI ship, Integer storageIndex)
-
doesShipHaveLocalShipModes
final static Boolean doesShipHaveLocalShipModes(ShipAPI ship, Integer storageIndex)
-
-
-
-