C# 클래스 NetworkingManager, DefendAman

상속: MonoBehaviour
파일 보기 프로젝트 열기: CarsonRoscoe/DefendAman 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
instance NetworkingManager,

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

ClearSubscriptions() 공개 정적인 메소드

public static ClearSubscriptions ( ) : void
리턴 void

GenerateMapInJSON() 공개 정적인 메소드

public static GenerateMapInJSON ( int seed ) : string
seed int
리턴 string

ResetConnections() 공개 메소드

public ResetConnections ( ) : void
리턴 void

StartGame() 공개 정적인 메소드

public static StartGame ( ) : void
리턴 void

Subscribe() 공개 정적인 메소드

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

TCP_ConnectToServer() 공개 정적인 메소드

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

TCP_DisposeClient() 공개 정적인 메소드

public static TCP_DisposeClient ( ) : void
리턴 void

TCP_GetData() 공개 정적인 메소드

public static TCP_GetData ( ) : IntPtr
리턴 IntPtr

TCP_Send() 공개 정적인 메소드

public static TCP_Send ( string message, int size ) : int
message string
size int
리턴 int

TCP_StartReadThread() 공개 정적인 메소드

public static TCP_StartReadThread ( ) : int
리턴 int

UDP_ConnectToServer() 공개 정적인 메소드

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

UDP_DisposeClient() 공개 정적인 메소드

public static UDP_DisposeClient ( ) : void
리턴 void

UDP_GetData() 공개 정적인 메소드

public static UDP_GetData ( ) : IntPtr
리턴 IntPtr

UDP_SendData() 공개 정적인 메소드

public static UDP_SendData ( string message, int size ) : int
message string
size int
리턴 int

UDP_StartReadThread() 공개 정적인 메소드

public static UDP_StartReadThread ( ) : int
리턴 int

Unsubscribe() 공개 정적인 메소드

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

send_next_packet() 공개 정적인 메소드

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

update_data() 공개 메소드

public update_data ( string JSONGameState ) : void
JSONGameState string
리턴 void

프로퍼티 상세

instance 공개적으로 정적으로 프로퍼티

public static NetworkingManager, instance
리턴 NetworkingManager,