C# Class GladNet.Message.EventMessage

Inheritance: NetworkMessage, IEventMessage
Exibir arquivo Open project: HelloKitty/GladNet2 Class Usage Examples

Public Methods

Method Description
DeepClone ( ) : NetworkMessage
Dispatch ( INetworkMessageReceiver receiver, IMessageParameters parameters ) : void

Dispatches the EventMessage (this) to the supplied INetworkMessageReceiver.

EventMessage ( PacketPayload payload ) : System

Constructor for EventMessage that calls NetworkMessage.ctor

Protected Methods

Method Description
EventMessage ( ) : System

Protected protobuf-net constructor.

EventMessage ( NetSendable netSendablePayload ) : System

Protected instructor used for deep cloning the NetworkMessage.

Method Details

DeepClone() public method

public DeepClone ( ) : NetworkMessage
return NetworkMessage

Dispatch() public method

Dispatches the EventMessage (this) to the supplied INetworkMessageReceiver.
Throws if either parameters are null.
public Dispatch ( INetworkMessageReceiver receiver, IMessageParameters parameters ) : void
receiver INetworkMessageReceiver The target .
parameters IMessageParameters The of the .
return void

EventMessage() protected method

Protected protobuf-net constructor.
protected EventMessage ( ) : System
return System

EventMessage() protected method

Protected instructor used for deep cloning the NetworkMessage.
protected EventMessage ( NetSendable netSendablePayload ) : System
netSendablePayload NetSendable Shallow copy of the PacketPayload for copying.
return System

EventMessage() public method

Constructor for EventMessage that calls NetworkMessage.ctor
public EventMessage ( PacketPayload payload ) : System
payload GladNet.Payload.PacketPayload of the .
return System