C# Class 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.
Exibir arquivo Open project: Pure-Battlefield/gswat

Public Methods

Method Description
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.

Method Details

CreatePacketFromFormattedData() public static method

public static CreatePacketFromFormattedData ( string packetName, string>.Dictionary parameters ) : Packet
packetName string
parameters string>.Dictionary
return Packet

FormatRequestPacket() public static method

Names the parameters from the specified request packet.
public static FormatRequestPacket ( Packet packet ) : string>.Dictionary
packet Packet The request to be formatted.
return string>.Dictionary

FormatResponsePacket() public static method

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.
return string>.Dictionary

LoadScrapedData() public static method

Reads the scraped data from BF3_formatted_scrape.txt into the appropriate data structures.
public static LoadScrapedData ( ) : void
return void