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 TypeClassDescriptionclassstatic classstatic classstatic classstatic classstatic classNested 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()voiddispose()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.voidprepareMultiplayerKryo(Kryo kryo) static voidvoidsetup()Вызывается, когда объекты всех менеджеров созданы и можно к ним обращаться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:
 setupin interfaceManager- Overrides:
 setupin 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.DisposableReleases all resources of this object.- Specified by:
 disposein interfaceDisposable- Overrides:
 disposein classManager.ManagerAdapter
 
 -