Свойство | Тип | Описание | |
---|---|---|---|
instance | NetworkingManager, |
Метод | Описание | |
---|---|---|
ClearSubscriptions ( ) : void | ||
GenerateMapInJSON ( int seed ) : string | ||
ResetConnections ( ) : void | ||
StartGame ( ) : void | ||
Subscribe ( Action |
||
TCP_ConnectToServer ( string ipAddress, short port ) : int | ||
TCP_DisposeClient ( ) : void | ||
TCP_GetData ( ) : IntPtr | ||
TCP_Send ( string message, int size ) : int | ||
TCP_StartReadThread ( ) : int | ||
UDP_ConnectToServer ( string ipAddress, short port ) : int | ||
UDP_DisposeClient ( ) : void | ||
UDP_GetData ( ) : IntPtr | ||
UDP_SendData ( string message, int size ) : int | ||
UDP_StartReadThread ( ) : int | ||
Unsubscribe ( DataType, dataType, int id ) : void | ||
send_next_packet ( DataType, type, int id, string>.List |
||
update_data ( string JSONGameState ) : void |
Метод | Описание | |
---|---|---|
Awake ( ) : void | ||
GenerateMap ( int seed ) : IntPtr | ||
Start ( ) : void | ||
TCP_ConnectToServer ( IntPtr client, string ipAddress, short port ) : int | ||
TCP_CreateClient ( ) : IntPtr | ||
TCP_DisposeClient ( IntPtr client ) : void | ||
TCP_GetData ( IntPtr client ) : IntPtr | ||
TCP_Send ( IntPtr client, string message, int size ) : int | ||
TCP_StartReadThread ( IntPtr client ) : int | ||
UDP_ConnectToServer ( IntPtr client, string ipAddress, short port ) : int | ||
UDP_CreateClient ( ) : IntPtr | ||
UDP_DisposeClient ( IntPtr client ) : void | ||
UDP_GetData ( IntPtr client ) : IntPtr | ||
UDP_Send ( IntPtr client, string message, int size ) : int | ||
UDP_StartReadThread ( IntPtr client ) : int | ||
Update ( ) : void | ||
create_sending_json ( Protocol, protocol ) : string | ||
receive_data_tcp ( ) : string | ||
receive_data_udp ( ) : string | ||
send_data ( ) : void |
public static ClearSubscriptions ( ) : void | ||
Результат | void |
public static GenerateMapInJSON ( int seed ) : string | ||
seed | int | |
Результат | string |
public static Subscribe ( Action |
||
callback | Action |
|
dataType | DataType, | |
id | int | |
Результат | void |
public static TCP_ConnectToServer ( string ipAddress, short port ) : int | ||
ipAddress | string | |
port | short | |
Результат | int |
public static TCP_DisposeClient ( ) : void | ||
Результат | void |
public static TCP_Send ( string message, int size ) : int | ||
message | string | |
size | int | |
Результат | int |
public static TCP_StartReadThread ( ) : int | ||
Результат | int |
public static UDP_ConnectToServer ( string ipAddress, short port ) : int | ||
ipAddress | string | |
port | short | |
Результат | int |
public static UDP_DisposeClient ( ) : void | ||
Результат | void |
public static UDP_SendData ( string message, int size ) : int | ||
message | string | |
size | int | |
Результат | int |
public static UDP_StartReadThread ( ) : int | ||
Результат | int |
public static Unsubscribe ( DataType, dataType, int id ) : void | ||
dataType | DataType, | |
id | int | |
Результат | void |
public static send_next_packet ( DataType, type, int id, string>.List |
||
type | DataType, | |
id | int | |
memersToSend | string>.List | |
protocol | Protocol, | |
Результат | string |
public update_data ( string JSONGameState ) : void | ||
JSONGameState | string | |
Результат | void |