1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-08 08:23:11 +00:00

Gatekeeper complete implementation

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-25 15:26:27 -03:00
parent 4a003b21e0
commit f955208c2e
12 changed files with 3550 additions and 366 deletions

View File

@@ -29,7 +29,7 @@ import com.l2jserver.model.id.template.provider.TeleportationTemplateIDProvider;
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public class TeleportationTemplateIDAdapter extends
XmlAdapter<String, TeleportationTemplateID> {
XmlAdapter<Integer, TeleportationTemplateID> {
private final TeleportationTemplateIDProvider provider;
public TeleportationTemplateIDAdapter() {
@@ -43,7 +43,7 @@ public class TeleportationTemplateIDAdapter extends
}
@Override
public TeleportationTemplateID unmarshal(String v) throws Exception {
public TeleportationTemplateID unmarshal(Integer v) throws Exception {
if (v == null)
return null;
if (provider == null)
@@ -52,7 +52,7 @@ public class TeleportationTemplateIDAdapter extends
}
@Override
public String marshal(TeleportationTemplateID v) throws Exception {
public Integer marshal(TeleportationTemplateID v) throws Exception {
if (v == null)
return null;
return v.getID();