-
- All Implemented Interfaces:
public final class WeaponTagUtilsKt
-
-
Method Summary
Modifier and Type Method Description 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(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 UnitpersistTags(String shipId, Integer groupIndex, Integer loadoutIndex, List<String> tags)final static UnitsaveTagsInShip(ShipAPI ship, Integer groupIndex, List<String> tags, Integer storageIndex)final static List<String>loadPersistentTags(String shipId, Integer groupIndex, Integer loadoutIndex)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
-
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(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
-
persistTags
final static Unit persistTags(String shipId, Integer groupIndex, Integer loadoutIndex, List<String> tags)
-
saveTagsInShip
final static Unit saveTagsInShip(ShipAPI ship, Integer groupIndex, List<String> tags, Integer storageIndex)
-
loadPersistentTags
final static List<String> loadPersistentTags(String shipId, Integer groupIndex, Integer loadoutIndex)
-
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)
-
-
-
-