Package com.prineside.tdi2.managers
Class NetworkManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.NetworkManager
- All Implemented Interfaces:
Disposable
,Manager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytesToObject
(byte[] bytes) Restore an object from bytes previously received from objectToBytes()void
dispose()
Releases all resources of this object.byte[]
Allows to serialize any kryo-registered object into bytes, to be used later with bytesToObject() Important: it may be not possible to deserialize an object from a different version of the game if its method of serialization is changed.void
prepareMultiplayerKryo
(Kryo kryo) static void
void
setup()
Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
postRender, preRender, test
-
Field Details
-
registeredClasses
-
-
Constructor Details
-
NetworkManager
public NetworkManager()
-
-
Method Details
-
setup
public void setup()Description copied from interface:Manager
Вызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
setup
in interfaceManager
- Overrides:
setup
in classManager.ManagerAdapter
-
objectToBytes
Allows to serialize any kryo-registered object into bytes, to be used later with bytesToObject() Important: it may be not possible to deserialize an object from a different version of the game if its method of serialization is changed. Always check if deserialization still works in a newer version of the game. For a simple and version-independent serialization of various data, use com.prineside.kryo.FixedInput/Output. -
bytesToObject
Restore an object from bytes previously received from objectToBytes() -
prepareMultiplayerKryo
-
getFullKryo
-
prepareNetworkKryo
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
- Overrides:
dispose
in classManager.ManagerAdapter
-