Starsector API
Loading...
Searching...
No Matches
BaseModPlugin.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
24public class BaseModPlugin implements ModPlugin {
25
26 public void afterGameSave() {
27
28 }
29
30 public void beforeGameSave() {
31
32 }
33
34 public void onGameSaveFailed() {
35
36 }
37
38 public void onApplicationLoad() throws Exception {
39
40 }
41
42 public void onEnabled(boolean wasEnabledBefore) {
43
44 }
45
46 public void onGameLoad(boolean newGame) {
47
48 }
49
50 public void onNewGame() {
51
52 }
53
55
56 }
57
58 public PluginPick<ShipAIPlugin> pickShipAI(FleetMemberAPI member, ShipAPI ship) {
59 return null;
60 }
61
63 return null;
64 }
65
67 ShipAPI mothership, DroneLauncherShipSystemAPI system) {
68 return null;
69 }
70
71 public PluginPick<MissileAIPlugin> pickMissileAI(MissileAPI missile,
72 ShipAPI launchingShip) {
73 return null;
74 }
75
76 public void onNewGameAfterTimePass() {
77
78 }
79
80 public void configureXStream(XStream x) {
81
82 }
83
84 public void onNewGameAfterProcGen() {
85 // TODO Auto-generated method stub
86
87 }
88
89 public void onDevModeF8Reload() {
90 // TODO Auto-generated method stub
91
92 }
93
94}
PluginPick< AutofireAIPlugin > pickWeaponAutofireAI(WeaponAPI weapon)
PluginPick< ShipAIPlugin > pickDroneAI(ShipAPI drone, ShipAPI mothership, DroneLauncherShipSystemAPI system)
PluginPick< MissileAIPlugin > pickMissileAI(MissileAPI missile, ShipAPI launchingShip)
PluginPick< ShipAIPlugin > pickShipAI(FleetMemberAPI member, ShipAPI ship)
void onEnabled(boolean wasEnabledBefore)