From cbbb2618283f809c26ed81e83703d3b19b16d6a2 Mon Sep 17 00:00:00 2001 From: "sha..rd" Date: Tue, 5 Apr 2011 02:28:49 +0000 Subject: [PATCH] * Made sync system deprecated git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7188 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/networking/com/jme3/network/sync/ClientSyncService.java | 1 + engine/src/networking/com/jme3/network/sync/EntityFactory.java | 1 + engine/src/networking/com/jme3/network/sync/EntitySyncInfo.java | 1 + engine/src/networking/com/jme3/network/sync/MovingAverage.java | 1 + .../src/networking/com/jme3/network/sync/ServerSyncService.java | 1 + engine/src/networking/com/jme3/network/sync/Sync.java | 1 + engine/src/networking/com/jme3/network/sync/SyncEntity.java | 1 + engine/src/networking/com/jme3/network/sync/SyncMessage.java | 1 + engine/src/networking/com/jme3/network/sync/SyncSerializer.java | 1 + 9 files changed, 9 insertions(+) diff --git a/engine/src/networking/com/jme3/network/sync/ClientSyncService.java b/engine/src/networking/com/jme3/network/sync/ClientSyncService.java index c36015b18..cec119541 100644 --- a/engine/src/networking/com/jme3/network/sync/ClientSyncService.java +++ b/engine/src/networking/com/jme3/network/sync/ClientSyncService.java @@ -40,6 +40,7 @@ import com.jme3.util.IntMap; import com.jme3.util.IntMap.Entry; import java.nio.ByteBuffer; +@Deprecated public class ClientSyncService extends MessageAdapter implements Service { private static final ByteBuffer BUFFER = ByteBuffer.wrap(new byte[10000]); diff --git a/engine/src/networking/com/jme3/network/sync/EntityFactory.java b/engine/src/networking/com/jme3/network/sync/EntityFactory.java index 0e47adc15..0f0523335 100644 --- a/engine/src/networking/com/jme3/network/sync/EntityFactory.java +++ b/engine/src/networking/com/jme3/network/sync/EntityFactory.java @@ -32,6 +32,7 @@ package com.jme3.network.sync; +@Deprecated public interface EntityFactory { public SyncEntity createEntity(Class entityType); } diff --git a/engine/src/networking/com/jme3/network/sync/EntitySyncInfo.java b/engine/src/networking/com/jme3/network/sync/EntitySyncInfo.java index 00d44078e..d24b8fd40 100644 --- a/engine/src/networking/com/jme3/network/sync/EntitySyncInfo.java +++ b/engine/src/networking/com/jme3/network/sync/EntitySyncInfo.java @@ -1,5 +1,6 @@ package com.jme3.network.sync; +@Deprecated public final class EntitySyncInfo { public static final byte TYPE_NEW = 0x1, diff --git a/engine/src/networking/com/jme3/network/sync/MovingAverage.java b/engine/src/networking/com/jme3/network/sync/MovingAverage.java index cd039d15a..b79726786 100644 --- a/engine/src/networking/com/jme3/network/sync/MovingAverage.java +++ b/engine/src/networking/com/jme3/network/sync/MovingAverage.java @@ -32,6 +32,7 @@ package com.jme3.network.sync; +@Deprecated public class MovingAverage { private long[] samples; diff --git a/engine/src/networking/com/jme3/network/sync/ServerSyncService.java b/engine/src/networking/com/jme3/network/sync/ServerSyncService.java index c1d5e39b9..d47890c22 100644 --- a/engine/src/networking/com/jme3/network/sync/ServerSyncService.java +++ b/engine/src/networking/com/jme3/network/sync/ServerSyncService.java @@ -43,6 +43,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Map; +@Deprecated public class ServerSyncService extends ConnectionAdapter implements Service { private static final ByteBuffer BUFFER = ByteBuffer.wrap(new byte[10000]); diff --git a/engine/src/networking/com/jme3/network/sync/Sync.java b/engine/src/networking/com/jme3/network/sync/Sync.java index c394c5a86..7803c3e49 100644 --- a/engine/src/networking/com/jme3/network/sync/Sync.java +++ b/engine/src/networking/com/jme3/network/sync/Sync.java @@ -37,6 +37,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +@Deprecated @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface Sync { diff --git a/engine/src/networking/com/jme3/network/sync/SyncEntity.java b/engine/src/networking/com/jme3/network/sync/SyncEntity.java index 4cf39751e..8844edb02 100644 --- a/engine/src/networking/com/jme3/network/sync/SyncEntity.java +++ b/engine/src/networking/com/jme3/network/sync/SyncEntity.java @@ -32,6 +32,7 @@ package com.jme3.network.sync; +@Deprecated public interface SyncEntity { public void onRemoteCreate(); diff --git a/engine/src/networking/com/jme3/network/sync/SyncMessage.java b/engine/src/networking/com/jme3/network/sync/SyncMessage.java index 1b5b4c402..3ee878a9b 100644 --- a/engine/src/networking/com/jme3/network/sync/SyncMessage.java +++ b/engine/src/networking/com/jme3/network/sync/SyncMessage.java @@ -35,6 +35,7 @@ package com.jme3.network.sync; import com.jme3.network.message.Message; import com.jme3.network.serializing.Serializable; +@Deprecated @Serializable public class SyncMessage extends Message { public int heartbeat; diff --git a/engine/src/networking/com/jme3/network/sync/SyncSerializer.java b/engine/src/networking/com/jme3/network/sync/SyncSerializer.java index da461d57b..9e5668047 100644 --- a/engine/src/networking/com/jme3/network/sync/SyncSerializer.java +++ b/engine/src/networking/com/jme3/network/sync/SyncSerializer.java @@ -41,6 +41,7 @@ import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.HashMap; +@Deprecated class SyncSerializer { static class SyncFieldInfo {