C# Class NetProto.Dispatcher

Mostrar archivo Open project: en/libunity Class Usage Examples

Public Methods

Method Description
Dispatcher ( ) : System.Collections.Generic
InvokeHandler ( Api id, byte data ) : bool
Register ( NetHandle handle ) : void
RegisterAction ( Api id, System act ) : bool
RegisterHandler ( Api id, MsgHandler handler ) : bool

Method Details

Dispatcher() public method

public Dispatcher ( ) : System.Collections.Generic
return System.Collections.Generic

InvokeHandler() public method

public InvokeHandler ( Api id, byte data ) : bool
id Api
data byte
return bool

Register() public method

public Register ( NetHandle handle ) : void
handle NetHandle
return void

RegisterAction() public method

public RegisterAction ( Api id, System act ) : bool
id Api
act System
return bool

RegisterHandler() public method

public RegisterHandler ( Api id, MsgHandler handler ) : bool
id Api
handler MsgHandler
return bool