C# Class NetworkingManager, DefendAman

Inheritance: MonoBehaviour
Datei anzeigen Open project: CarsonRoscoe/DefendAman Class Usage Examples

Public Properties

Property Type Description
instance NetworkingManager,

Public Methods

Method Description
ClearSubscriptions ( ) : void
GenerateMapInJSON ( int seed ) : string
ResetConnections ( ) : void
StartGame ( ) : void
Subscribe ( Action callback, DataType, dataType, int id ) : void
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 memersToSend, Protocol, protocol ) : string
update_data ( string JSONGameState ) : void

Private Methods

Method 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

Method Details

ClearSubscriptions() public static method

public static ClearSubscriptions ( ) : void
return void

GenerateMapInJSON() public static method

public static GenerateMapInJSON ( int seed ) : string
seed int
return string

ResetConnections() public method

public ResetConnections ( ) : void
return void

StartGame() public static method

public static StartGame ( ) : void
return void

Subscribe() public static method

public static Subscribe ( Action callback, DataType, dataType, int id ) : void
callback Action
dataType DataType,
id int
return void

TCP_ConnectToServer() public static method

public static TCP_ConnectToServer ( string ipAddress, short port ) : int
ipAddress string
port short
return int

TCP_DisposeClient() public static method

public static TCP_DisposeClient ( ) : void
return void

TCP_GetData() public static method

public static TCP_GetData ( ) : IntPtr
return IntPtr

TCP_Send() public static method

public static TCP_Send ( string message, int size ) : int
message string
size int
return int

TCP_StartReadThread() public static method

public static TCP_StartReadThread ( ) : int
return int

UDP_ConnectToServer() public static method

public static UDP_ConnectToServer ( string ipAddress, short port ) : int
ipAddress string
port short
return int

UDP_DisposeClient() public static method

public static UDP_DisposeClient ( ) : void
return void

UDP_GetData() public static method

public static UDP_GetData ( ) : IntPtr
return IntPtr

UDP_SendData() public static method

public static UDP_SendData ( string message, int size ) : int
message string
size int
return int

UDP_StartReadThread() public static method

public static UDP_StartReadThread ( ) : int
return int

Unsubscribe() public static method

public static Unsubscribe ( DataType, dataType, int id ) : void
dataType DataType,
id int
return void

send_next_packet() public static method

public static send_next_packet ( DataType, type, int id, string>.List memersToSend, Protocol, protocol ) : string
type DataType,
id int
memersToSend string>.List
protocol Protocol,
return string

update_data() public method

public update_data ( string JSONGameState ) : void
JSONGameState string
return void

Property Details

instance public_oe static_oe property

public static NetworkingManager, instance
return NetworkingManager,