C# 클래스 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.

파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
MessageBase ( ) : System

메소드 상세

Deserialize() 공개 메소드

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

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

MessageBase() 보호된 메소드

protected MessageBase ( ) : System
리턴 System

Serialize() 공개 메소드

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

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