C# Class UnityEngine.Networking.MessageBase

Network message classes should be derived from this class. These message classes can then be sent using the various Send functions of NetworkConnection, NetworkClient and NetworkServer.

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode Description
Deserialize ( NetworkReader reader ) : void

This method is used to populate a message object from a NetworkReader stream.

Serialize ( NetworkWriter writer ) : void

The method is used to populate a NetworkWriter stream from a message object.

Méthodes protégées

Méthode Description
MessageBase ( ) : System

Method Details

Deserialize() public méthode

This method is used to populate a message object from a NetworkReader stream.

public Deserialize ( NetworkReader reader ) : void
reader NetworkReader Stream to read from.
Résultat void

MessageBase() protected méthode

protected MessageBase ( ) : System
Résultat System

Serialize() public méthode

The method is used to populate a NetworkWriter stream from a message object.

public Serialize ( NetworkWriter writer ) : void
writer NetworkWriter Stream to write to.
Résultat void