diff --git a/legacyworlds-server/legacyworlds-server-utils/pom.xml b/legacyworlds-server/legacyworlds-server-utils/pom.xml
index 492a2e1..989be1b 100644
--- a/legacyworlds-server/legacyworlds-server-utils/pom.xml
+++ b/legacyworlds-server/legacyworlds-server-utils/pom.xml
@@ -4,12 +4,12 @@
legacyworlds-server
com.deepclone.lw
- 5.99.1
+ 5.99.2
com.deepclone.lw
legacyworlds-server-utils
- 5.99.1
+ 5.99.2
Legacy Worlds server utility classes
This package contains utility classes used by various parts of the server-side code.
diff --git a/legacyworlds-server/legacyworlds-server-utils/src/main/java/com/deepclone/lw/utils/EmailAddress.java b/legacyworlds-server/legacyworlds-server-utils/src/main/java/com/deepclone/lw/utils/EmailAddress.java
index 5f1a169..526ea78 100644
--- a/legacyworlds-server/legacyworlds-server-utils/src/main/java/com/deepclone/lw/utils/EmailAddress.java
+++ b/legacyworlds-server/legacyworlds-server-utils/src/main/java/com/deepclone/lw/utils/EmailAddress.java
@@ -29,7 +29,7 @@ public class EmailAddress
private static final String quotedPair = "(\\\\" + asciiText + ")";
// RFC 2822 3.2.4 Atom:
- private static final String atext = "[a-zA-Z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]";
+ private static final String atext = "[a-zA-Z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]";
private static final String dotAtomText = atext + "+" + "(" + "\\." + atext + "+)*";
private static final String dotAtom = fwsp + "(" + dotAtomText + ")" + fwsp;
diff --git a/legacyworlds-server/pom.xml b/legacyworlds-server/pom.xml
index db8aa26..c00caab 100644
--- a/legacyworlds-server/pom.xml
+++ b/legacyworlds-server/pom.xml
@@ -4,12 +4,12 @@
legacyworlds
com.deepclone.lw
- 5.99.1
+ 5.99.2
com.deepclone.lw
legacyworlds-server
Legacy Worlds server
- 5.99.1
+ 5.99.2
pom
This metapackage is the root of the game server's components' code.
diff --git a/legacyworlds-session/pom.xml b/legacyworlds-session/pom.xml
index 3ea53f7..941a81d 100644
--- a/legacyworlds-session/pom.xml
+++ b/legacyworlds-session/pom.xml
@@ -4,12 +4,12 @@
legacyworlds
com.deepclone.lw
- 5.99.1
+ 5.99.2
com.deepclone.lw
legacyworlds-session
- 5.99.1
+ 5.99.2
Legacy Worlds sessions
This module contains the definition of sessions used in client-server communications and all related classes and exceptions.
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/CreateAuthChallengeCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/CreateAuthChallengeCommand.java
index 3a6bbef..9cc5a34 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/CreateAuthChallengeCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/CreateAuthChallengeCommand.java
@@ -1,11 +1,12 @@
package com.deepclone.lw.cmd;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
public class CreateAuthChallengeCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/CreateAuthChallengeResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/CreateAuthChallengeResponse.java
index 1e5ad58..d1d9692 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/CreateAuthChallengeResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/CreateAuthChallengeResponse.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -9,7 +10,7 @@ public class CreateAuthChallengeResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String challenge;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/MaintenanceResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/MaintenanceResponse.java
index efe9995..abd5a50 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/MaintenanceResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/MaintenanceResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd;
import java.sql.Timestamp;
import java.util.Date;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -12,7 +13,7 @@ public class MaintenanceResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Timestamp start;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminOverviewCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminOverviewCommand.java
index fa340fe..f997300 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminOverviewCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminOverviewCommand.java
@@ -1,11 +1,12 @@
package com.deepclone.lw.cmd.admin;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
public class AdminOverviewCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminOverviewResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminOverviewResponse.java
index b292818..c7937c9 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminOverviewResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminOverviewResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.admin;
import com.deepclone.lw.cmd.admin.adata.AdminOverview;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class AdminOverviewResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final AdminOverview overview;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminResponse.java
index 7be1d55..ec411f8 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/AdminResponse.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.admin;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -10,7 +11,7 @@ public class AdminResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Administrator admin;
private final boolean privilegeOk;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/NoOperationCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/NoOperationCommand.java
index 4765054..bc19cea 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/NoOperationCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/NoOperationCommand.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.admin;
import com.deepclone.lw.cmd.admin.adata.Privileges;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -10,7 +11,7 @@ public class NoOperationCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Privileges requirePrivilege;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/SetPasswordCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/SetPasswordCommand.java
index 49eeb2f..baa5056 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/SetPasswordCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/SetPasswordCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class SetPasswordCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String sha1Auth;
private final String md5Auth;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/SetPasswordResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/SetPasswordResponse.java
index a4a429f..e1bcb86 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/SetPasswordResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/SetPasswordResponse.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.admin;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -9,7 +10,7 @@ public class SetPasswordResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public static enum PasswordChangeStatus {
OK ,
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/AdminOverview.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/AdminOverview.java
index 4eb221b..dabaf57 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/AdminOverview.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/AdminOverview.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.adata;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class AdminOverview
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int id;
private long newMessages;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/Administrator.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/Administrator.java
index 19c3dbf..91be442 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/Administrator.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/Administrator.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.adata;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class Administrator
extends AdministratorBasics
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String address;
private boolean passwordChange;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/AdministratorBasics.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/AdministratorBasics.java
index 2f7342b..cb04d79 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/AdministratorBasics.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/AdministratorBasics.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.admin.adata;
import java.io.Serializable;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class AdministratorBasics
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int id;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/Privileges.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/Privileges.java
index 824fb65..412c49f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/Privileges.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/adata/Privileges.java
@@ -20,6 +20,7 @@ public enum Privileges {
BUGM( 0x00000200 , "Receiving automated error e-mail" ) ,
BUGT( 0x00000400 , "Managing bugs reported through the bug tracker" ) ,
MNTM( 0x00000800 , "Activating/disabling maintenance mode" ) ,
+ GDAT( 0x00001000 , "Modifying game data" ) ,
SUPER( 0x80000000 , "Superuser (all privileges + admin management)" );
private final int bits;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ArchivedBanRequest.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ArchivedBanRequest.java
index d04e0ce..32d6336 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ArchivedBanRequest.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ArchivedBanRequest.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.bans;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class ArchivedBanRequest
extends BanRequest
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private Timestamp update;
private boolean expired;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BanRequest.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BanRequest.java
index dee4b52..1a7f3d6 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BanRequest.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BanRequest.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.admin.bans;
import java.io.Serializable;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class BanRequest
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int id;
private int requestedById;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BansSummaryCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BansSummaryCommand.java
index 6b54955..0bfdf9b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BansSummaryCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BansSummaryCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bans;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class BansSummaryCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BansSummaryResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BansSummaryResponse.java
index 9cfe672..1d21b10 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BansSummaryResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/BansSummaryResponse.java
@@ -5,6 +5,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class BansSummaryResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< SummaryEntry > entries;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ConfirmBanCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ConfirmBanCommand.java
index 3ff608c..e19fca2 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ConfirmBanCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ConfirmBanCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bans;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ConfirmBanCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/LiftBanCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/LiftBanCommand.java
index 24f2067..98d6b96 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/LiftBanCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/LiftBanCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bans;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class LiftBanCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ListBansCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ListBansCommand.java
index 1ba7c91..60f8463 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ListBansCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ListBansCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bans;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ListBansCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BanType type;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ListBansResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ListBansResponse.java
index c956cec..205398a 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ListBansResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ListBansResponse.java
@@ -5,6 +5,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class ListBansResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BanType type;
private final List< BanRequest > bans;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RejectBanCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RejectBanCommand.java
index 1e5e56b..0fc9092 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RejectBanCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RejectBanCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bans;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class RejectBanCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int id;
private final String reason;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RejectBanResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RejectBanResponse.java
index caa0a1e..38cf2d5 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RejectBanResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RejectBanResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.admin.bans;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class RejectBanResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean error;
private final int id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RequestBanCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RequestBanCommand.java
index 8f6e882..cee952c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RequestBanCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RequestBanCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bans;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class RequestBanCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String user;
private final boolean empire;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RequestBanResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RequestBanResponse.java
index 8637681..31365eb 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RequestBanResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/RequestBanResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.admin.bans;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class RequestBanResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public static enum Error {
NOT_FOUND ,
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/SummaryEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/SummaryEntry.java
index 0fcfa02..ce4c74b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/SummaryEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/SummaryEntry.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.bans;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class SummaryEntry
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BanType type;
private final long count;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ValidatedBanRequest.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ValidatedBanRequest.java
index dfa6945..12586b7 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ValidatedBanRequest.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bans/ValidatedBanRequest.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.bans;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class ValidatedBanRequest
extends BanRequest
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private Timestamp update;
private boolean redeemable;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/BugsSummaryCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/BugsSummaryCommand.java
index d5846a0..efbecb9 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/BugsSummaryCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/BugsSummaryCommand.java
@@ -1,5 +1,6 @@
package com.deepclone.lw.cmd.admin.bt;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -7,6 +8,6 @@ public class BugsSummaryCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/BugsSummaryResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/BugsSummaryResponse.java
index c399f41..05315ba 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/BugsSummaryResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/BugsSummaryResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.admin.bt;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class BugsSummaryResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long pending;
private final long open;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/GetSnapshotCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/GetSnapshotCommand.java
index 9aa671a..df41a9a 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/GetSnapshotCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/GetSnapshotCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bt;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class GetSnapshotCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long bugId;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/GetSnapshotResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/GetSnapshotResponse.java
index 439c768..d7dae36 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/GetSnapshotResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/GetSnapshotResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.admin.bt;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class GetSnapshotResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String snapshot;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ListBugsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ListBugsResponse.java
index 4975ab8..5e18e62 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ListBugsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ListBugsResponse.java
@@ -7,6 +7,7 @@ import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
import com.deepclone.lw.cmd.bt.data.BugReport;
import com.deepclone.lw.cmd.bt.data.BugStatus;
+import com.deepclone.lw.session.API;
@@ -14,7 +15,7 @@ public class ListBugsResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BugStatus status;
private final boolean ownOnly;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/MergeReportsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/MergeReportsCommand.java
index f95de2f..0997f53 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/MergeReportsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/MergeReportsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bt;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class MergeReportsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id1;
private final long id2;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/MergeReportsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/MergeReportsResponse.java
index aedcc55..accb14f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/MergeReportsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/MergeReportsResponse.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.adata.Administrator;
import com.deepclone.lw.cmd.bt.data.BugEvent;
import com.deepclone.lw.cmd.bt.data.BugReport;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class MergeReportsResponse
extends ViewBugResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final MergeError mergeError;
private final long mergeId;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ModerateCommentCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ModerateCommentCommand.java
index f648c86..2c3b6b3 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ModerateCommentCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ModerateCommentCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bt;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ModerateCommentCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id;
private final boolean validation;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/PostCommentResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/PostCommentResponse.java
index 13a97f0..e1375ba 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/PostCommentResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/PostCommentResponse.java
@@ -7,6 +7,7 @@ import com.deepclone.lw.cmd.ObjectNameError;
import com.deepclone.lw.cmd.admin.adata.Administrator;
import com.deepclone.lw.cmd.bt.data.BugEvent;
import com.deepclone.lw.cmd.bt.data.BugReport;
+import com.deepclone.lw.session.API;
@@ -14,7 +15,7 @@ public class PostCommentResponse
extends ViewBugResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean posted;
private final ObjectNameError commentError;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportBugResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportBugResponse.java
index 3231103..4f1fa99 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportBugResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportBugResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.admin.bt;
import com.deepclone.lw.cmd.ObjectNameError;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class ReportBugResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long bugId;
private final ObjectNameError titleError;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportStatusCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportStatusCommand.java
index 2f7ee85..9d8f155 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportStatusCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportStatusCommand.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.admin.bt;
import com.deepclone.lw.cmd.bt.data.BugStatus;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -10,7 +11,7 @@ public class ReportStatusCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id;
private final BugStatus status;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportVisibilityCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportVisibilityCommand.java
index 04d82c1..ae97fe3 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportVisibilityCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ReportVisibilityCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.bt;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ReportVisibilityCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ValidateReportCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ValidateReportCommand.java
index 704c018..60c65ea 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ValidateReportCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ValidateReportCommand.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.admin.bt;
import com.deepclone.lw.cmd.bt.data.BugStatus;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -10,7 +11,7 @@ public class ValidateReportCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id;
private final BugStatus status;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ViewBugResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ViewBugResponse.java
index eccb9d5..60ae71e 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ViewBugResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/bt/ViewBugResponse.java
@@ -7,6 +7,7 @@ import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
import com.deepclone.lw.cmd.bt.data.BugEvent;
import com.deepclone.lw.cmd.bt.data.BugReport;
+import com.deepclone.lw.session.API;
@@ -14,7 +15,7 @@ public class ViewBugResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BugReport report;
private final List< BugEvent > events;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/Category.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/Category.java
index 774a70a..89d82c5 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/Category.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/Category.java
@@ -5,13 +5,15 @@ import java.io.Serializable;
import java.util.Collections;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class Category
implements Serializable , Comparable< Category >
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String name;
private final List< Definition > definitions;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/Definition.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/Definition.java
index 7115438..f5fb206 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/Definition.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/Definition.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.constants;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class Definition
implements Serializable , Comparable< Definition >
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String name;
private String description;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/GetConstantsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/GetConstantsCommand.java
index 93920a5..6fa7d41 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/GetConstantsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/GetConstantsCommand.java
@@ -1,11 +1,12 @@
package com.deepclone.lw.cmd.admin.constants;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
public class GetConstantsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/GetConstantsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/GetConstantsResponse.java
index a31d96f..ca03aca 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/GetConstantsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/GetConstantsResponse.java
@@ -6,13 +6,14 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
public class GetConstantsResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private List< Category > categories;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/SetConstantCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/SetConstantCommand.java
index d2efe93..e506cf3 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/SetConstantCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/SetConstantCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.constants;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class SetConstantCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String name;
private final double value;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/SetConstantResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/SetConstantResponse.java
index cec5d9c..d5522c8 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/SetConstantResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/constants/SetConstantResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.admin.constants;
import java.util.List;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class SetConstantResponse
extends GetConstantsResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean error;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ChangeLanguageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ChangeLanguageCommand.java
index 9882fd5..0dea93c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ChangeLanguageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ChangeLanguageCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.i18n;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ChangeLanguageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String id;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ChangeLanguageResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ChangeLanguageResponse.java
index fd23d8e..57545ca 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ChangeLanguageResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ChangeLanguageResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.admin.i18n;
import java.util.List;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class ChangeLanguageResponse
extends GetLanguageResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean nameError;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/GetLanguageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/GetLanguageCommand.java
index 9ed73bb..4a66401 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/GetLanguageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/GetLanguageCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.i18n;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class GetLanguageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String language;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/GetLanguageResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/GetLanguageResponse.java
index 68cbe5a..6f46e63 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/GetLanguageResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/GetLanguageResponse.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class GetLanguageResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Language language;
private final List< I18NString > strings;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/I18NString.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/I18NString.java
index 06ada37..72691e9 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/I18NString.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/I18NString.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.i18n;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class I18NString
implements Serializable , Comparable< I18NString >
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String id;
private final String text;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/Language.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/Language.java
index 6258920..ec8c299 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/Language.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/Language.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.i18n;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class Language
implements Serializable , Comparable< Language >
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String id;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/SetStringCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/SetStringCommand.java
index 8cff779..77e7bb4 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/SetStringCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/SetStringCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.i18n;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class SetStringCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String language;
private final String id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/SetStringResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/SetStringResponse.java
index 5b3af0f..6242475 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/SetStringResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/SetStringResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.admin.i18n;
import java.util.List;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class SetStringResponse
extends GetLanguageResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String edited;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ViewLanguagesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ViewLanguagesCommand.java
index 5a22e75..0f6f313 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ViewLanguagesCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ViewLanguagesCommand.java
@@ -1,5 +1,6 @@
package com.deepclone.lw.cmd.admin.i18n;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -7,6 +8,6 @@ public class ViewLanguagesCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ViewLanguagesResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ViewLanguagesResponse.java
index 96e66cf..9c5f2b1 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ViewLanguagesResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/i18n/ViewLanguagesResponse.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class ViewLanguagesResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< Language > languages;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ExceptionEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ExceptionEntry.java
index 55d4aa3..31aeddb 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ExceptionEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ExceptionEntry.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.admin.logs;
import java.io.Serializable;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class ExceptionEntry
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String className;
private final String message;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/GetEntryCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/GetEntryCommand.java
index c07f7c9..00361bd 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/GetEntryCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/GetEntryCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.logs;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class GetEntryCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/GetEntryResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/GetEntryResponse.java
index 8d20250..7ed89d9 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/GetEntryResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/GetEntryResponse.java
@@ -5,13 +5,14 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
public class GetEntryResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final LogEntry entry;
private final List< ExceptionEntry > exceptions;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/LogEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/LogEntry.java
index f203bb6..d5c567f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/LogEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/LogEntry.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.admin.logs;
import java.io.Serializable;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class LogEntry
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private Long id;
private Timestamp timestamp;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/TraceEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/TraceEntry.java
index 885c6f4..3226647 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/TraceEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/TraceEntry.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.logs;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class TraceEntry
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String location;
private final String fileName;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ViewLogCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ViewLogCommand.java
index d3f3ad7..a67b15f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ViewLogCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ViewLogCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.logs;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ViewLogCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final LogType type;
private final long firstEntry;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ViewLogResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ViewLogResponse.java
index 3964c7e..f9a1ab0 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ViewLogResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/logs/ViewLogResponse.java
@@ -5,6 +5,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class ViewLogResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long count;
private final List< LogEntry > entries;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/EnableMaintenanceCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/EnableMaintenanceCommand.java
index 2848b92..6929073 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/EnableMaintenanceCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/EnableMaintenanceCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.mntm;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class EnableMaintenanceCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String reason;
private final int duration;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/EndMaintenanceCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/EndMaintenanceCommand.java
index 11d5a82..da99e6e 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/EndMaintenanceCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/EndMaintenanceCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.mntm;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class EndMaintenanceCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/ExtendMaintenanceCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/ExtendMaintenanceCommand.java
index 4a40d58..3f30964 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/ExtendMaintenanceCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/ExtendMaintenanceCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.mntm;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ExtendMaintenanceCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int duration;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceChangeResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceChangeResponse.java
index c5ea32c..6a9e4e7 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceChangeResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceChangeResponse.java
@@ -5,6 +5,7 @@ import java.util.Date;
import com.deepclone.lw.cmd.ObjectNameError;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class MaintenanceChangeResponse
extends MaintenanceStatusResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String newReason;
private final ObjectNameError reasonError;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceStatusCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceStatusCommand.java
index c0fd9b0..b4d08b9 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceStatusCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceStatusCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.mntm;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class MaintenanceStatusCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceStatusResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceStatusResponse.java
index 4f98983..9b441b6 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceStatusResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/mntm/MaintenanceStatusResponse.java
@@ -5,6 +5,7 @@ import java.util.Date;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class MaintenanceStatusResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String reason;
private final Date started;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ComposeMessageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ComposeMessageCommand.java
index 5eb5314..db5078c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ComposeMessageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ComposeMessageCommand.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.admin.msg;
import com.deepclone.lw.cmd.msgdata.MessageType;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -10,7 +11,7 @@ public class ComposeMessageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Boolean inbox;
private final Long replyTo;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ComposeMessageResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ComposeMessageResponse.java
index 7b01bc4..c95a7e5 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ComposeMessageResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ComposeMessageResponse.java
@@ -5,6 +5,7 @@ import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
import com.deepclone.lw.cmd.msgdata.Message;
import com.deepclone.lw.cmd.msgdata.MessageType;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class ComposeMessageResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private MessageType messageType;
private String target;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/GetMessagesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/GetMessagesCommand.java
index f6019f1..b1175b1 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/GetMessagesCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/GetMessagesCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.msg;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class GetMessagesCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean inbox;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/GetMessagesResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/GetMessagesResponse.java
index bd0c6da..ee774d3 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/GetMessagesResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/GetMessagesResponse.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
import com.deepclone.lw.cmd.msgdata.MessageListEntry;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class GetMessagesResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< MessageListEntry > messages;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/MessageBoxCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/MessageBoxCommand.java
index c7431f2..5b2dfd2 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/MessageBoxCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/MessageBoxCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.msg;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class MessageBoxCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final MessageBoxAction action;
private final boolean inbox;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/PrepareMessageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/PrepareMessageCommand.java
index 0da0140..244779c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/PrepareMessageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/PrepareMessageCommand.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.admin.msg;
import com.deepclone.lw.cmd.msgdata.MessageType;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -10,7 +11,7 @@ public class PrepareMessageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final MessageType type;
private final Long id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ReadMessageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ReadMessageCommand.java
index e4d178f..57db7bf 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ReadMessageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ReadMessageCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.msg;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ReadMessageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean inbox;
private final long id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ReadMessageResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ReadMessageResponse.java
index c310b93..096124d 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ReadMessageResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/ReadMessageResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.admin.msg;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
import com.deepclone.lw.cmd.msgdata.Message;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class ReadMessageResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean inbox;
private final Message message;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/SendSpamCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/SendSpamCommand.java
index b282bcc..9acc488 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/SendSpamCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/msg/SendSpamCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.msg;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class SendSpamCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String title;
private final String body;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/GetNamesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/GetNamesCommand.java
index 1502f47..bcd08ea 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/GetNamesCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/GetNamesCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.naming;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class GetNamesCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final NameType type;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/GetNamesResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/GetNamesResponse.java
index 735a487..54a68ba 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/GetNamesResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/GetNamesResponse.java
@@ -5,6 +5,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class GetNamesResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final NameType type;
private final List< Name > names;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/Name.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/Name.java
index c3f67e8..3c71848 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/Name.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/Name.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.naming;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class Name
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int id;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesActionCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesActionCommand.java
index 0b778e1..e808868 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesActionCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesActionCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.naming;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class NamesActionCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final NameType type;
private final NameAction action;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesSummaryCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesSummaryCommand.java
index 96ea84a..325c47e 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesSummaryCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesSummaryCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.naming;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class NamesSummaryCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesSummaryResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesSummaryResponse.java
index adbb523..746f7d6 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesSummaryResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/naming/NamesSummaryResponse.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class NamesSummaryResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
@SuppressWarnings( "serial" )
public static class Entry
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/GetPrefDefaultsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/GetPrefDefaultsCommand.java
index 0946c22..25b876b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/GetPrefDefaultsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/GetPrefDefaultsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.prefs;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class GetPrefDefaultsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/PrefDefaultsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/PrefDefaultsResponse.java
index fed8047..e36f9ec 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/PrefDefaultsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/PrefDefaultsResponse.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
import com.deepclone.lw.cmd.player.gdata.account.PrefCategory;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class PrefDefaultsResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< PrefCategory > preferences;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/SetPrefDefaultCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/SetPrefDefaultCommand.java
index 35f3945..64a778e 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/SetPrefDefaultCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/prefs/SetPrefDefaultCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.prefs;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class SetPrefDefaultCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String preference;
private final String value;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/AddAdministratorCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/AddAdministratorCommand.java
index ed1eeb8..77febe4 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/AddAdministratorCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/AddAdministratorCommand.java
@@ -6,6 +6,7 @@ import java.util.HashSet;
import java.util.Set;
import com.deepclone.lw.cmd.admin.adata.Privileges;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -14,7 +15,7 @@ public class AddAdministratorCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String address;
private final String appearAs;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/AddAdministratorResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/AddAdministratorResponse.java
index a31e6d4..f1a9067 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/AddAdministratorResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/AddAdministratorResponse.java
@@ -7,13 +7,14 @@ import com.deepclone.lw.cmd.ObjectNameError;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
import com.deepclone.lw.cmd.admin.adata.PrivEntry;
+import com.deepclone.lw.session.API;
public class AddAdministratorResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public static enum AddressError {
EMPTY ,
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ListAdministratorsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ListAdministratorsCommand.java
index 8133b1c..e6930e1 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ListAdministratorsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ListAdministratorsCommand.java
@@ -1,11 +1,12 @@
package com.deepclone.lw.cmd.admin.su;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
public class ListAdministratorsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ListAdministratorsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ListAdministratorsResponse.java
index 9a49ab2..39208b4 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ListAdministratorsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ListAdministratorsResponse.java
@@ -5,6 +5,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class ListAdministratorsResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< Administrator > administrators;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ResetAdminPasswordCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ResetAdminPasswordCommand.java
index 78c5bb0..6023fc3 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ResetAdminPasswordCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ResetAdminPasswordCommand.java
@@ -1,10 +1,12 @@
package com.deepclone.lw.cmd.admin.su;
+import com.deepclone.lw.session.API;
+
public class ResetAdminPasswordCommand
extends ViewAdministratorCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public ResetAdminPasswordCommand( int identifier )
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/SetPrivilegesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/SetPrivilegesCommand.java
index ea902e3..8fc8ad7 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/SetPrivilegesCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/SetPrivilegesCommand.java
@@ -6,6 +6,7 @@ import java.util.HashSet;
import java.util.Set;
import com.deepclone.lw.cmd.admin.adata.Privileges;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class SetPrivilegesCommand
extends ViewAdministratorCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Set< Privileges > privileges;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ViewAdministratorCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ViewAdministratorCommand.java
index 8b6e119..c3aa977 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ViewAdministratorCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ViewAdministratorCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.su;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ViewAdministratorCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int identifier;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ViewAdministratorResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ViewAdministratorResponse.java
index a903ccc..176d54a 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ViewAdministratorResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/su/ViewAdministratorResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.admin.su;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class ViewAdministratorResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Administrator view;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/GetTechnologyCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/GetTechnologyCommand.java
new file mode 100644
index 0000000..2695f5f
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/GetTechnologyCommand.java
@@ -0,0 +1,29 @@
+package com.deepclone.lw.cmd.admin.techs;
+
+
+import com.deepclone.lw.session.API;
+import com.deepclone.lw.session.Command;
+
+
+
+public class GetTechnologyCommand
+ extends Command
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ private final String technology;
+
+
+ public GetTechnologyCommand( String technology )
+ {
+ this.technology = technology;
+ }
+
+
+ public String getTechnology( )
+ {
+ return technology;
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/GetTechnologyResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/GetTechnologyResponse.java
new file mode 100644
index 0000000..ec14a8c
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/GetTechnologyResponse.java
@@ -0,0 +1,62 @@
+package com.deepclone.lw.cmd.admin.techs;
+
+
+import java.util.LinkedList;
+import java.util.List;
+
+import com.deepclone.lw.cmd.admin.AdminResponse;
+import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
+
+
+
+public class GetTechnologyResponse
+ extends AdminResponse
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ public final TechEntry technology;
+
+ public final List< String > categories;
+
+ public final List< String > strings;
+
+
+ public GetTechnologyResponse( Administrator admin , boolean privError )
+ {
+ super( admin , privError );
+ this.technology = null;
+ this.categories = null;
+ this.strings = null;
+ }
+
+
+ public GetTechnologyResponse( Administrator admin , TechEntry technology , List< String > categories ,
+ List< String > strings )
+ {
+ super( admin , false );
+ this.technology = technology;
+ this.categories = categories;
+ this.strings = strings;
+ }
+
+
+ public TechEntry getTechnology( )
+ {
+ return this.technology;
+ }
+
+
+ public List< String > getCategories( )
+ {
+ return new LinkedList< String >( this.categories );
+ }
+
+
+ public List< String > getStrings( )
+ {
+ return new LinkedList< String >( this.strings );
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/ListCategoriesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/ListCategoriesCommand.java
new file mode 100644
index 0000000..736b187
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/ListCategoriesCommand.java
@@ -0,0 +1,15 @@
+package com.deepclone.lw.cmd.admin.techs;
+
+
+import com.deepclone.lw.session.API;
+import com.deepclone.lw.session.Command;
+
+
+
+public class ListCategoriesCommand
+ extends Command
+{
+
+ private static final long serialVersionUID = API.Version;
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/ListCategoriesResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/ListCategoriesResponse.java
new file mode 100644
index 0000000..e5446a3
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/ListCategoriesResponse.java
@@ -0,0 +1,40 @@
+package com.deepclone.lw.cmd.admin.techs;
+
+
+import java.util.LinkedList;
+import java.util.List;
+
+import com.deepclone.lw.cmd.admin.AdminResponse;
+import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
+
+
+
+public class ListCategoriesResponse
+ extends AdminResponse
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ private final List< TechCategory > categories;
+
+
+ public ListCategoriesResponse( Administrator admin )
+ {
+ super( admin , false );
+ this.categories = null;
+ }
+
+
+ public ListCategoriesResponse( Administrator admin , List< TechCategory > categories )
+ {
+ super( admin , true );
+ this.categories = categories;
+ }
+
+
+ public List< TechCategory > getCategories( )
+ {
+ return new LinkedList< TechCategory >( this.categories );
+ }
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/TechCategory.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/TechCategory.java
new file mode 100644
index 0000000..b85721c
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/TechCategory.java
@@ -0,0 +1,50 @@
+package com.deepclone.lw.cmd.admin.techs;
+
+
+import java.io.Serializable;
+import java.util.LinkedList;
+import java.util.List;
+
+import com.deepclone.lw.session.API;
+
+
+
+public class TechCategory
+ implements Serializable
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ private final String name;
+
+ private final String description;
+
+ private final List< String > techs;
+
+
+ public TechCategory( String name , String description , List< String > techs )
+ {
+ this.name = name;
+ this.description = description;
+ this.techs = new LinkedList< String >( techs );
+ }
+
+
+ public String getName( )
+ {
+ return name;
+ }
+
+
+ public String getDescription( )
+ {
+ return description;
+ }
+
+
+ public List< String > getTechs( )
+ {
+ return techs;
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/TechEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/TechEntry.java
new file mode 100644
index 0000000..cc4a2d2
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/techs/TechEntry.java
@@ -0,0 +1,62 @@
+package com.deepclone.lw.cmd.admin.techs;
+
+
+import java.io.Serializable;
+
+import com.deepclone.lw.session.API;
+
+
+
+public class TechEntry
+ implements Serializable
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ private final String category;
+ private final String name;
+ private final String description;
+ private final int points;
+ private final int cost;
+
+
+ public TechEntry( String category , String name , String description , int points , int cost )
+ {
+ this.category = category;
+ this.name = name;
+ this.description = description;
+ this.points = points;
+ this.cost = cost;
+ }
+
+
+ public String getCategory( )
+ {
+ return category;
+ }
+
+
+ public String getName( )
+ {
+ return name;
+ }
+
+
+ public String getDescription( )
+ {
+ return description;
+ }
+
+
+ public int getPoints( )
+ {
+ return points;
+ }
+
+
+ public int getCost( )
+ {
+ return cost;
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/SetTaskStatusCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/SetTaskStatusCommand.java
index 82645b8..dca5056 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/SetTaskStatusCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/SetTaskStatusCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.tick;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class SetTaskStatusCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int task;
private final TickerTaskStatus newStatus;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerStatusCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerStatusCommand.java
index e6dda40..42f7694 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerStatusCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerStatusCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.tick;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class TickerStatusCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerStatusResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerStatusResponse.java
index 9de84db..ad401cd 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerStatusResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerStatusResponse.java
@@ -5,6 +5,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class TickerStatusResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean paused;
private final List< TickerTaskInfo > tasks;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerTaskInfo.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerTaskInfo.java
index 5f189de..88780dd 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerTaskInfo.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/TickerTaskInfo.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.admin.tick;
import java.io.Serializable;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class TickerTaskInfo
implements Serializable , Comparable< TickerTaskInfo >
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int id;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/ToggleTickerCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/ToggleTickerCommand.java
index 797781f..95b9f94 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/ToggleTickerCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/tick/ToggleTickerCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.tick;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class ToggleTickerCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountBanEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountBanEntry.java
index 6f124e0..5212f12 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountBanEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountBanEntry.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.users;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class AccountBanEntry
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String requestedByName;
private int requestedById;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountListEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountListEntry.java
index f102958..ec88fc0 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountListEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountListEntry.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.admin.users;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class AccountListEntry
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int id;
private String address;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountSessionEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountSessionEntry.java
index ff8594d..2a432a6 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountSessionEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountSessionEntry.java
@@ -3,12 +3,14 @@ package com.deepclone.lw.cmd.admin.users;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class AccountSessionEntry
extends AccountListEntry
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private List< UserSession > sessions;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountViewEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountViewEntry.java
index 44ff78d..8d4b36e 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountViewEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/AccountViewEntry.java
@@ -5,13 +5,15 @@ import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class AccountViewEntry
extends AccountListEntry
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private Integer empireId;
private int gameCredits;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/GiveCreditsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/GiveCreditsCommand.java
index 5ab9330..5a72297 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/GiveCreditsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/GiveCreditsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.users;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class GiveCreditsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int id;
private final int credits;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListAccountsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListAccountsCommand.java
index 5b52707..58b84ed 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListAccountsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListAccountsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.users;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ListAccountsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final AccountStatus status;
private final boolean online;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListAccountsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListAccountsResponse.java
index 389bd1e..d93d8dc 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListAccountsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListAccountsResponse.java
@@ -5,6 +5,7 @@ import java.util.List;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class ListAccountsResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final AccountStatus status;
private final boolean online;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListSessionsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListSessionsCommand.java
index 0dd8336..de06eb1 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListSessionsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListSessionsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.users;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ListSessionsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListSessionsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListSessionsResponse.java
index a9ae818..87bc72c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListSessionsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ListSessionsResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.admin.users;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class ListSessionsResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final AccountSessionEntry account;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/UserSession.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/UserSession.java
index b66cb2b..11a0265 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/UserSession.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/UserSession.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.admin.users;
import java.io.Serializable;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class UserSession
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long id;
private int credentialsId;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ViewAccountCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ViewAccountCommand.java
index aa05383..584f465 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ViewAccountCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ViewAccountCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.admin.users;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ViewAccountCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ViewAccountResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ViewAccountResponse.java
index add90f9..efa7255 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ViewAccountResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/admin/users/ViewAccountResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.admin.users;
import com.deepclone.lw.cmd.admin.AdminResponse;
import com.deepclone.lw.cmd.admin.adata.Administrator;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class ViewAccountResponse
extends AdminResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final AccountViewEntry account;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ListBugsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ListBugsCommand.java
index 18763af..ae33a05 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ListBugsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ListBugsCommand.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.bt;
import com.deepclone.lw.cmd.bt.data.BugStatus;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -10,7 +11,7 @@ public class ListBugsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BugStatus status;
private final boolean ownOnly;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/PostCommentCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/PostCommentCommand.java
index d032610..82ee37f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/PostCommentCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/PostCommentCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.bt;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class PostCommentCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id;
private final String comment;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ReportBugCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ReportBugCommand.java
index 92425fe..bd57fd1 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ReportBugCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ReportBugCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.bt;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ReportBugCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String title;
private final String description;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ViewBugCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ViewBugCommand.java
index 1ef74ba..ed25758 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ViewBugCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/ViewBugCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.bt;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ViewBugCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugEvent.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugEvent.java
index 027b9d7..f53cf16 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugEvent.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugEvent.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.bt.data;
import java.io.Serializable;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class BugEvent
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long id;
private BugEventType type;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugReport.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugReport.java
index 2767173..f4be6c6 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugReport.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugReport.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.bt.data;
import java.io.Serializable;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class BugReport
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long reportId;
private String title;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugSubmitter.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugSubmitter.java
index 3e6e5b8..729ef38 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugSubmitter.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/bt/data/BugSubmitter.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.bt.data;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class BugSubmitter
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private boolean isAdmin;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ConfirmPasswordRecoveryCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ConfirmPasswordRecoveryCommand.java
index fe21b7d..56b45af 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ConfirmPasswordRecoveryCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ConfirmPasswordRecoveryCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.ext;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ConfirmPasswordRecoveryCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String mailAddress;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ConfirmPasswordRecoveryResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ConfirmPasswordRecoveryResponse.java
index 4342cdd..0fdb4b3 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ConfirmPasswordRecoveryResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ConfirmPasswordRecoveryResponse.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.ext;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -9,7 +10,7 @@ public class ConfirmPasswordRecoveryResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public static enum PasswordRecoveryStatus {
OK ,
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/CreateAccountCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/CreateAccountCommand.java
index a4d0d32..60ff472 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/CreateAccountCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/CreateAccountCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.ext;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public final class CreateAccountCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String mail;
private final String mailConfirm;
private final String password;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/CreateAccountResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/CreateAccountResponse.java
index d7fff8b..f997c37 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/CreateAccountResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/CreateAccountResponse.java
@@ -5,6 +5,7 @@ import java.util.Map;
import com.deepclone.lw.cmd.MailError;
import com.deepclone.lw.cmd.PasswordError;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -13,7 +14,7 @@ public final class CreateAccountResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean created;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ListLanguagesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ListLanguagesCommand.java
index d04a39e..5fc3027 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ListLanguagesCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ListLanguagesCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.ext;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class ListLanguagesCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ListLanguagesResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ListLanguagesResponse.java
index 5f046c3..4815584 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ListLanguagesResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/ListLanguagesResponse.java
@@ -7,6 +7,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Map;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -15,12 +16,12 @@ public class ListLanguagesResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public static class Language
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/RequestPasswordRecoveryCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/RequestPasswordRecoveryCommand.java
index dea1b75..5d78bef 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/RequestPasswordRecoveryCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/RequestPasswordRecoveryCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.ext;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class RequestPasswordRecoveryCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String mailAddress;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/RequestPasswordRecoveryResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/RequestPasswordRecoveryResponse.java
index cdf6407..bbe7753 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/RequestPasswordRecoveryResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/ext/RequestPasswordRecoveryResponse.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.ext;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -9,7 +10,7 @@ public class RequestPasswordRecoveryResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public static enum PasswordRecoveryRequestStatus {
OK ,
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/msgdata/Message.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/msgdata/Message.java
index d3e8547..d11c1db 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/msgdata/Message.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/msgdata/Message.java
@@ -5,6 +5,7 @@ import java.io.Serializable;
import java.sql.Timestamp;
import com.deepclone.lw.cmd.player.gdata.GameTime;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class Message
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long id;
private Long previous;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/msgdata/MessageListEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/msgdata/MessageListEntry.java
index aee6cac..12809b2 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/msgdata/MessageListEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/msgdata/MessageListEntry.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.msgdata;
import java.io.Serializable;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class MessageListEntry
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long id;
private MessageType type;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/EmpireResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/EmpireResponse.java
index 7b6eea1..3fa9bcb 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/EmpireResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/EmpireResponse.java
@@ -1,14 +1,13 @@
package com.deepclone.lw.cmd.player;
-import java.util.Collections;
import java.util.List;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.battles.BattleListEntry;
import com.deepclone.lw.cmd.player.gdata.empire.OverviewData;
-import com.deepclone.lw.cmd.player.gdata.empire.ResearchLineData;
+import com.deepclone.lw.session.API;
@@ -16,19 +15,16 @@ public class EmpireResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final OverviewData overview;
- private final List< ResearchLineData > research;
private final List< BattleListEntry > battles;
- public EmpireResponse( GamePageData page , OverviewData overview , List< ResearchLineData > research ,
- List< BattleListEntry > battles )
+ public EmpireResponse( GamePageData page , OverviewData overview , List< BattleListEntry > battles )
{
super( page );
this.overview = overview;
this.battles = battles;
- this.research = Collections.unmodifiableList( research );
}
@@ -38,12 +34,6 @@ public class EmpireResponse
}
- public List< ResearchLineData > getResearch( )
- {
- return research;
- }
-
-
public List< BattleListEntry > getBattles( )
{
return battles;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/GetNewPlanetCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/GetNewPlanetCommand.java
index 0901c47..f8984af 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/GetNewPlanetCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/GetNewPlanetCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class GetNewPlanetCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/GetNewPlanetResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/GetNewPlanetResponse.java
index 772d507..269e75a 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/GetNewPlanetResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/GetNewPlanetResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player;
import com.deepclone.lw.cmd.ObjectNameError;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class GetNewPlanetResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String name;
private final ObjectNameError error;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ImplementTechCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ImplementTechCommand.java
deleted file mode 100644
index 9a26ed7..0000000
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ImplementTechCommand.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.deepclone.lw.cmd.player;
-
-
-import com.deepclone.lw.session.Command;
-
-
-
-public class ImplementTechCommand
- extends Command
-{
-
- private static final long serialVersionUID = 1L;
-
- private final int tech;
-
-
- public ImplementTechCommand( int tech )
- {
- this.tech = tech;
- }
-
-
- public int getTech( )
- {
- return tech;
- }
-
-}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ListPlanetsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ListPlanetsCommand.java
index bf8b5e8..28ad77c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ListPlanetsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ListPlanetsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class ListPlanetsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ListPlanetsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ListPlanetsResponse.java
index 0e93aac..47a01b3 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ListPlanetsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ListPlanetsResponse.java
@@ -7,6 +7,7 @@ import java.util.List;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.PlanetListData;
+import com.deepclone.lw.session.API;
@@ -14,7 +15,7 @@ public class ListPlanetsResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< PlanetListData > planets;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/OverviewCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/OverviewCommand.java
index 030a27b..c61817b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/OverviewCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/OverviewCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class OverviewCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ViewMapCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ViewMapCommand.java
index 2eb03bb..4ef2af4 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ViewMapCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ViewMapCommand.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player;
import com.deepclone.lw.cmd.player.gdata.MapSize;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -10,7 +11,7 @@ public class ViewMapCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean defaults;
private final Integer x;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ViewMapResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ViewMapResponse.java
index 703b122..cca0e46 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ViewMapResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/ViewMapResponse.java
@@ -8,6 +8,7 @@ import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.MapSize;
import com.deepclone.lw.cmd.player.gdata.map.MapSystemData;
+import com.deepclone.lw.session.API;
@@ -15,7 +16,7 @@ public class ViewMapResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int x;
private final int y;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountReactivationCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountReactivationCommand.java
index 2634d43..7d9967c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountReactivationCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountReactivationCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class AccountReactivationCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountReactivationResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountReactivationResponse.java
index 9eddc44..a7cd609 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountReactivationResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountReactivationResponse.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -9,7 +10,7 @@ public class AccountReactivationResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String address;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountValidationCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountValidationCommand.java
index 9854256..6b37962 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountValidationCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountValidationCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class AccountValidationCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean initialisation;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountValidationResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountValidationResponse.java
index 8bd908f..cfa6bc3 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountValidationResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/AccountValidationResponse.java
@@ -5,6 +5,7 @@ import java.util.Collections;
import java.util.List;
import com.deepclone.lw.cmd.ObjectNameError;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -13,7 +14,7 @@ public class AccountValidationResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean validated;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/BanDetailsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/BanDetailsCommand.java
index dca68e4..3667bae 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/BanDetailsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/BanDetailsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class BanDetailsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/BanDetailsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/BanDetailsResponse.java
index 20e70c3..76b4d1c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/BanDetailsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/BanDetailsResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.player.account;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -11,7 +12,7 @@ public class BanDetailsResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Timestamp banTime;
private final String banReason;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/CancelQuitCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/CancelQuitCommand.java
index 062f377..d4ba67f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/CancelQuitCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/CancelQuitCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class CancelQuitCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetAccountCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetAccountCommand.java
index e51d582..63b4c7c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetAccountCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetAccountCommand.java
@@ -1,11 +1,12 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
public class GetAccountCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetAccountResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetAccountResponse.java
index 3deb26c..913f598 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetAccountResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetAccountResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.account;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.account.AccountData;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class GetAccountResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final AccountData account;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetLanguageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetLanguageCommand.java
index b60f61c..f86484f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetLanguageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetLanguageCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class GetLanguageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetLanguageResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetLanguageResponse.java
index c18ad3d..d6d2bc4 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetLanguageResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/GetLanguageResponse.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -9,7 +10,7 @@ public class GetLanguageResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String language;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/QuitGameCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/QuitGameCommand.java
index c0a4776..a3bfd28 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/QuitGameCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/QuitGameCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class QuitGameCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String reason;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetAddressCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetAddressCommand.java
index 3362047..8ec0ddb 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetAddressCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetAddressCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class SetAddressCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String sha1Auth;
private final String md5Auth;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetAddressResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetAddressResponse.java
index b281611..1f780e0 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetAddressResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetAddressResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.player.account;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.account.AccountData;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class SetAddressResponse
extends GetAccountResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public static enum AddressChangeStatus {
OK ,
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetLanguageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetLanguageCommand.java
index 75b7984..c38d16e 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetLanguageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetLanguageCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class SetLanguageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String language;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPasswordCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPasswordCommand.java
index ef777be..55f2aaf 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPasswordCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPasswordCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class SetPasswordCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String sha1Auth;
private final String md5Auth;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPasswordResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPasswordResponse.java
index 3d6e71d..93fe53a 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPasswordResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPasswordResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.player.account;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.account.AccountData;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class SetPasswordResponse
extends GetAccountResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public static enum PasswordChangeStatus {
OK ,
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPreferencesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPreferencesCommand.java
index d1c4057..9d9b293 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPreferencesCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/SetPreferencesCommand.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.player.account;
import java.util.Map;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -11,7 +12,7 @@ public class SetPreferencesCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Map< String , String > values;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ToggleVacationCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ToggleVacationCommand.java
index da6d81a..4e910ee 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ToggleVacationCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ToggleVacationCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class ToggleVacationCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ValidateSetAddressCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ValidateSetAddressCommand.java
index 69ad994..feb53cd 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ValidateSetAddressCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ValidateSetAddressCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.account;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ValidateSetAddressCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean cancel;
private final String code;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ValidateSetAddressResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ValidateSetAddressResponse.java
index 5f1f15a..52b8cb0 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ValidateSetAddressResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/account/ValidateSetAddressResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.player.account;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.account.AccountData;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class ValidateSetAddressResponse
extends GetAccountResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean codeError;
private final String code;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/AllianceStatusCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/AllianceStatusCommand.java
index ceeb01c..a8d7220 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/AllianceStatusCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/AllianceStatusCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.alliances;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class AllianceStatusCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/AllianceStatusResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/AllianceStatusResponse.java
index f2eea70..63fb7c2 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/AllianceStatusResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/AllianceStatusResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.alliances;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.alliance.AllianceData;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class AllianceStatusResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final AllianceData alliance;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CancelJoinCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CancelJoinCommand.java
index 54af717..5610612 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CancelJoinCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CancelJoinCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.alliances;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class CancelJoinCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CreateAllianceCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CreateAllianceCommand.java
index 5e250e7..8ca082f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CreateAllianceCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CreateAllianceCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.alliances;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -8,7 +9,7 @@ import com.deepclone.lw.session.Command;
public class CreateAllianceCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String tag;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CreateAllianceResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CreateAllianceResponse.java
index c484453..133e48f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CreateAllianceResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/CreateAllianceResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.alliances;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.alliance.AllianceCreationStatus;
import com.deepclone.lw.cmd.player.gdata.alliance.AllianceData;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class CreateAllianceResponse
extends AllianceStatusResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final AllianceCreationStatus creation;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/JoinAllianceCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/JoinAllianceCommand.java
index e0fe9cd..5a6c4bf 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/JoinAllianceCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/JoinAllianceCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.alliances;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -8,7 +9,7 @@ import com.deepclone.lw.session.Command;
public class JoinAllianceCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String tag;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/JoinAllianceResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/JoinAllianceResponse.java
index d544543..9bf4f40 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/JoinAllianceResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/JoinAllianceResponse.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.player.alliances;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.alliance.AllianceData;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class JoinAllianceResponse
extends AllianceStatusResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String joinFailure;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/KickMembersCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/KickMembersCommand.java
index fddf2a3..7c430db 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/KickMembersCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/KickMembersCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.alliances;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class KickMembersCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int[] members;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/LeaveAllianceCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/LeaveAllianceCommand.java
index 4cf33da..bb518ae 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/LeaveAllianceCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/LeaveAllianceCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.alliances;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class LeaveAllianceCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ManageRequestsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ManageRequestsCommand.java
index 826e1a1..7f78179 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ManageRequestsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ManageRequestsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.alliances;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ManageRequestsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int[] members;
private final boolean accept;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/TransferLeadershipCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/TransferLeadershipCommand.java
index 558d360..c0671df 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/TransferLeadershipCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/TransferLeadershipCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.alliances;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class TransferLeadershipCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int toMember;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ViewAllianceCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ViewAllianceCommand.java
index aa201bf..cea77b0 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ViewAllianceCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ViewAllianceCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.alliances;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -8,7 +9,7 @@ import com.deepclone.lw.session.Command;
public class ViewAllianceCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String tag;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ViewAllianceResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ViewAllianceResponse.java
index 2f3e083..29da170 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ViewAllianceResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/alliances/ViewAllianceResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.alliances;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.alliance.AllianceData;
import com.deepclone.lw.cmd.player.gdata.alliance.PublicAllianceInformation;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class ViewAllianceResponse
extends AllianceStatusResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String requested;
private final PublicAllianceInformation info;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/GetBattleCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/GetBattleCommand.java
index 555c2f4..c65ef39 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/GetBattleCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/GetBattleCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.battles;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class GetBattleCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long battle;
private final Long tick;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/GetBattleResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/GetBattleResponse.java
index bf46be5..ce78d6b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/GetBattleResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/GetBattleResponse.java
@@ -4,13 +4,14 @@ package com.deepclone.lw.cmd.player.battles;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.battles.BattleView;
+import com.deepclone.lw.session.API;
public class GetBattleResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BattleView battle;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/ListBattlesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/ListBattlesCommand.java
index 6b8041a..9ee8ee7 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/ListBattlesCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/ListBattlesCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.battles;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ListBattlesCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int page;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/ListBattlesResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/ListBattlesResponse.java
index a4856c7..2681b84 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/ListBattlesResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/battles/ListBattlesResponse.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.battles.BattleListEntry;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class ListBattlesResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< BattleListEntry > list;
private final int currentPage;
private final int pages;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ListBugsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ListBugsResponse.java
index 6481ab0..21e84ee 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ListBugsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ListBugsResponse.java
@@ -7,6 +7,7 @@ import com.deepclone.lw.cmd.bt.data.BugReport;
import com.deepclone.lw.cmd.bt.data.BugStatus;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
+import com.deepclone.lw.session.API;
@@ -14,7 +15,7 @@ public class ListBugsResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BugStatus status;
private final boolean ownOnly;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/PostCommentResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/PostCommentResponse.java
index 2c7c353..97af985 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/PostCommentResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/PostCommentResponse.java
@@ -7,6 +7,7 @@ import com.deepclone.lw.cmd.ObjectNameError;
import com.deepclone.lw.cmd.bt.data.BugEvent;
import com.deepclone.lw.cmd.bt.data.BugReport;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
+import com.deepclone.lw.session.API;
@@ -14,7 +15,7 @@ public class PostCommentResponse
extends ViewBugResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean posted;
private final ObjectNameError commentError;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ReportBugResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ReportBugResponse.java
index 6fb47c9..c5657cb 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ReportBugResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ReportBugResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.bt;
import com.deepclone.lw.cmd.ObjectNameError;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class ReportBugResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long bugId;
private final ObjectNameError titleError;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ViewBugResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ViewBugResponse.java
index 0f487c5..a7d18f3 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ViewBugResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/bt/ViewBugResponse.java
@@ -7,6 +7,7 @@ import com.deepclone.lw.cmd.bt.data.BugEvent;
import com.deepclone.lw.cmd.bt.data.BugReport;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
+import com.deepclone.lw.session.API;
@@ -14,7 +15,7 @@ public class ViewBugResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BugReport report;
private final List< BugEvent > events;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/AddEnemyCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/AddEnemyCommand.java
index f4342b2..5ee13fd 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/AddEnemyCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/AddEnemyCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.elist;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class AddEnemyCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean alliance;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/AddEnemyResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/AddEnemyResponse.java
index 0e3e7e2..99f369f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/AddEnemyResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/AddEnemyResponse.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.ObjectNameError;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class AddEnemyResponse
extends EnemyListResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final ObjectNameError error;
private final boolean alliance;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/EnemyListCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/EnemyListCommand.java
index d72bf7d..c8e85a1 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/EnemyListCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/EnemyListCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.elist;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class EnemyListCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/EnemyListResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/EnemyListResponse.java
index 85ebd0d..8abccc6 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/EnemyListResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/EnemyListResponse.java
@@ -6,13 +6,14 @@ import java.util.List;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
+import com.deepclone.lw.session.API;
public class EnemyListResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< NameIdPair > empires;
private final List< NameIdPair > alliances;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/RemoveEnemiesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/RemoveEnemiesCommand.java
index 9a3ffbe..617ea27 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/RemoveEnemiesCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/elist/RemoveEnemiesCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.elist;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class RemoveEnemiesCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean alliance;
private final int[] identifiers;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/DisbandFleetsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/DisbandFleetsCommand.java
index 4ac3589..a61e613 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/DisbandFleetsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/DisbandFleetsCommand.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.fleets;
+import com.deepclone.lw.session.API;
+
public class DisbandFleetsCommand
extends MultiFleetsCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean confirm;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/DisbandFleetsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/DisbandFleetsResponse.java
index 9eace3b..ec51c4b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/DisbandFleetsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/DisbandFleetsResponse.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player.fleets;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
+import com.deepclone.lw.session.API;
@@ -9,7 +10,7 @@ public class DisbandFleetsResponse
extends MultiFleetsResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public DisbandFleetsResponse( GamePageData page )
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MergeFleetsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MergeFleetsCommand.java
index f5029ce..24ba678 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MergeFleetsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MergeFleetsCommand.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.fleets;
+import com.deepclone.lw.session.API;
+
public class MergeFleetsCommand
extends MultiFleetsCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public MergeFleetsCommand( long[] fleets )
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MergeFleetsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MergeFleetsResponse.java
index f0e92a5..642dde5 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MergeFleetsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MergeFleetsResponse.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player.fleets;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
+import com.deepclone.lw.session.API;
@@ -9,7 +10,7 @@ public class MergeFleetsResponse
extends MultiFleetsResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public MergeFleetsResponse( GamePageData page )
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MoveFleetsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MoveFleetsCommand.java
index 1efee46..8a8c811 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MoveFleetsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MoveFleetsCommand.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.fleets;
+import com.deepclone.lw.session.API;
+
public class MoveFleetsCommand
extends MultiFleetsCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String destination;
private final Boolean mode;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MoveFleetsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MoveFleetsResponse.java
index e524398..77f9631 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MoveFleetsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MoveFleetsResponse.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player.fleets;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
+import com.deepclone.lw.session.API;
@@ -9,7 +10,7 @@ public class MoveFleetsResponse
extends MultiFleetsResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private boolean error;
private String destination;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MultiFleetsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MultiFleetsCommand.java
index 4ebc86c..ef11bda 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MultiFleetsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MultiFleetsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.fleets;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -8,7 +9,7 @@ import com.deepclone.lw.session.Command;
public abstract class MultiFleetsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long fleets[];
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MultiFleetsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MultiFleetsResponse.java
index 3728e18..a7bea2b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MultiFleetsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/MultiFleetsResponse.java
@@ -7,6 +7,7 @@ import java.util.List;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.fleets.ShortFleetView;
+import com.deepclone.lw.session.API;
@@ -14,7 +15,7 @@ public abstract class MultiFleetsResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< ShortFleetView > fleets = new LinkedList< ShortFleetView >( );
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/RenameFleetsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/RenameFleetsCommand.java
index 95393e6..1dd1331 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/RenameFleetsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/RenameFleetsCommand.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.fleets;
+import com.deepclone.lw.session.API;
+
public class RenameFleetsCommand
extends MultiFleetsCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean rename;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/RenameFleetsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/RenameFleetsResponse.java
index e20a569..d5b792d 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/RenameFleetsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/RenameFleetsResponse.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player.fleets;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
+import com.deepclone.lw.session.API;
@@ -9,7 +10,7 @@ public class RenameFleetsResponse
extends MultiFleetsResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private boolean error;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SetFleetsModeCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SetFleetsModeCommand.java
index 3f44ab3..4a253bd 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SetFleetsModeCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SetFleetsModeCommand.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.fleets;
+import com.deepclone.lw.session.API;
+
public class SetFleetsModeCommand
extends MultiFleetsCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean attack;
private final boolean confirm;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SetFleetsModeResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SetFleetsModeResponse.java
index edf245c..bc515ef 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SetFleetsModeResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SetFleetsModeResponse.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player.fleets;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
+import com.deepclone.lw.session.API;
@@ -9,7 +10,7 @@ public class SetFleetsModeResponse
extends MultiFleetsResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private boolean attack;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SplitFleetCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SplitFleetCommand.java
index 686a3c2..dbdbacd 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SplitFleetCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SplitFleetCommand.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.player.fleets;
import java.util.Map;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -11,7 +12,7 @@ public class SplitFleetCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long fleet;
private final Map< Integer , Integer > ships;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SplitFleetResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SplitFleetResponse.java
index 6351066..c59f9d2 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SplitFleetResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/SplitFleetResponse.java
@@ -8,6 +8,7 @@ import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.fleets.ShortFleetView;
import com.deepclone.lw.cmd.player.gdata.fleets.SplitShips;
+import com.deepclone.lw.session.API;
@@ -15,7 +16,7 @@ public class SplitFleetResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private ShortFleetView initialFleet;
private final List< SplitShips > ships = new LinkedList< SplitShips >( );
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/ViewFleetsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/ViewFleetsCommand.java
index 67f33d3..ab631d1 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/ViewFleetsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/ViewFleetsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.fleets;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class ViewFleetsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/ViewFleetsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/ViewFleetsResponse.java
index d1c6484..2b53ce4 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/ViewFleetsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/fleets/ViewFleetsResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.fleets;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.fleets.FleetsView;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class ViewFleetsResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final FleetsView fleets;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GamePageData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GamePageData.java
index 82e1767..16fdf2c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GamePageData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GamePageData.java
@@ -6,13 +6,15 @@ import java.util.Collections;
import java.util.Date;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class GamePageData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String empire;
private final Character special;
private final String alliance;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GameResponseBase.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GameResponseBase.java
index f535b9d..45de365 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GameResponseBase.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GameResponseBase.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.gdata;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.CommandResponse;
@@ -9,7 +10,7 @@ public abstract class GameResponseBase
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final GamePageData page;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GameTime.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GameTime.java
index ac2c9b1..9aa4302 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GameTime.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/GameTime.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class GameTime
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int years;
private final int weeks;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/NameIdPair.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/NameIdPair.java
index 4bea9e4..11010d0 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/NameIdPair.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/NameIdPair.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class NameIdPair
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/PlanetListData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/PlanetListData.java
index 27c4571..4a1bf05 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/PlanetListData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/PlanetListData.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class PlanetListData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int id;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/PlanetReference.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/PlanetReference.java
index fb111b3..277ff4f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/PlanetReference.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/PlanetReference.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class PlanetReference
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long identifier;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/ShortBattleView.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/ShortBattleView.java
index 111f17e..92ad295 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/ShortBattleView.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/ShortBattleView.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class ShortBattleView
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long id;
private long friendly;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/TimeCombo.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/TimeCombo.java
index 4f180d2..891da10 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/TimeCombo.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/TimeCombo.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class TimeCombo
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long ticks;
private GameTime gameTime;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/AccountData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/AccountData.java
index 8b94e01..8027ffa 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/AccountData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/AccountData.java
@@ -8,6 +8,7 @@ import java.util.List;
import com.deepclone.lw.cmd.ext.ListLanguagesResponse;
import com.deepclone.lw.cmd.player.gdata.GameTime;
+import com.deepclone.lw.session.API;
@@ -15,7 +16,7 @@ public class AccountData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String address;
private int gameCredits;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/MailChangeData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/MailChangeData.java
index 65957a1..f930ae4 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/MailChangeData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/MailChangeData.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.player.gdata.account;
import java.io.Serializable;
import java.sql.Timestamp;
+import com.deepclone.lw.session.API;
+
public class MailChangeData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Timestamp until;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefCategory.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefCategory.java
index 6641104..0c4591b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefCategory.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefCategory.java
@@ -5,13 +5,15 @@ import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class PrefCategory
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String name;
private List< PrefValue > preferences = new LinkedList< PrefValue >( );
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefChoice.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefChoice.java
index fe45669..54d9b83 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefChoice.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefChoice.java
@@ -3,12 +3,14 @@ package com.deepclone.lw.cmd.player.gdata.account;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class PrefChoice
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String value;
private String display;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefValue.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefValue.java
index 1ed93ed..a8b598a 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefValue.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/account/PrefValue.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.player.gdata.account;
import java.io.Serializable;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class PrefValue
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String id;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceCreationStatus.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceCreationStatus.java
index 241b5a3..19b52a2 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceCreationStatus.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceCreationStatus.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.gdata.alliance;
import java.io.Serializable;
import com.deepclone.lw.cmd.ObjectNameError;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class AllianceCreationStatus
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String tag;
private final ObjectNameError tagError;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceData.java
index 08b670c..442e7ce 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceData.java
@@ -3,6 +3,8 @@ package com.deepclone.lw.cmd.player.gdata.alliance;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
@@ -10,7 +12,7 @@ public class AllianceData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final PublicAllianceInformation main;
private final AllianceMemberData member;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceLeaderData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceLeaderData.java
index a5293df..fda58ba 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceLeaderData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceLeaderData.java
@@ -5,6 +5,7 @@ import java.io.Serializable;
import java.util.List;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class AllianceLeaderData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< NameIdPair > requests;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceMemberData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceMemberData.java
index 48f35a3..ac147a8 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceMemberData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AllianceMemberData.java
@@ -5,6 +5,7 @@ import java.io.Serializable;
import java.util.List;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class AllianceMemberData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< NameIdPair > members;
private final List< AlliancePlanetData > planets;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AlliancePlanetData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AlliancePlanetData.java
index a17aa8a..b0acb87 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AlliancePlanetData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/AlliancePlanetData.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata.alliance;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class AlliancePlanetData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int id;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/PublicAllianceInformation.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/PublicAllianceInformation.java
index 76463c1..ebee786 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/PublicAllianceInformation.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/alliance/PublicAllianceInformation.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata.alliance;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class PublicAllianceInformation
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int id;
private final String tag;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleDescription.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleDescription.java
index 22eed1e..80b8217 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleDescription.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleDescription.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.gdata.battles;
import java.io.Serializable;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class BattleDescription
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long id;
private NameIdPair location;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleDisplay.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleDisplay.java
index e6d94d0..4e1ea82 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleDisplay.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleDisplay.java
@@ -6,6 +6,7 @@ import java.util.LinkedList;
import java.util.List;
import com.deepclone.lw.cmd.player.gdata.TimeCombo;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class BattleDisplay
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private TimeCombo current;
private TimeCombo previous;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleEvent.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleEvent.java
index 6e99a05..340be4b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleEvent.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleEvent.java
@@ -5,13 +5,15 @@ import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class BattleEvent
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private BattleEventType type;
private boolean planet;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleHistoryInterval.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleHistoryInterval.java
index 7c15e5e..c2f5be5 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleHistoryInterval.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleHistoryInterval.java
@@ -6,6 +6,7 @@ import java.util.LinkedList;
import java.util.List;
import com.deepclone.lw.cmd.player.gdata.TimeCombo;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class BattleHistoryInterval
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private TimeCombo begin;
private boolean battleBegins;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleHistoryTick.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleHistoryTick.java
index 526de4f..12929fe 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleHistoryTick.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleHistoryTick.java
@@ -6,6 +6,7 @@ import java.util.LinkedList;
import java.util.List;
import com.deepclone.lw.cmd.player.gdata.TimeCombo;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class BattleHistoryTick
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final TimeCombo time;
private final List< BattleEvent > events = new LinkedList< BattleEvent >( );
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleListEntry.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleListEntry.java
index aca40ad..fddda87 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleListEntry.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleListEntry.java
@@ -5,6 +5,7 @@ import java.io.Serializable;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
import com.deepclone.lw.cmd.player.gdata.TimeCombo;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class BattleListEntry
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long id;
private NameIdPair location;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattlePlanetBuildings.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattlePlanetBuildings.java
index d416dd1..2fc4cbe 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattlePlanetBuildings.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattlePlanetBuildings.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player.gdata.battles;
import com.deepclone.lw.cmd.player.gdata.PlanetRelationType;
+import com.deepclone.lw.session.API;
@@ -9,7 +10,7 @@ public class BattlePlanetBuildings
extends BattleShipsList
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private PlanetRelationType relation;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattlePlayerShips.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattlePlayerShips.java
index af042d8..66b2c38 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattlePlayerShips.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattlePlayerShips.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player.gdata.battles;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
+import com.deepclone.lw.session.API;
@@ -9,7 +10,7 @@ public class BattlePlayerShips
extends BattleShipsList
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private NameIdPair player;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipType.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipType.java
index 3133440..65d5129 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipType.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipType.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata.battles;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class BattleShipType
implements Serializable , Comparable< BattleShipType >
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String name;
private long cAmount;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipsList.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipsList.java
index 389771b..922d4c4 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipsList.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipsList.java
@@ -5,13 +5,15 @@ import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public abstract class BattleShipsList
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
protected List< BattleShipType > ships = new LinkedList< BattleShipType >( );
protected long cPower = 0;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipsView.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipsView.java
index d38d726..bd7f6f2 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipsView.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleShipsView.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata.battles;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class BattleShipsView
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final BattlePlayerShips own = new BattlePlayerShips( );
private final BattleSideShips friendly = new BattleSideShips( false );
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleSideShips.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleSideShips.java
index 6dca7ad..613069f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleSideShips.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleSideShips.java
@@ -5,13 +5,15 @@ import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class BattleSideShips
extends BattleShipsList
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean hostile;
private final List< BattlePlayerShips > players = new LinkedList< BattlePlayerShips >( );
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleView.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleView.java
index c9fc728..31acef8 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleView.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/battles/BattleView.java
@@ -5,13 +5,15 @@ import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class BattleView
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private BattleDescription description;
private BattleDisplay display;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/OverviewData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/OverviewData.java
index d82cc66..fabcfad 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/OverviewData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/OverviewData.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata.empire;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class OverviewData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long planets;
private int newMessages;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/ResearchData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/ResearchData.java
new file mode 100644
index 0000000..5af296b
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/ResearchData.java
@@ -0,0 +1,224 @@
+package com.deepclone.lw.cmd.player.gdata.empire;
+
+
+import java.io.Serializable;
+
+import com.deepclone.lw.session.API;
+
+
+
+public class ResearchData
+ implements Serializable , Comparable< ResearchData >
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ private final String identifier;
+
+ private int completion;
+
+ private String category;
+ private String name;
+ private String description;
+
+ private Integer priority;
+ private Integer cost;
+
+ private String[] dependsOn;
+
+
+ /**
+ * Create a research data record for a technology that hasn't been identified yet.
+ *
+ * @param numericId
+ * numeric identifier of the technology
+ * @param category
+ * name of the category the technology belongs to
+ * @param completion
+ * completion percentage
+ * @param priority
+ * research priority
+ */
+ public ResearchData( int numericId , String category , int completion , int priority )
+ {
+ this.identifier = "unknown-" + numericId;
+ this.completion = completion;
+ this.priority = priority;
+ this.category = category;
+ this.name = null;
+ this.description = null;
+ this.cost = null;
+ this.dependsOn = null;
+ }
+
+
+ /**
+ * Create a research data record for an identified technology that is still being researched.
+ *
+ * @param identifier
+ * technology identifier
+ * @param category
+ * name of the category the technology belongs to
+ * @param name
+ * name of the technology
+ * @param description
+ * description of the technology
+ * @param dependsOn
+ * identifiers of the technologies this technology depends on
+ * @param completion
+ * completion percentage
+ * @param priority
+ * research priority
+ */
+ public ResearchData( String identifier , String category , String name , String description , String[] dependsOn ,
+ int completion , int priority )
+ {
+ this.identifier = identifier;
+ this.category = category;
+ this.name = name;
+ this.description = description;
+ this.dependsOn = dependsOn.clone( );
+ this.completion = completion;
+ this.priority = priority;
+ this.cost = null;
+ }
+
+
+ /**
+ * Create a research data record for a technology that needs to be implemented.
+ *
+ * @param identifier
+ * technology identifier
+ * @param category
+ * name of the category the technology belongs to
+ * @param name
+ * name of the technology
+ * @param description
+ * description of the technology
+ * @param dependsOn
+ * identifiers of the technologies this technology depends on
+ * @param cost
+ * research priority
+ */
+ public ResearchData( String identifier , String category , String name , String description , String[] dependsOn ,
+ int cost )
+ {
+ this.identifier = identifier;
+ this.category = category;
+ this.name = name;
+ this.description = description;
+ this.dependsOn = dependsOn.clone( );
+ this.completion = 100;
+ this.priority = null;
+ this.cost = cost;
+ }
+
+
+ @Override
+ public int compareTo( ResearchData o )
+ {
+ if ( this.cost != null && o.cost == null ) {
+ return -1;
+ } else if ( this.cost == null && o.cost != null ) {
+ return 1;
+ } else if ( this.name != null && o.name != null ) {
+ return this.name.compareTo( o.name );
+ } else if ( this.name != null ) {
+ return -1;
+ } else if ( o.name != null ) {
+ return 1;
+ }
+ return this.identifier.compareTo( o.identifier );
+ }
+
+
+ public int getCompletion( )
+ {
+ return completion;
+ }
+
+
+ public void setCompletion( int completion )
+ {
+ this.completion = completion;
+ }
+
+
+ public String getCategory( )
+ {
+ return category;
+ }
+
+
+ public void setCategory( String category )
+ {
+ this.category = category;
+ }
+
+
+ public String getName( )
+ {
+ return name;
+ }
+
+
+ public void setName( String name )
+ {
+ this.name = name;
+ }
+
+
+ public String getDescription( )
+ {
+ return description;
+ }
+
+
+ public void setDescription( String description )
+ {
+ this.description = description;
+ }
+
+
+ public Integer getPriority( )
+ {
+ return priority;
+ }
+
+
+ public void setPriority( Integer priority )
+ {
+ this.priority = priority;
+ }
+
+
+ public Integer getCost( )
+ {
+ return cost;
+ }
+
+
+ public void setCost( Integer cost )
+ {
+ this.cost = cost;
+ }
+
+
+ public String[] getDependsOn( )
+ {
+ return dependsOn;
+ }
+
+
+ public void setDependsOn( String[] dependsOn )
+ {
+ this.dependsOn = dependsOn;
+ }
+
+
+ public String getIdentifier( )
+ {
+ return identifier;
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/ResearchLineData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/ResearchLineData.java
deleted file mode 100644
index a48f027..0000000
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/ResearchLineData.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package com.deepclone.lw.cmd.player.gdata.empire;
-
-
-import java.io.Serializable;
-import java.util.Collections;
-import java.util.List;
-
-
-
-public class ResearchLineData
- implements Serializable , Comparable< ResearchLineData >
-{
-
- private static final long serialVersionUID = 1L;
-
- private final long id;
- private final String name;
- private final String description;
- private final List< TechnologyData > implemented;
- private final TechnologyData current;
-
-
- public ResearchLineData( long id , String name , String description , List< TechnologyData > implemented ,
- TechnologyData current )
- {
- this.id = id;
- this.name = name;
- this.description = description;
- this.implemented = Collections.unmodifiableList( implemented );
- this.current = current;
- }
-
-
- @Override
- public int compareTo( ResearchLineData other )
- {
- return this.name.compareTo( other.name );
- }
-
-
- public long getId( )
- {
- return id;
- }
-
-
- public String getName( )
- {
- return name;
- }
-
-
- public String getDescription( )
- {
- return description;
- }
-
-
- public List< TechnologyData > getImplemented( )
- {
- return implemented;
- }
-
-
- public TechnologyData getCurrent( )
- {
- return current;
- }
-
-}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/TechnologyCategoryData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/TechnologyCategoryData.java
new file mode 100644
index 0000000..67d3dc1
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/TechnologyCategoryData.java
@@ -0,0 +1,55 @@
+package com.deepclone.lw.cmd.player.gdata.empire;
+
+
+import java.io.Serializable;
+import java.util.LinkedList;
+import java.util.List;
+
+import com.deepclone.lw.session.API;
+
+
+
+public class TechnologyCategoryData
+ implements Serializable , Comparable< TechnologyCategoryData >
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ private final String name;
+ private final String description;
+ private final List< TechnologyData > technologies;
+
+
+ public TechnologyCategoryData( String name , String description , List< TechnologyData > technologies )
+ {
+ this.name = name;
+ this.description = description;
+ this.technologies = new LinkedList< TechnologyData >( technologies );
+ }
+
+
+ public String getName( )
+ {
+ return this.name;
+ }
+
+
+ public String getDescription( )
+ {
+ return this.description;
+ }
+
+
+ public List< TechnologyData > getTechnologies( )
+ {
+ return this.technologies;
+ }
+
+
+ @Override
+ public int compareTo( TechnologyCategoryData o )
+ {
+ return this.name.compareTo( o.name );
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/TechnologyData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/TechnologyData.java
index 7ea35f0..a598f72 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/TechnologyData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/empire/TechnologyData.java
@@ -2,69 +2,71 @@ package com.deepclone.lw.cmd.player.gdata.empire;
import java.io.Serializable;
+import java.util.List;
+
+import com.deepclone.lw.session.API;
public class TechnologyData
- implements Serializable
+ implements Serializable , Comparable< TechnologyData >
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
+ private final String identifier;
private final String name;
private final String description;
- private final Integer researched;
- private final Long cost;
+
+ private final List< String > dependsOn;
+ private final List< String > dependencyOf;
- public TechnologyData( String name , String description )
+ public TechnologyData( String identifier , String name , String description , List< String > dependsOn ,
+ List< String > dependencyOf )
{
+ this.identifier = identifier;
this.name = name;
this.description = description;
- this.researched = null;
- this.cost = null;
+ this.dependsOn = dependsOn;
+ this.dependencyOf = dependencyOf;
}
- public TechnologyData( String name , String description , int researched )
+ public String getIdentifier( )
{
- this.name = name;
- this.description = description;
- this.researched = researched;
- this.cost = null;
- }
-
-
- public TechnologyData( String name , String description , int researched , long cost )
- {
- this.name = name;
- this.description = description;
- this.researched = researched;
- this.cost = cost;
+ return this.identifier;
}
public String getName( )
{
- return name;
+ return this.name;
}
public String getDescription( )
{
- return description;
+ return this.description;
}
- public Integer getResearched( )
+ public List< String > getDependsOn( )
{
- return researched;
+ return this.dependsOn;
}
- public Long getCost( )
+ public List< String > getDependencyOf( )
{
- return cost;
+ return this.dependencyOf;
+ }
+
+
+ @Override
+ public int compareTo( TechnologyData o )
+ {
+ return this.name.compareTo( o.name );
}
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetLocation.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetLocation.java
index 464936b..b3e259b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetLocation.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetLocation.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
import com.deepclone.lw.cmd.player.gdata.ShortBattleView;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class FleetLocation
extends NameIdPair
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private boolean own;
private boolean attacking;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetOwner.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetOwner.java
index 2653142..d88bfed 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetOwner.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetOwner.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
import com.deepclone.lw.cmd.player.gdata.PlanetRelationType;
+import com.deepclone.lw.session.API;
@@ -15,7 +16,7 @@ public class FleetOwner
extends NameIdPair
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final PlanetRelationType relation;
private final List< StaticFleet > fleets = new LinkedList< StaticFleet >( );
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetShips.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetShips.java
index a29a8a6..074a691 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetShips.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetShips.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata.fleets;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class FleetShips
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int type;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetsView.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetsView.java
index dc16fe4..3fbeed6 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetsView.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/FleetsView.java
@@ -5,13 +5,15 @@ import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class FleetsView
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< FleetLocation > locations = new LinkedList< FleetLocation >( );
private final List< MovingFleet > moving = new LinkedList< MovingFleet >( );
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/MovingFleet.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/MovingFleet.java
index e37a38f..3bc0311 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/MovingFleet.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/MovingFleet.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.player.gdata.fleets;
import com.deepclone.lw.cmd.player.gdata.GameTime;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class MovingFleet
extends StaticFleet
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long timeLeft;
private boolean attacking;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/ShortFleetView.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/ShortFleetView.java
index a19833a..4f273bd 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/ShortFleetView.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/ShortFleetView.java
@@ -3,6 +3,7 @@ package com.deepclone.lw.cmd.player.gdata.fleets;
import com.deepclone.lw.cmd.player.gdata.GameTime;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
+import com.deepclone.lw.session.API;
@@ -10,7 +11,7 @@ public class ShortFleetView
extends NameIdPair
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int flightTime;
private GameTime gameFlightTime;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/SplitShips.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/SplitShips.java
index b464387..f36a872 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/SplitShips.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/SplitShips.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.gdata.fleets;
+import com.deepclone.lw.session.API;
+
public class SplitShips
extends FleetShips
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int id;
private int selectedAmount = 0;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/StaticFleet.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/StaticFleet.java
index 32d9ac9..d07362d 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/StaticFleet.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/fleets/StaticFleet.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.player.gdata.GameTime;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class StaticFleet
extends NameIdPair
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private FleetStatus status;
private long penalty;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/map/MapPlanetData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/map/MapPlanetData.java
index 8a04d19..783db11 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/map/MapPlanetData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/map/MapPlanetData.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.gdata.map;
import java.io.Serializable;
import com.deepclone.lw.cmd.player.gdata.PlanetRelationType;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class MapPlanetData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final long id;
private final int picture;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/map/MapSystemData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/map/MapSystemData.java
index db7a54a..c9c9f7d 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/map/MapSystemData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/map/MapSystemData.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata.map;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class MapSystemData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final MapPlanetData planets[] = new MapPlanetData[ 5 ];
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableBuildingData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableBuildingData.java
index 34c5ce6..25ce6f7 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableBuildingData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableBuildingData.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.gdata.planets;
+import com.deepclone.lw.session.API;
+
public class BuildableBuildingData
extends BuildableItemData
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int workers;
private String prodType;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableItemData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableItemData.java
index 5ae878e..32ab59d 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableItemData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableItemData.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.gdata.planets;
import java.io.Serializable;
import com.deepclone.lw.cmd.player.gdata.GameTime;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public abstract class BuildableItemData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int id;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableShipData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableShipData.java
index 99c6d5b..6277e0f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableShipData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildableShipData.java
@@ -1,13 +1,14 @@
package com.deepclone.lw.cmd.player.gdata.planets;
import com.deepclone.lw.cmd.player.gdata.GameTime;
+import com.deepclone.lw.session.API;
public class BuildableShipData
extends BuildableItemData
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int power;
private int flightTime;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildingData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildingData.java
index 7647c24..c62df08 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildingData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/BuildingData.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata.planets;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class BuildingData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private Integer id;
private String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/OwnPlanetStatusData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/OwnPlanetStatusData.java
index 6013826..34bc000 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/OwnPlanetStatusData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/OwnPlanetStatusData.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.gdata.planets;
import java.io.Serializable;
import com.deepclone.lw.cmd.player.gdata.GameTime;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class OwnPlanetStatusData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private boolean abandonPossible;
private boolean renamePossible;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetBasicView.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetBasicView.java
index 31de86e..2e9adb4 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetBasicView.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetBasicView.java
@@ -3,13 +3,15 @@ package com.deepclone.lw.cmd.player.gdata.planets;
import java.io.Serializable;
+import com.deepclone.lw.session.API;
+
public class PlanetBasicView
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String name;
private final int picture;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetOrbitalView.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetOrbitalView.java
index 5992b9c..fc48a1d 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetOrbitalView.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetOrbitalView.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.player.gdata.planets;
import java.io.Serializable;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class PlanetOrbitalView
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private long population;
private long defencePoints;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetOwnView.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetOwnView.java
index a567a8e..b61f708 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetOwnView.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/PlanetOwnView.java
@@ -4,13 +4,15 @@ package com.deepclone.lw.cmd.player.gdata.planets;
import java.io.Serializable;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class PlanetOwnView
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private int happiness;
private int hChange;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/QueueData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/QueueData.java
index 8aad730..90f4610 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/QueueData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/QueueData.java
@@ -5,13 +5,15 @@ import java.io.Serializable;
import java.util.Collections;
import java.util.List;
+import com.deepclone.lw.session.API;
+
public class QueueData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean appendPossible;
private final List< QueueItemData > items;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/QueueItemData.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/QueueItemData.java
index a1000df..7de850f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/QueueItemData.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/gdata/planets/QueueItemData.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.gdata.planets;
import java.io.Serializable;
import com.deepclone.lw.cmd.player.gdata.GameTime;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class QueueItemData
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private String name;
private String description;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ComposeMessageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ComposeMessageCommand.java
index 8d7a441..d655d6b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ComposeMessageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ComposeMessageCommand.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player.msgs;
import com.deepclone.lw.cmd.msgdata.MessageType;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -10,7 +11,7 @@ public class ComposeMessageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Boolean inbox;
private final Long replyTo;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ComposeMessageResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ComposeMessageResponse.java
index 45b95c0..f9b82b2 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ComposeMessageResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ComposeMessageResponse.java
@@ -5,6 +5,7 @@ import com.deepclone.lw.cmd.msgdata.Message;
import com.deepclone.lw.cmd.msgdata.MessageType;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class ComposeMessageResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private MessageType messageType;
private String target;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/GetMessagesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/GetMessagesCommand.java
index 92d24ef..3accf00 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/GetMessagesCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/GetMessagesCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.msgs;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class GetMessagesCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean inbox;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/GetMessagesResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/GetMessagesResponse.java
index 09025bc..94b67a7 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/GetMessagesResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/GetMessagesResponse.java
@@ -6,6 +6,7 @@ import java.util.List;
import com.deepclone.lw.cmd.msgdata.MessageListEntry;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class GetMessagesResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< MessageListEntry > messages;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ListTargetsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ListTargetsCommand.java
index 9809a62..5974e5b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ListTargetsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ListTargetsCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.msgs;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,6 +10,6 @@ public class ListTargetsCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ListTargetsResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ListTargetsResponse.java
index 28aa092..6c5fd7f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ListTargetsResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ListTargetsResponse.java
@@ -8,6 +8,7 @@ import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.NameIdPair;
import com.deepclone.lw.cmd.player.gdata.alliance.PublicAllianceInformation;
+import com.deepclone.lw.session.API;
@@ -15,7 +16,7 @@ public class ListTargetsResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final List< NameIdPair > empires;
private final List< PublicAllianceInformation > alliances;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/MessageBoxCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/MessageBoxCommand.java
index 757cd99..8891e05 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/MessageBoxCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/MessageBoxCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.msgs;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class MessageBoxCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final MessageBoxAction action;
private final boolean inbox;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/PrepareMessageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/PrepareMessageCommand.java
index 3abe09e..c6ce810 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/PrepareMessageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/PrepareMessageCommand.java
@@ -2,6 +2,7 @@ package com.deepclone.lw.cmd.player.msgs;
import com.deepclone.lw.cmd.msgdata.MessageType;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -10,7 +11,7 @@ public class PrepareMessageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final MessageType type;
private final Long id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ReadMessageCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ReadMessageCommand.java
index 1656175..e1bd6fc 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ReadMessageCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ReadMessageCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.msgs;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ReadMessageCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean inbox;
private final long id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ReadMessageResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ReadMessageResponse.java
index 436de68..fe110a9 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ReadMessageResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/msgs/ReadMessageResponse.java
@@ -4,6 +4,7 @@ package com.deepclone.lw.cmd.player.msgs;
import com.deepclone.lw.cmd.msgdata.Message;
import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
+import com.deepclone.lw.session.API;
@@ -11,7 +12,7 @@ public class ReadMessageResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean inbox;
private final Message message;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/AbandonPlanetCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/AbandonPlanetCommand.java
index 34711e2..149fd04 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/AbandonPlanetCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/AbandonPlanetCommand.java
@@ -1,10 +1,12 @@
package com.deepclone.lw.cmd.player.planets;
+import com.deepclone.lw.session.API;
+
public class AbandonPlanetCommand
extends ViewPlanetCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean cancel;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildShipsCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildShipsCommand.java
index 62d8521..12c159b 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildShipsCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildShipsCommand.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.planets;
+import com.deepclone.lw.session.API;
+
public class BuildShipsCommand
extends ViewPlanetCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int sType;
private final int amount;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildingActionCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildingActionCommand.java
index 4d7ec2b..53e985e 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildingActionCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildingActionCommand.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.planets;
+import com.deepclone.lw.session.API;
+
public class BuildingActionCommand
extends ViewPlanetCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int bType;
private final int amount;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildingActionResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildingActionResponse.java
index 86a4daf..c1a30b8 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildingActionResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/BuildingActionResponse.java
@@ -5,6 +5,7 @@ import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetBasicView;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetOrbitalView;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetOwnView;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class BuildingActionResponse
extends ViewPlanetResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean destructionFailed;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/FlushQueueCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/FlushQueueCommand.java
index d2e1b08..5a456e0 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/FlushQueueCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/FlushQueueCommand.java
@@ -1,10 +1,12 @@
package com.deepclone.lw.cmd.player.planets;
+import com.deepclone.lw.session.API;
+
public class FlushQueueCommand
extends ViewPlanetCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final boolean military;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/RenamePlanetCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/RenamePlanetCommand.java
index 09a586d..d0153ce 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/RenamePlanetCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/RenamePlanetCommand.java
@@ -1,11 +1,13 @@
package com.deepclone.lw.cmd.player.planets;
+import com.deepclone.lw.session.API;
+
public class RenamePlanetCommand
extends ViewPlanetCommand
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String name;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/RenamePlanetResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/RenamePlanetResponse.java
index 9073eb6..52b65e0 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/RenamePlanetResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/RenamePlanetResponse.java
@@ -5,6 +5,7 @@ import com.deepclone.lw.cmd.player.gdata.GamePageData;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetBasicView;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetOrbitalView;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetOwnView;
+import com.deepclone.lw.session.API;
@@ -12,7 +13,7 @@ public class RenamePlanetResponse
extends ViewPlanetResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final String renamingTo;
private final String renameError;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/ViewPlanetCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/ViewPlanetCommand.java
index b3d1137..c4c7a6f 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/ViewPlanetCommand.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/ViewPlanetCommand.java
@@ -1,6 +1,7 @@
package com.deepclone.lw.cmd.player.planets;
+import com.deepclone.lw.session.API;
import com.deepclone.lw.session.Command;
@@ -9,7 +10,7 @@ public class ViewPlanetCommand
extends Command
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final int id;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/ViewPlanetResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/ViewPlanetResponse.java
index 6761652..03c4810 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/ViewPlanetResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/planets/ViewPlanetResponse.java
@@ -6,6 +6,7 @@ import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetBasicView;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetOrbitalView;
import com.deepclone.lw.cmd.player.gdata.planets.PlanetOwnView;
+import com.deepclone.lw.session.API;
@@ -13,7 +14,7 @@ public class ViewPlanetResponse
extends GameResponseBase
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private final Integer id;
private final boolean ownershipError;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ImplementTechCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ImplementTechCommand.java
new file mode 100644
index 0000000..d5187ac
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ImplementTechCommand.java
@@ -0,0 +1,29 @@
+package com.deepclone.lw.cmd.player.research;
+
+
+import com.deepclone.lw.session.API;
+import com.deepclone.lw.session.Command;
+
+
+
+public class ImplementTechCommand
+ extends Command
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ private final String tech;
+
+
+ public ImplementTechCommand( String tech )
+ {
+ this.tech = tech;
+ }
+
+
+ public String getTech( )
+ {
+ return tech;
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ResearchOperationResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ResearchOperationResponse.java
new file mode 100644
index 0000000..9be7842
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ResearchOperationResponse.java
@@ -0,0 +1,87 @@
+package com.deepclone.lw.cmd.player.research;
+
+
+import java.util.ArrayList;
+import java.util.List;
+
+import com.deepclone.lw.cmd.player.gdata.GamePageData;
+import com.deepclone.lw.cmd.player.gdata.empire.ResearchData;
+import com.deepclone.lw.cmd.player.gdata.empire.TechnologyCategoryData;
+import com.deepclone.lw.session.API;
+
+
+
+/**
+ * Response to a research operation ({@link SetResearchPrioritiesCommand} or
+ * {@link ImplementTechCommand}). When the operation was successful, the response does not carry any
+ * actual data; when an error occurs, however, it includes the standard research view.
+ *
+ * @author tseeker
+ */
+public class ResearchOperationResponse
+ extends ViewResearchResponse
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ /**
+ * Possible results of the operation
+ */
+ public static enum Result {
+ /** The operation succeeded */
+ OK ,
+
+ /** Not enough resources (when the command was {@link ImplementTechCommand}) */
+ ERR_RESOURCES ,
+
+ /**
+ * Technology already implemented (when the command was {@link ImplementTechCommand}) or
+ * list of research topics modified (when the command was
+ * {@link SetResearchPrioritiesCommand}).
+ */
+ ERR_STATE_CHANGED ,
+
+ /** Invalid priority values (total is not 100, negative values, etc...) */
+ ERR_INVALID
+ }
+
+ /** Result of the operation */
+ private final Result result;
+
+
+ /** Create a response indicating a successful operation */
+ public ResearchOperationResponse( )
+ {
+ super( null , new ArrayList< ResearchData >( ) , new ArrayList< TechnologyCategoryData >( ) );
+ this.result = Result.OK;
+ }
+
+
+ /**
+ * Create a response indicating an error during the operation.
+ *
+ * @param page
+ * the basic page information
+ * @param research
+ * the list of research topics
+ * @param implemented
+ * the list of implemented technologies
+ * @param result
+ * the error code.
+ */
+ public ResearchOperationResponse( GamePageData page , List< ResearchData > research ,
+ List< TechnologyCategoryData > implemented , Result result )
+ {
+ super( page , research , implemented );
+ assert ( result != Result.OK );
+ this.result = result;
+ }
+
+
+ /** @return the result of the operation */
+ public Result getResult( )
+ {
+ return result;
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/SetResearchPrioritiesCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/SetResearchPrioritiesCommand.java
new file mode 100644
index 0000000..44134a7
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/SetResearchPrioritiesCommand.java
@@ -0,0 +1,32 @@
+package com.deepclone.lw.cmd.player.research;
+
+
+import java.util.HashMap;
+import java.util.Map;
+
+import com.deepclone.lw.session.API;
+import com.deepclone.lw.session.Command;
+
+
+
+public class SetResearchPrioritiesCommand
+ extends Command
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ private final Map< String , Integer > priorities;
+
+
+ public SetResearchPrioritiesCommand( Map< String , Integer > priorities )
+ {
+ this.priorities = new HashMap< String , Integer >( priorities );
+ }
+
+
+ public Map< String , Integer > getPriorities( )
+ {
+ return priorities;
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ViewResearchCommand.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ViewResearchCommand.java
new file mode 100644
index 0000000..66c8cf6
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ViewResearchCommand.java
@@ -0,0 +1,15 @@
+package com.deepclone.lw.cmd.player.research;
+
+
+import com.deepclone.lw.session.API;
+import com.deepclone.lw.session.Command;
+
+
+
+public class ViewResearchCommand
+ extends Command
+{
+
+ private static final long serialVersionUID = API.Version;
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ViewResearchResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ViewResearchResponse.java
new file mode 100644
index 0000000..c11df9d
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player/research/ViewResearchResponse.java
@@ -0,0 +1,45 @@
+package com.deepclone.lw.cmd.player.research;
+
+
+import java.util.Collections;
+import java.util.List;
+
+import com.deepclone.lw.cmd.player.gdata.GamePageData;
+import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
+import com.deepclone.lw.cmd.player.gdata.empire.ResearchData;
+import com.deepclone.lw.cmd.player.gdata.empire.TechnologyCategoryData;
+import com.deepclone.lw.session.API;
+
+
+
+public class ViewResearchResponse
+ extends GameResponseBase
+{
+
+ private static final long serialVersionUID = API.Version;
+
+ private final List< ResearchData > research;
+ private final List< TechnologyCategoryData > implementedTechnologies;
+
+
+ public ViewResearchResponse( GamePageData page , List< ResearchData > research ,
+ List< TechnologyCategoryData > implemented )
+ {
+ super( page );
+ this.research = Collections.unmodifiableList( research );
+ this.implementedTechnologies = Collections.unmodifiableList( implemented );
+ }
+
+
+ public List< ResearchData > getResearch( )
+ {
+ return this.research;
+ }
+
+
+ public List< TechnologyCategoryData > getImplementedTechnologies( )
+ {
+ return this.implementedTechnologies;
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/API.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/API.java
new file mode 100644
index 0000000..84e513e
--- /dev/null
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/API.java
@@ -0,0 +1,15 @@
+package com.deepclone.lw.session;
+
+
+public final class API
+{
+
+ public static final long Version = 0x005099002;
+
+ /* Prevent construction */
+ private API( )
+ {
+ // EMPTY
+ }
+
+}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/Command.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/Command.java
index 5733eae..419f17d 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/Command.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/Command.java
@@ -8,7 +8,7 @@ import java.io.Serializable;
public abstract class Command
implements Serializable
{
-
- private static final long serialVersionUID = 1L;
+
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/CommandResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/CommandResponse.java
index bef3cd8..f9d0eaf 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/CommandResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/CommandResponse.java
@@ -9,6 +9,6 @@ public abstract class CommandResponse
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/NullResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/NullResponse.java
index a7f44ab..19dfc94 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/NullResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/NullResponse.java
@@ -5,6 +5,6 @@ public final class NullResponse
extends CommandResponse
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
}
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionCommandException.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionCommandException.java
index bc53083..671f59c 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionCommandException.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionCommandException.java
@@ -5,7 +5,7 @@ public class SessionCommandException
extends SessionException
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public SessionCommandException( String message )
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionException.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionException.java
index 8490fb9..708fdf9 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionException.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionException.java
@@ -5,7 +5,7 @@ public abstract class SessionException
extends Exception
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
private boolean keepSession;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionIdentifierException.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionIdentifierException.java
index 4273f76..3218562 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionIdentifierException.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionIdentifierException.java
@@ -10,7 +10,7 @@ public final class SessionIdentifierException
extends SessionException
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public SessionIdentifierException( String identifier )
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionInternalException.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionInternalException.java
index 42474ee..f0b1614 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionInternalException.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionInternalException.java
@@ -10,7 +10,7 @@ public final class SessionInternalException
extends SessionException
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public SessionInternalException( boolean keep , Throwable cause )
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionReference.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionReference.java
index 4e7fb70..7605943 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionReference.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionReference.java
@@ -19,7 +19,7 @@ public final class SessionReference
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
/** String identifier of the session */
public final String identifier;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionResponse.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionResponse.java
index 6071671..2ebc3ac 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionResponse.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionResponse.java
@@ -14,7 +14,7 @@ public class SessionResponse
implements Serializable
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
/** Updated session reference */
public final SessionReference session;
diff --git a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionStateException.java b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionStateException.java
index eaa69e5..45ed6e0 100644
--- a/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionStateException.java
+++ b/legacyworlds-session/src/main/java/com/deepclone/lw/session/SessionStateException.java
@@ -10,7 +10,7 @@ public final class SessionStateException
extends SessionException
{
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = API.Version;
public SessionStateException( )
diff --git a/legacyworlds-utils/pom.xml b/legacyworlds-utils/pom.xml
index 195d0d6..cf05448 100644
--- a/legacyworlds-utils/pom.xml
+++ b/legacyworlds-utils/pom.xml
@@ -4,12 +4,12 @@
legacyworlds
com.deepclone.lw
- 5.99.1
+ 5.99.2
com.deepclone.lw
legacyworlds-utils
- 5.99.1
+ 5.99.2
Legacy Worlds common utilities
The classes in this package are used by all parts of the Legacy Worlds code.
diff --git a/legacyworlds-web/legacyworlds-web-admin/WebContent/WEB-INF/fm/types/technologies.ftl b/legacyworlds-web/legacyworlds-web-admin/WebContent/WEB-INF/fm/types/technologies.ftl
new file mode 100644
index 0000000..dd03803
--- /dev/null
+++ b/legacyworlds-web/legacyworlds-web-admin/WebContent/WEB-INF/fm/types/technologies.ftl
@@ -0,0 +1,22 @@
+<@page title="Technologies">
+ Technologies
+ <#if data.categories?size == 0>
+ No technologies have been defined.
+ <#else>
+ <#list data.categories as category>
+ - Category ${category.name?xhtml}
+ (edit)
+ <#if category.techs?size == 0>
+
- No technologies in this category.
+ <#else>
+
+ <#list category.techs as tech>
+ - ${tech?xhtml}
+ #list>
+
+ #if>
+
+
+ #list>
+ #if>
+@page>
\ No newline at end of file
diff --git a/legacyworlds-web/legacyworlds-web-admin/WebContent/WEB-INF/fm/version.ftl b/legacyworlds-web/legacyworlds-web-admin/WebContent/WEB-INF/fm/version.ftl
index c9406cf..e4abdb7 100644
--- a/legacyworlds-web/legacyworlds-web-admin/WebContent/WEB-INF/fm/version.ftl
+++ b/legacyworlds-web/legacyworlds-web-admin/WebContent/WEB-INF/fm/version.ftl
@@ -1,2 +1,2 @@
-<#macro version>Milestone 1#macro>
-<#macro full_version>Beta 6 milestone 1 (5.99.1)#macro>
\ No newline at end of file
+<#macro version>Milestone 2#macro>
+<#macro full_version>Beta 6 milestone 2 (5.99.2)#macro>
\ No newline at end of file
diff --git a/legacyworlds-web/legacyworlds-web-admin/pom.xml b/legacyworlds-web/legacyworlds-web-admin/pom.xml
index 5d1f361..824b028 100644
--- a/legacyworlds-web/legacyworlds-web-admin/pom.xml
+++ b/legacyworlds-web/legacyworlds-web-admin/pom.xml
@@ -4,12 +4,12 @@
legacyworlds-web
com.deepclone.lw
- 5.99.1
+ 5.99.2
com.deepclone.lw
legacyworlds-web-admin
- 5.99.1
+ 5.99.2
war
Legacy Worlds administration site
diff --git a/legacyworlds-web/legacyworlds-web-admin/src/main/java/com/deepclone/lw/web/admin/TechnologyPages.java b/legacyworlds-web/legacyworlds-web-admin/src/main/java/com/deepclone/lw/web/admin/TechnologyPages.java
new file mode 100644
index 0000000..ff32e08
--- /dev/null
+++ b/legacyworlds-web/legacyworlds-web-admin/src/main/java/com/deepclone/lw/web/admin/TechnologyPages.java
@@ -0,0 +1,37 @@
+package com.deepclone.lw.web.admin;
+
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import com.deepclone.lw.cmd.admin.techs.ListCategoriesResponse;
+import com.deepclone.lw.session.SessionException;
+import com.deepclone.lw.web.beans.intercept.SessionRequirement;
+import com.deepclone.lw.web.beans.session.SessionMaintenanceException;
+import com.deepclone.lw.web.beans.session.SessionServerException;
+import com.deepclone.lw.web.beans.view.PageControllerBase;
+import com.deepclone.lw.web.csess.AdminSession;
+
+
+
+@Controller
+@SessionRequirement( value = true , subType = "main" , redirectTo = "admin-session" )
+public class TechnologyPages
+ extends PageControllerBase
+{
+
+ @RequestMapping( "/techs" )
+ public String viewStatus( HttpServletRequest request , Model model )
+ throws SessionException , SessionServerException , SessionMaintenanceException
+ {
+ ListCategoriesResponse response = this.getSession( AdminSession.class , request ).getTechList( );
+ if ( !response.isPrivilegeOk( ) ) {
+ return this.redirect( "main" );
+ }
+ return this.render( model , "internal" , "en" , "technologies" , response );
+ }
+
+}
diff --git a/legacyworlds-web/legacyworlds-web-beans/pom.xml b/legacyworlds-web/legacyworlds-web-beans/pom.xml
index 5560487..faef876 100644
--- a/legacyworlds-web/legacyworlds-web-beans/pom.xml
+++ b/legacyworlds-web/legacyworlds-web-beans/pom.xml
@@ -4,12 +4,12 @@
legacyworlds-web
com.deepclone.lw
- 5.99.1
+ 5.99.2
com.deepclone.lw
legacyworlds-web-beans
- 5.99.1
+ 5.99.2
Legacy Worlds common web beans
Module for common web-related beans.
jar
diff --git a/legacyworlds-web/legacyworlds-web-beans/src/main/java/com/deepclone/lw/web/csess/AdminSession.java b/legacyworlds-web/legacyworlds-web-beans/src/main/java/com/deepclone/lw/web/csess/AdminSession.java
index 2f89e3e..cd5522b 100644
--- a/legacyworlds-web/legacyworlds-web-beans/src/main/java/com/deepclone/lw/web/csess/AdminSession.java
+++ b/legacyworlds-web/legacyworlds-web-beans/src/main/java/com/deepclone/lw/web/csess/AdminSession.java
@@ -17,6 +17,8 @@ import com.deepclone.lw.cmd.admin.msg.*;
import com.deepclone.lw.cmd.admin.naming.*;
import com.deepclone.lw.cmd.admin.prefs.*;
import com.deepclone.lw.cmd.admin.su.*;
+import com.deepclone.lw.cmd.admin.techs.ListCategoriesCommand;
+import com.deepclone.lw.cmd.admin.techs.ListCategoriesResponse;
import com.deepclone.lw.cmd.admin.tick.*;
import com.deepclone.lw.cmd.admin.users.*;
import com.deepclone.lw.cmd.bt.*;
@@ -539,4 +541,13 @@ public class AdminSession
this.execute( new EndMaintenanceCommand( ) );
}
+
+ /* Technology graph */
+
+ public ListCategoriesResponse getTechList( )
+ throws SessionException , SessionServerException , SessionMaintenanceException
+ {
+ return (ListCategoriesResponse) this.execute( new ListCategoriesCommand( ) );
+ }
+
}
diff --git a/legacyworlds-web/legacyworlds-web-beans/src/main/java/com/deepclone/lw/web/csess/PlayerSession.java b/legacyworlds-web/legacyworlds-web-beans/src/main/java/com/deepclone/lw/web/csess/PlayerSession.java
index 1cc1607..70559b6 100644
--- a/legacyworlds-web/legacyworlds-web-beans/src/main/java/com/deepclone/lw/web/csess/PlayerSession.java
+++ b/legacyworlds-web/legacyworlds-web-beans/src/main/java/com/deepclone/lw/web/csess/PlayerSession.java
@@ -17,6 +17,11 @@ import com.deepclone.lw.cmd.player.elist.*;
import com.deepclone.lw.cmd.player.fleets.*;
import com.deepclone.lw.cmd.player.gdata.*;
import com.deepclone.lw.cmd.player.planets.*;
+import com.deepclone.lw.cmd.player.research.ImplementTechCommand;
+import com.deepclone.lw.cmd.player.research.ResearchOperationResponse;
+import com.deepclone.lw.cmd.player.research.SetResearchPrioritiesCommand;
+import com.deepclone.lw.cmd.player.research.ViewResearchCommand;
+import com.deepclone.lw.cmd.player.research.ViewResearchResponse;
import com.deepclone.lw.cmd.player.msgs.*;
import com.deepclone.lw.session.Command;
import com.deepclone.lw.session.SessionException;
@@ -69,7 +74,7 @@ public class PlayerSession
}
- /* Empire commands */
+ /* Overview */
public EmpireResponse getOverview( )
throws SessionException , SessionServerException , SessionMaintenanceException
@@ -78,10 +83,26 @@ public class PlayerSession
}
- public EmpireResponse implementTechnology( int technology )
+ /* Technologies */
+
+ public ViewResearchResponse viewResearch( )
throws SessionException , SessionServerException , SessionMaintenanceException
{
- return (EmpireResponse) this.execute( new ImplementTechCommand( technology ) );
+ return (ViewResearchResponse) this.execute( new ViewResearchCommand( ) );
+ }
+
+
+ public ResearchOperationResponse implementTechnology( String technology )
+ throws SessionException , SessionServerException , SessionMaintenanceException
+ {
+ return (ResearchOperationResponse) this.execute( new ImplementTechCommand( technology ) );
+ }
+
+
+ public ResearchOperationResponse setResearchPriorities( Map< String , Integer > priorities )
+ throws SessionException , SessionServerException , SessionMaintenanceException
+ {
+ return (ResearchOperationResponse) this.execute( new SetResearchPrioritiesCommand( priorities ) );
}
diff --git a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/static/home.ftl b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/static/home.ftl
index a9dedfb..cc4a22b 100644
--- a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/static/home.ftl
+++ b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/static/home.ftl
@@ -1,4 +1,4 @@
-<@page title="Legacy Worlds Beta 6 - Milestone 1">
+<@page title="Legacy Worlds Beta 6 - Milestone 2">
Welcome to the first milestone release for Legacy Worlds' Beta 6.
diff --git a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/types/overview.ftl b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/types/overview.ftl
index af04b79..b923794 100644
--- a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/types/overview.ftl
+++ b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/types/overview.ftl
@@ -2,7 +2,6 @@
<@page title="Empire">
<#assign ov = data.overview >
- <#assign rs = data.research >
<@tabs>
@@ -61,56 +60,6 @@
@right_column>
@tab>
-
- <@tab id="research" title="Research">
- <#if rs?size == 0>
- Our scientists are still settling in.
- #if>
- <#list rs as research>
-
-
${research.name?xhtml}
-
${research.description?xhtml}
-
- <@left_column>
- <#if research.implemented?size == 0>
-
No usable technologies.
- <#else>
- <@dt_main>
- <#list research.implemented as tech>
- <@dt_status>
- ${tech.name?xhtml}
-
${tech.description?xhtml}
- @dt_status>
- #list>
- @dt_main>
- #if>
- @left_column>
-
- <#if research.current?has_content>
- <@right_column>
- <@dt_main>
- <@dt_status>
- Current research:
${research.current.name?xhtml}
-
- ${research.current.description?xhtml}
-
- @dt_status>
- <@dt_entry title="Progress">${research.current.researched}%@dt_entry>
- <#if research.current.cost?has_content>
- <@dt_entry title="Cost">${research.current.cost?string(",##0")} <@abbr_bgc/>@dt_entry>
- <#if data.page.cash gte research.current.cost && data.page.special! != 'v'>
- <@dt_status>
@dt_status>
- #if>
- #if>
- @dt_main>
- @right_column>
- #if>
-
-
- #list>
- @tab>
@tabs>
diff --git a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/types/technologies.ftl b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/types/technologies.ftl
new file mode 100644
index 0000000..954dfe8
--- /dev/null
+++ b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/en/types/technologies.ftl
@@ -0,0 +1,171 @@
+<#macro render_entry identifier title category description>
+
+
${title?xhtml}
+
Category: ${category?xhtml}
+
${description?xhtml}
+ <#nested>
+
+#macro>
+<#macro render_implementable entry>
+ <@render_entry entry.identifier entry.name entry.category entry.description>
+ Cost: ${entry.cost?string(",##0")} <@abbr_bgc/>
+ <#if data.page.cash >= entry.cost>
+
+ #if>
+ @render_entry>
+#macro>
+<#macro render_research entry title description display_priority_form>
+ <@render_entry entry.identifier title entry.category description>
+ Progress: ${entry.completion}%
+ <#if display_priority_form>
+
+ Priority:
+
+ %
+
+
+ #if>
+ @render_entry>
+#macro>
+<#macro render_unidentified entry display_priority_form>
+ <@render_research entry "Unidentified technology" "Our researchers are working on something new, but they have no clue where it will lead at this time." display_priority_form />
+#macro>
+<#macro render_research_list entries>
+ <#local priority_form_started = false>
+ <#local priority_form_checked = false>
+ <#local display_priority_form = false>
+ <#local counter = 0>
+ <#-- List of in-progress research topics as well as implementable technologies -->
+ <#list entries as entry>
+ <#if entry.cost?has_content>
+ <#-- Technology that can be implemented -->
+ <#local counter = counter + 1>
+ <@render_implementable entry />
+ <#else>
+ <#if ! priority_form_checked>
+ <#-- Check whether we need to display the priority form -->
+ <#if entries?size - counter > 1>
+ <#local display_priority_form = true>
+ #if>
+ <#local priority_form_checked = true>
+ #if>
+ <#-- Start of the research priority form, if necessary -->
+ <#if display_priority_form && ! priority_form_started>
+ <#local priority_form_started = true>
+
+ #if>
+#macro>
+<#macro find_tech_name id lists>
+ <#local found=false>
+ <#list lists as cat>
+ <#list cat.technologies as tech>
+ <#if tech.identifier == id><#local found=true>${tech.name?xhtml}<#break>#if>
+ #list>
+ <#if found><#break>#if>
+ #list>
+#macro>
+<#macro render_tech_dependencies deps fullLists>
+
+#macro>
+<#macro render_technology tech fullList>
+
+
${tech.name?xhtml}
+
+
${tech.description?xhtml}
+
+
+ <#if tech.dependsOn?size != 0>
+
+ Depends on:
+ <@render_tech_dependencies tech.dependsOn fullList />
+
+ #if>
+
+ <#if tech.dependencyOf?size != 0>
+
+ Required by:
+ <@render_tech_dependencies tech.dependencyOf fullList />
+
+ #if>
+
+
+#macro>
+<#macro render_tech_list categories>
+ <#-- List categories -->
+ <#list categories as category>
+
+
${category.name?xhtml}
+
${category.description?xhtml}
+ <#-- List technologies in the category -->
+ <#list category.technologies as technology>
+ <@render_technology technology categories />
+ #list>
+
+ #list>
+#macro>
+<#macro render>
+<@page title="Technologies">
+
+ <#if data.research?size == 0 && data.implementedTechnologies?size == 0>
+ Our scientists are still settling in, please come back in a little while...
+ <#return>
+ #if>
+
+ <@tabs>
+
+ <#if data.research?size != 0>
+ <@tab id="research" title="Research">
+ <#if data.result?exists>
+ <#switch data.result>
+ <#case "ERR_RESOURCES">
+ <@standalone_error>We do not possess the necessary resources anymore.@standalone_error>
+ <#break>
+ <#case "ERR_STATE_CHANGED">
+ <@standalone_error>Something changed... Please try again.@standalone_error>
+ <#break>
+ <#case "ERR_INVALID">
+ <@standalone_error>Invalid priorities.@standalone_error>
+ <#break>
+ <#default>
+ <#-- Ignore other error codes -->
+ <#break>
+ #switch>
+ #if>
+ <#-- Render the list -->
+ <@render_research_list data.research />
+ @tab>
+ #if>
+
+ <#if data.implementedTechnologies?size != 0>
+ <@tab id="implemented" title="Implemented technologies">
+ <@render_tech_list data.implementedTechnologies />
+ @tab>
+ #if>
+
+ @tabs>
+
+@page>
+#macro>
\ No newline at end of file
diff --git a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/fr/types/overview.ftl b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/fr/types/overview.ftl
index 919f8e9..61bdda4 100644
--- a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/fr/types/overview.ftl
+++ b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/fr/types/overview.ftl
@@ -2,7 +2,6 @@
<@page title="Empire">
<#assign ov = data.overview >
- <#assign rs = data.research >
<@tabs>
@@ -61,56 +60,6 @@
@right_column>
@tab>
-
- <@tab id="research" title="Recherche">
- <#if rs?size == 0>
- Nos scientifiques sont encore en train de s'installer.
- #if>
- <#list rs as research>
-
-
${research.name?xhtml}
-
${research.description?xhtml}
-
- <@left_column>
- <#if research.implemented?size == 0>
-
Aucune technologie utilisable.
- <#else>
- <@dt_main>
- <#list research.implemented as tech>
- <@dt_status>
- ${tech.name?xhtml}
-
${tech.description?xhtml}
- @dt_status>
- #list>
- @dt_main>
- #if>
- @left_column>
-
- <#if research.current?has_content>
- <@right_column>
- <@dt_main>
- <@dt_status>
- Recherche actuelle :
${research.current.name?xhtml}
-
- ${research.current.description?xhtml}
-
- @dt_status>
- <@dt_entry title="Progression">${research.current.researched}%@dt_entry>
- <#if research.current.cost?has_content>
- <@dt_entry title="Coût">${research.current.cost?string(",##0")} <@abbr_bgc/>@dt_entry>
- <#if data.page.cash gte research.current.cost && data.page.special! != 'v'>
- <@dt_status>
@dt_status>
- #if>
- #if>
- @dt_main>
- @right_column>
- #if>
-
-
- #list>
- @tab>
@tabs>
diff --git a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/fr/types/technologies.ftl b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/fr/types/technologies.ftl
new file mode 100644
index 0000000..5ae9fc6
--- /dev/null
+++ b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/fr/types/technologies.ftl
@@ -0,0 +1,171 @@
+<#macro render_entry identifier title category description>
+
+
${title?xhtml}
+
Catégorie: ${category?xhtml}
+
${description?xhtml}
+ <#nested>
+
+#macro>
+<#macro render_implementable entry>
+ <@render_entry entry.identifier entry.name entry.category entry.description>
+ Coût: ${entry.cost?string(",##0")} <@abbr_bgc/>
+ <#if data.page.cash >= entry.cost>
+
+ #if>
+ @render_entry>
+#macro>
+<#macro render_research entry title description display_priority_form>
+ <@render_entry entry.identifier title entry.category description>
+ Progrès: ${entry.completion}%
+ <#if display_priority_form>
+
+ Priorité:
+
+ %
+
+
+ #if>
+ @render_entry>
+#macro>
+<#macro render_unidentified entry display_priority_form>
+ <@render_research entry "Technologie non identifiée" "Nos chercheurs travaillent sur une nouvelle technologie, mais ne savent pas encore où leurs travaux les mèneront." display_priority_form />
+#macro>
+<#macro render_research_list entries>
+ <#local priority_form_started = false>
+ <#local priority_form_checked = false>
+ <#local display_priority_form = false>
+ <#local counter = 0>
+ <#-- List of in-progress research topics as well as implementable technologies -->
+ <#list entries as entry>
+ <#if entry.cost?has_content>
+ <#-- Technology that can be implemented -->
+ <#local counter = counter + 1>
+ <@render_implementable entry />
+ <#else>
+ <#if ! priority_form_checked>
+ <#-- Check whether we need to display the priority form -->
+ <#if entries?size - counter > 1>
+ <#local display_priority_form = true>
+ #if>
+ <#local priority_form_checked = true>
+ #if>
+ <#-- Start of the research priority form, if necessary -->
+ <#if display_priority_form && ! priority_form_started>
+ <#local priority_form_started = true>
+
+ #if>
+#macro>
+<#macro find_tech_name id lists>
+ <#local found=false>
+ <#list lists as cat>
+ <#list cat.technologies as tech>
+ <#if tech.identifier == id><#local found=true>${tech.name?xhtml}<#break>#if>
+ #list>
+ <#if found><#break>#if>
+ #list>
+#macro>
+<#macro render_tech_dependencies deps fullLists>
+
+#macro>
+<#macro render_technology tech fullList>
+
+
${tech.name?xhtml}
+
+
${tech.description?xhtml}
+
+
+ <#if tech.dependsOn?size != 0>
+
+ Dépend de:
+ <@render_tech_dependencies tech.dependsOn fullList />
+
+ #if>
+
+ <#if tech.dependencyOf?size != 0>
+
+ Requise par:
+ <@render_tech_dependencies tech.dependencyOf fullList />
+
+ #if>
+
+
+#macro>
+<#macro render_tech_list categories>
+ <#-- List categories -->
+ <#list categories as category>
+
+
${category.name?xhtml}
+
${category.description?xhtml}
+ <#-- List technologies in the category -->
+ <#list category.technologies as technology>
+ <@render_technology technology categories />
+ #list>
+
+ #list>
+#macro>
+<#macro render>
+<@page title="Technologies">
+
+ <#if data.research?size == 0 && data.implementedTechnologies?size == 0>
+ Nos chercheurs sont encore en train de s'installer, revenez dans un petit moment...
+ <#return>
+ #if>
+
+ <@tabs>
+
+ <#if data.research?size != 0>
+ <@tab id="research" title="Recherche">
+ <#if data.result?exists>
+ <#switch data.result>
+ <#case "ERR_RESOURCES">
+ <@standalone_error>Nous ne possédons plus les ressources nécessaires.@standalone_error>
+ <#break>
+ <#case "ERR_STATE_CHANGED">
+ <@standalone_error>Quelque chose a changé... Veuillez réessayer.@standalone_error>
+ <#break>
+ <#case "ERR_INVALID">
+ <@standalone_error>Priorités invalides.@standalone_error>
+ <#break>
+ <#default>
+ <#-- Ignore other error codes -->
+ <#break>
+ #switch>
+ #if>
+ <#-- Render the list -->
+ <@render_research_list data.research />
+ @tab>
+ #if>
+
+ <#if data.implementedTechnologies?size != 0>
+ <@tab id="implemented" title="Technologies maîtrisées">
+ <@render_tech_list data.implementedTechnologies />
+ @tab>
+ #if>
+
+ @tabs>
+
+@page>
+#macro>
\ No newline at end of file
diff --git a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/version.ftl b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/version.ftl
index c9406cf..e4abdb7 100644
--- a/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/version.ftl
+++ b/legacyworlds-web/legacyworlds-web-main/WebContent/WEB-INF/fm/version.ftl
@@ -1,2 +1,2 @@
-<#macro version>Milestone 1#macro>
-<#macro full_version>Beta 6 milestone 1 (5.99.1)#macro>
\ No newline at end of file
+<#macro version>Milestone 2#macro>
+<#macro full_version>Beta 6 milestone 2 (5.99.2)#macro>
\ No newline at end of file
diff --git a/legacyworlds-web/legacyworlds-web-main/WebContent/css/main.css b/legacyworlds-web/legacyworlds-web-main/WebContent/css/main.css
index 48ff3b4..40af4ab 100644
--- a/legacyworlds-web/legacyworlds-web-main/WebContent/css/main.css
+++ b/legacyworlds-web/legacyworlds-web-main/WebContent/css/main.css
@@ -839,4 +839,61 @@ tr.alliance-msg * {
tr.empire-msg * {
color: #afafaf;
+}
+
+/* Research and technologies */
+div.research-entry {
+ padding: 0 0 15px 0;
+}
+
+div.research-entry div {
+ padding: 0 0 0 20px;
+}
+
+div.research-entry div.title {
+ color: white;
+ font-size: 110%;
+ font-weight: bold;
+ padding: 0;
+}
+
+div.research-entry div.description {
+ padding: 0 0 5px 20px;
+ font-style: italic;
+}
+
+div.research-entry div.progress {
+ padding: 0 0 5px 20px;
+}
+
+div.research-entry span.progress {
+ font-weight: bold;
+ color: white;
+}
+
+div.research-entry form.implement {
+ padding: 5px 0 0 40px;
+}
+
+div.tech-category {
+ padding: 0 0 15px 0;
+}
+
+div.technology {
+ padding: 15px 0 0 20px;
+}
+
+div.technology div {
+ padding: 0 0 0 20px;
+}
+
+div.technology div.title {
+ color: white;
+ font-size: 105%;
+ font-weight: bold;
+ padding: 0;
+}
+
+div.technology div.description {
+ padding: 0;
}
\ No newline at end of file
diff --git a/legacyworlds-web/legacyworlds-web-main/pom.xml b/legacyworlds-web/legacyworlds-web-main/pom.xml
index 099a1af..577b5ee 100644
--- a/legacyworlds-web/legacyworlds-web-main/pom.xml
+++ b/legacyworlds-web/legacyworlds-web-main/pom.xml
@@ -4,12 +4,12 @@
legacyworlds-web
com.deepclone.lw
- 5.99.1
+ 5.99.2
com.deepclone.lw
legacyworlds-web-main
- 5.99.1
+ 5.99.2
war
Legacy Worlds main site
diff --git a/legacyworlds-web/legacyworlds-web-main/src/main/java/com/deepclone/lw/web/main/game/OverviewPage.java b/legacyworlds-web/legacyworlds-web-main/src/main/java/com/deepclone/lw/web/main/game/OverviewPage.java
index ffbbf46..e8f4831 100644
--- a/legacyworlds-web/legacyworlds-web-main/src/main/java/com/deepclone/lw/web/main/game/OverviewPage.java
+++ b/legacyworlds-web/legacyworlds-web-main/src/main/java/com/deepclone/lw/web/main/game/OverviewPage.java
@@ -6,9 +6,7 @@ import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
-import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.SessionAttributes;
import com.deepclone.lw.session.SessionException;
@@ -35,21 +33,4 @@ public class OverviewPage
return this.render( model , "game" , language , "overview" , pSession.getOverview( ) );
}
-
- @RequestMapping( value = "/implement-{tech}.action" , method = RequestMethod.POST )
- public String implement( HttpServletRequest request , @ModelAttribute( "language" ) String language , Model model ,
- @PathVariable String tech )
- throws SessionException , SessionServerException , SessionMaintenanceException
- {
- int techId;
- try {
- techId = Integer.parseInt( tech );
- } catch ( NumberFormatException e ) {
- return this.redirect( "overview" );
- }
-
- PlayerSession pSession = this.getSession( PlayerSession.class , request );
- return this.render( model , "game" , language , "overview" , pSession.implementTechnology( techId ) );
- }
-
}
diff --git a/legacyworlds-web/legacyworlds-web-main/src/main/java/com/deepclone/lw/web/main/game/TechnologyPages.java b/legacyworlds-web/legacyworlds-web-main/src/main/java/com/deepclone/lw/web/main/game/TechnologyPages.java
new file mode 100644
index 0000000..1042912
--- /dev/null
+++ b/legacyworlds-web/legacyworlds-web-main/src/main/java/com/deepclone/lw/web/main/game/TechnologyPages.java
@@ -0,0 +1,143 @@
+package com.deepclone.lw.web.main.game;
+
+
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.ModelAttribute;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.SessionAttributes;
+
+import com.deepclone.lw.cmd.player.gdata.empire.ResearchData;
+import com.deepclone.lw.cmd.player.research.ResearchOperationResponse;
+import com.deepclone.lw.cmd.player.research.ViewResearchResponse;
+import com.deepclone.lw.cmd.player.research.ResearchOperationResponse.Result;
+import com.deepclone.lw.session.SessionException;
+import com.deepclone.lw.web.beans.intercept.SessionRequirement;
+import com.deepclone.lw.web.beans.session.SessionMaintenanceException;
+import com.deepclone.lw.web.beans.session.SessionServerException;
+import com.deepclone.lw.web.beans.view.PageControllerBase;
+import com.deepclone.lw.web.csess.PlayerSession;
+
+
+
+@Controller
+@SessionRequirement( value = true , redirectTo = "player-session" , subType = "game" )
+@SessionAttributes( "language" )
+public class TechnologyPages
+ extends PageControllerBase
+{
+
+ @RequestMapping( "/technologies" )
+ public String viewTechnologies( HttpServletRequest request , @ModelAttribute( "language" ) String language ,
+ Model model )
+ throws SessionException , SessionServerException , SessionMaintenanceException
+ {
+ PlayerSession pSession = this.getSession( PlayerSession.class , request );
+ return this.renderPage( model , language , pSession.viewResearch( ) );
+ }
+
+
+ @RequestMapping( value = "/implement-tech.action" , method = RequestMethod.POST )
+ public String implement( HttpServletRequest request , @ModelAttribute( "language" ) String language , Model model ,
+ @RequestParam( "technology" ) String tech )
+ throws SessionException , SessionServerException , SessionMaintenanceException
+ {
+ if ( tech == null || tech.equals( "" ) ) {
+ return this.redirect( "technologies" );
+ }
+
+ PlayerSession pSession = this.getSession( PlayerSession.class , request );
+ ResearchOperationResponse response = pSession.implementTechnology( tech );
+ if ( response.getResult( ) == Result.OK ) {
+ return this.redirect( "technologies" );
+ }
+ return this.renderPage( model , language , response );
+ }
+
+
+ @RequestMapping( value = "/set-research-priority.action" , method = RequestMethod.POST )
+ public String setPriorities( HttpServletRequest request , @ModelAttribute( "language" ) String language ,
+ Model model )
+ throws SessionException , SessionServerException , SessionMaintenanceException
+ {
+ PlayerSession pSession = this.getSession( PlayerSession.class , request );
+ ResearchOperationResponse response;
+
+ Map< String , Integer > priorities = new HashMap< String , Integer >( );
+ if ( this.getPriorityValues( priorities , request ) ) {
+ response = pSession.setResearchPriorities( priorities );
+ if ( response.getResult( ) == Result.OK ) {
+ return this.redirect( "technologies" );
+ }
+ } else {
+ response = this.createInvalidResponse( pSession , priorities );
+ }
+
+ return this.renderPage( model , language , response );
+ }
+
+
+ private String renderPage( Model model , String language , ViewResearchResponse data )
+ {
+ return this.render( model , "game" , language , "technologies" , data );
+ }
+
+
+ private ResearchOperationResponse createInvalidResponse( PlayerSession pSession , Map< String , Integer > priorities )
+ throws SessionException , SessionServerException , SessionMaintenanceException
+ {
+ ViewResearchResponse view = pSession.viewResearch( );
+ for ( ResearchData research : view.getResearch( ) ) {
+ Integer nPrio = priorities.get( research.getIdentifier( ) );
+ if ( nPrio != null && research.getPriority( ) != null ) {
+ research.setPriority( nPrio );
+ }
+ }
+ return new ResearchOperationResponse( view.getPage( ) , view.getResearch( ) ,
+ view.getImplementedTechnologies( ) , Result.ERR_INVALID );
+ }
+
+
+ @SuppressWarnings( "unchecked" )
+ private boolean getPriorityValues( Map< String , Integer > priorities , HttpServletRequest request )
+ {
+ Map< String , String[] > parameters = request.getParameterMap( );
+ int total = 0;
+ boolean ok = true;
+
+ for ( String pName : parameters.keySet( ) ) {
+ if ( !pName.matches( "^priority-[A-Za-z0-9\\-]+" ) ) {
+ continue;
+ }
+
+ String tName = pName.substring( "priority-".length( ) );
+ String pValues[] = parameters.get( pName );
+ if ( pValues.length != 1 || pValues[ 0 ] == null ) {
+ ok = false;
+ continue;
+ }
+
+ int value;
+ try {
+ value = Integer.parseInt( pValues[ 0 ] );
+ } catch ( NumberFormatException e ) {
+ ok = false;
+ continue;
+ }
+
+ priorities.put( tName , value );
+ total += value;
+
+ ok = ok && ! ( value < 0 || value > 100 );
+ }
+
+ return ok && total == 100 && priorities.size( ) >= 2;
+ }
+}
diff --git a/legacyworlds-web/pom.xml b/legacyworlds-web/pom.xml
index 67a4c72..24fa5cb 100644
--- a/legacyworlds-web/pom.xml
+++ b/legacyworlds-web/pom.xml
@@ -4,12 +4,12 @@
legacyworlds
com.deepclone.lw
- 5.99.1
+ 5.99.2
com.deepclone.lw
legacyworlds-web
- 5.99.1
+ 5.99.2
pom
Legacy Worlds web sites
Root module for Legacy Worlds web sites
diff --git a/pom.xml b/pom.xml
index 8f8a680..e1ad570 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.deepclone.lw
legacyworlds
- 5.99.1
+ 5.99.2
pom
Legacy Worlds
Main Maven project for LW
@@ -50,15 +50,15 @@
UTF-8
- 3.0.3.RELEASE
+ 3.0.5.RELEASE
1.2.16
- 1.5.11
- 1.2.2
+ 1.6.1
+ 1.4
1.4
2.2
1.4.1
1.3.1
- 4.7
+ 4.8.2
2.3.16
diff --git a/runsrv.sh b/runsrv.sh
index d761187..226099d 100755
--- a/runsrv.sh
+++ b/runsrv.sh
@@ -1,4 +1,4 @@
#!/bin/sh
BASE="`dirname $0`"
cd "$BASE/legacyworlds-server/legacyworlds-server-main"
-java -jar target/legacyworlds-server-main-5.99.1.jar
+java -Djava.rmi.server.hostname=localhost -jar target/legacyworlds-server-main-5.99.2.jar
diff --git a/runtool.sh b/runtool.sh
index 30ba8b1..037ac04 100755
--- a/runtool.sh
+++ b/runtool.sh
@@ -1,4 +1,4 @@
#!/bin/sh
BASE="`dirname $0`"
cd "$BASE/legacyworlds-server/legacyworlds-server-main"
-java -jar target/legacyworlds-server-main-5.99.1.jar --run-tool $1 "$2"
+java -Djava.rmi.server.hostname=localhost -jar target/legacyworlds-server-main-5.99.2.jar --run-tool $1 "$2"