C# 클래스 Server.Data

파일 보기 프로젝트 열기: pmyoung/Advanced-Game-Project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
cmdCommand Server.Command
direction string
id int
player1x int
player1y int
player2x int
player2y int
playerID int
strMessage string
strName string

공개 메소드들

메소드 설명
Data ( ) : System
Data ( byte data ) : System
ToByte ( List playerList, List bulletList, List removeids, int playercount, List planetList ) : byte[]

Converts the Data structure into an array of bytes

ToByte ( List playerList, int playercount ) : byte[]

메소드 상세

Data() 공개 메소드

public Data ( ) : System
리턴 System

Data() 공개 메소드

public Data ( byte data ) : System
data byte
리턴 System

ToByte() 공개 메소드

Converts the Data structure into an array of bytes
public ToByte ( List playerList, List bulletList, List removeids, int playercount, List planetList ) : byte[]
playerList List A list that contains the players instance
bulletList List A list that contains the Bullets instance
removeids List A list that contains the id of the object removed
playercount int The number of player currently in the game
planetList List A list that contains the Planets instance
리턴 byte[]

ToByte() 공개 메소드

public ToByte ( List playerList, int playercount ) : byte[]
playerList List
playercount int
리턴 byte[]

프로퍼티 상세

cmdCommand 공개적으로 프로퍼티

public Command,Server cmdCommand
리턴 Server.Command

direction 공개적으로 프로퍼티

public string direction
리턴 string

id 공개적으로 프로퍼티

public int id
리턴 int

player1x 공개적으로 프로퍼티

public int player1x
리턴 int

player1y 공개적으로 프로퍼티

public int player1y
리턴 int

player2x 공개적으로 프로퍼티

public int player2x
리턴 int

player2y 공개적으로 프로퍼티

public int player2y
리턴 int

playerID 공개적으로 프로퍼티

public int playerID
리턴 int

strMessage 공개적으로 프로퍼티

public string strMessage
리턴 string

strName 공개적으로 프로퍼티

public string strName
리턴 string