C# 클래스 OpenMetaverse.PacketEventDictionary

Registers, unregisters, and fires events generated by incoming packets
파일 보기 프로젝트 열기: 3di/3di-viewer-rei-libs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Client GridClient

공개 메소드들

메소드 설명
PacketEventDictionary ( GridClient client ) : System

Default constructor

RegisterEvent ( PacketType packetType, NetworkManager eventHandler ) : void

Register an event handler

Use PacketType.Default to fire this event on every incoming packet

UnregisterEvent ( PacketType packetType, NetworkManager eventHandler ) : void

Unregister an event handler

비공개 메소드들

메소드 설명
BeginRaiseEvent ( PacketType packetType, Packet packet, Simulator simulator ) : void

Fire the events registered for this packet type asynchronously

RaiseEvent ( PacketType packetType, Packet packet, Simulator simulator ) : void

Fire the events registered for this packet type synchronously

ThreadPoolDelegate ( Object state ) : void

메소드 상세

PacketEventDictionary() 공개 메소드

Default constructor
public PacketEventDictionary ( GridClient client ) : System
client GridClient
리턴 System

RegisterEvent() 공개 메소드

Register an event handler
Use PacketType.Default to fire this event on every incoming packet
public RegisterEvent ( PacketType packetType, NetworkManager eventHandler ) : void
packetType PacketType Packet type to register the handler for
eventHandler NetworkManager Callback to be fired
리턴 void

UnregisterEvent() 공개 메소드

Unregister an event handler
public UnregisterEvent ( PacketType packetType, NetworkManager eventHandler ) : void
packetType PacketType Packet type to unregister the handler for
eventHandler NetworkManager Callback to be unregistered
리턴 void

프로퍼티 상세

Client 공개적으로 프로퍼티

Reference to the GridClient object
public GridClient,OpenMetaverse Client
리턴 GridClient