C# Класс core.Server.RConn.RecognizedPacket

A RecognizedPacket is a packet whose format is known. This lets us pass consumers of Comm a set of key-value pairs instead of a set of words.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreatePacketFromFormattedData ( string packetName, string>.Dictionary parameters ) : Packet
FormatRequestPacket ( Packet packet ) : string>.Dictionary

Names the parameters from the specified request packet.

FormatResponsePacket ( Packet request, Packet response ) : string>.Dictionary

Names the parameters from the specified response packet. The associated request packet is required to differentiate between response formats -- the response name is not unique across requests.

LoadScrapedData ( ) : void

Reads the scraped data from BF3_formatted_scrape.txt into the appropriate data structures.

Описание методов

CreatePacketFromFormattedData() публичный статический Метод

public static CreatePacketFromFormattedData ( string packetName, string>.Dictionary parameters ) : Packet
packetName string
parameters string>.Dictionary
Результат Packet

FormatRequestPacket() публичный статический Метод

Names the parameters from the specified request packet.
public static FormatRequestPacket ( Packet packet ) : string>.Dictionary
packet Packet The request to be formatted.
Результат string>.Dictionary

FormatResponsePacket() публичный статический Метод

Names the parameters from the specified response packet. The associated request packet is required to differentiate between response formats -- the response name is not unique across requests.
public static FormatResponsePacket ( Packet request, Packet response ) : string>.Dictionary
request Packet The request which instigated the response.
response Packet The response to be formatted.
Результат string>.Dictionary

LoadScrapedData() публичный статический Метод

Reads the scraped data from BF3_formatted_scrape.txt into the appropriate data structures.
public static LoadScrapedData ( ) : void
Результат void