Свойство | Type | Description | |
---|---|---|---|
instance | NetworkingManager, |
Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
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 | ||
Résultat | void |
public static GenerateMapInJSON ( int seed ) : string | ||
seed | int | |
Résultat | string |
public static Subscribe ( Action |
||
callback | Action |
|
dataType | DataType, | |
id | int | |
Résultat | void |
public static TCP_ConnectToServer ( string ipAddress, short port ) : int | ||
ipAddress | string | |
port | short | |
Résultat | int |
public static TCP_Send ( string message, int size ) : int | ||
message | string | |
size | int | |
Résultat | int |
public static TCP_StartReadThread ( ) : int | ||
Résultat | int |
public static UDP_ConnectToServer ( string ipAddress, short port ) : int | ||
ipAddress | string | |
port | short | |
Résultat | int |
public static UDP_SendData ( string message, int size ) : int | ||
message | string | |
size | int | |
Résultat | int |
public static UDP_StartReadThread ( ) : int | ||
Résultat | int |
public static Unsubscribe ( DataType, dataType, int id ) : void | ||
dataType | DataType, | |
id | int | |
Résultat | void |
public static send_next_packet ( DataType, type, int id, string>.List |
||
type | DataType, | |
id | int | |
memersToSend | string>.List | |
protocol | Protocol, | |
Résultat | string |
public update_data ( string JSONGameState ) : void | ||
JSONGameState | string | |
Résultat | void |