C# Class LuaFramework.NetworkManager

Inheritance: Manager
Exibir arquivo Open project: guyun008/LuaFramework_ngui_mod Class Usage Examples

Public Properties

Property Type Description
sEvents ByteBuffer>>.Queue
toSendBuffers Queue

Private Properties

Property Type Description
Awake void
Init void
OnDestroy void
Update void

Public Methods

Method Description
AddEvent ( int _event, ByteBuffer data ) : void
CallMethod ( string func ) : object[]

执行Lua方法

OnInit ( ) : void
SendConnect ( ) : void

发送链接请求

SendMessage ( ByteBuffer buffer ) : void

发送SOCKET消息

Unload ( ) : void

Private Methods

Method Description
Awake ( ) : void
Init ( ) : void
OnDestroy ( ) : void

析构函数

Update ( ) : void

处理接收到的消息,交给Command,这里不想关心发给谁。

Method Details

AddEvent() public static method

public static AddEvent ( int _event, ByteBuffer data ) : void
_event int
data ByteBuffer
return void

CallMethod() public method

执行Lua方法
public CallMethod ( string func ) : object[]
func string
return object[]

OnInit() public method

public OnInit ( ) : void
return void

SendConnect() public method

发送链接请求
public SendConnect ( ) : void
return void

SendMessage() public method

发送SOCKET消息
public SendMessage ( ByteBuffer buffer ) : void
buffer ByteBuffer
return void

Unload() public method

public Unload ( ) : void
return void

Property Details

sEvents public_oe static_oe property

public static Queue> sEvents
return ByteBuffer>>.Queue

toSendBuffers public_oe static_oe property

public static Queue toSendBuffers
return Queue