C# Class Server.Data

Afficher le fichier Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Méthodes publiques

Свойство Type Description
cmdCommand Server.Command
direction string
id int
player1x int
player1y int
player2x int
player2y int
playerID int
strMessage string
strName string

Méthodes publiques

Méthode Description
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[]

Method Details

Data() public méthode

public Data ( ) : System
Résultat System

Data() public méthode

public Data ( byte data ) : System
data byte
Résultat System

ToByte() public méthode

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
Résultat byte[]

ToByte() public méthode

public ToByte ( List playerList, int playercount ) : byte[]
playerList List
playercount int
Résultat byte[]

Property Details

cmdCommand public_oe property

public Command,Server cmdCommand
Résultat Server.Command

direction public_oe property

public string direction
Résultat string

id public_oe property

public int id
Résultat int

player1x public_oe property

public int player1x
Résultat int

player1y public_oe property

public int player1y
Résultat int

player2x public_oe property

public int player2x
Résultat int

player2y public_oe property

public int player2y
Résultat int

playerID public_oe property

public int playerID
Résultat int

strMessage public_oe property

public string strMessage
Résultat string

strName public_oe property

public string strName
Résultat string