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.

Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
MessageBase ( ) : System

Method Details

Deserialize() public method

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

public Deserialize ( NetworkReader reader ) : void
reader NetworkReader Stream to read from.
return void

MessageBase() protected method

protected MessageBase ( ) : System
return System

Serialize() public method

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

public Serialize ( NetworkWriter writer ) : void
writer NetworkWriter Stream to write to.
return void