Просмотр исходного кода

Added a big honking warning after learning something in
hindsight about the removal of RenderingHints. :P
Seemed simple enough... but now I have to watch people
get connection errors to my server instead of getting
a nice kick.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8942 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om 14 лет назад
Родитель
Сommit
dc46e28eb9
1 измененных файлов с 21 добавлено и 0 удалено
  1. 21 0
      engine/src/networking/com/jme3/network/serializing/Serializer.java

+ 21 - 0
engine/src/networking/com/jme3/network/serializing/Serializer.java

@@ -73,6 +73,27 @@ public abstract class Serializer {
 
     private static boolean strictRegistration = true;
 
+    /****************************************************************
+     ****************************************************************
+     ****************************************************************
+     
+        READ THIS BEFORE CHANGING ANYTHING BELOW
+        
+        If a registration is moved or removed before the 
+        ClientRegistrationMessage then it screws up the application's
+        ability to gracefully warn users about bad versions. 
+ 
+        There really needs to be a version rolled into the protocol
+        and I intend to do that very soon.  In the mean time, don't
+        edit the static registrations without decrementing nextId
+        appropriately.
+        
+        Yes, that's how fragile this is.  Live and learn.       
+     
+     ****************************************************************     
+     ****************************************************************
+     ****************************************************************/
+
 
     // Registers the classes we already have serializers for.
     static {