Starsector API
Loading...
Searching...
No Matches
ModPlugin.java
Go to the documentation of this file.
1package com.fs.starfarer.api;
2
3import com.fs.starfarer.api.combat.AutofireAIPlugin;
4import com.fs.starfarer.api.combat.DroneLauncherShipSystemAPI;
5import com.fs.starfarer.api.combat.MissileAIPlugin;
6import com.fs.starfarer.api.combat.MissileAPI;
7import com.fs.starfarer.api.combat.ShipAIPlugin;
8import com.fs.starfarer.api.combat.ShipAPI;
9import com.fs.starfarer.api.combat.WeaponAPI;
10import com.fs.starfarer.api.fleet.FleetMemberAPI;
11import com.thoughtworks.xstream.XStream;
12
22public interface ModPlugin {
23
30 void onApplicationLoad() throws Exception;
31
36 void onNewGame();
37
43 void onEnabled(boolean wasEnabledBefore);
44
49 void onGameLoad(boolean newGame);
50
55
60
61
66
68
78
79
84
85
86
93
102 PluginPick<ShipAIPlugin> pickShipAI(FleetMemberAPI member, ShipAPI ship);
103
109 PluginPick<AutofireAIPlugin> pickWeaponAutofireAI(WeaponAPI weapon);
110
111
119 PluginPick<ShipAIPlugin> pickDroneAI(ShipAPI drone, ShipAPI mothership, DroneLauncherShipSystemAPI system);
120
121
128 PluginPick<MissileAIPlugin> pickMissileAI(MissileAPI missile, ShipAPI launchingShip);
129
130
131
132 void configureXStream(XStream x);
133
134}
135
136
137
138
139
140
141
142
143
PluginPick< ShipAIPlugin > pickDroneAI(ShipAPI drone, ShipAPI mothership, DroneLauncherShipSystemAPI system)
PluginPick< AutofireAIPlugin > pickWeaponAutofireAI(WeaponAPI weapon)
PluginPick< MissileAIPlugin > pickMissileAI(MissileAPI missile, ShipAPI launchingShip)
PluginPick< ShipAIPlugin > pickShipAI(FleetMemberAPI member, ShipAPI ship)
void configureXStream(XStream x)
void onEnabled(boolean wasEnabledBefore)
void onGameLoad(boolean newGame)