Decoupled LWC integration. This is a good example of what integrations should look like. We are using events only. For this reason the LWC integration could be placed in another plugin and this is good practice. Im not saying we should move the LWC integration to another plugin but its good practice that its possible.

This commit is contained in:
Olof Larsson
2013-04-24 11:30:00 +02:00
parent 05da06594a
commit bd8d945c7b
7 changed files with 158 additions and 109 deletions

View File

@@ -125,8 +125,12 @@ public class UConf extends Entity<UConf>
// INTEGRATION: LWC
// -------------------------------------------- //
public boolean lwcRemoveOnUnclaim = false;
public boolean lwcRemoveOnCapture = false;
public Map<FactionsEventChunkChangeType, Boolean> lwcRemoveOnChange = MUtil.map(
FactionsEventChunkChangeType.BUY, false,
FactionsEventChunkChangeType.SELL, false,
FactionsEventChunkChangeType.CONQUER, false,
FactionsEventChunkChangeType.PILLAGE, false
);
// -------------------------------------------- //
// INTEGRATION: ECONOMY