C# Класс Server.Data

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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