C# 클래스 BF2Statistics.ASP.StatsProcessor.Snapshot

This class is used to Validate, and Process the Game data sent from the Battlefield 2 server at the end of a round (Aka: Snapshot data)
상속: GameResult
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
SnapshotMode SnapshotMode

Private Properties

프로퍼티 타입 설명
AddPlayer void
GenCheck void
GetWeaponTblPrefix string
Log void
SmocCheck void

공개 메소드들

메소드 설명
ProcessData ( ) : void

Processes the snapshot data, inserted and updating player data in the gamespy database

Snapshot ( string Snapshot, IPAddress ServerIp = null ) : System

Initializes a new Snapshot, with the specified Date it was Posted

비공개 메소드들

메소드 설명
AddPlayer ( Player Player ) : void

Adds a player to the player list, and adds his scores to the global GameResult scores

GenCheck ( StatsDatabase Driver ) : void

Checks the rank tenure, and assigns a new General

GetWeaponTblPrefix ( int WeaponId ) : string

Since secondary weapons (such as knife and c4) use column prefix's in the database, we use this method to return it based on weapons ID

Log ( string Message, LogLevel Level ) : void

Logs a message in the stats debug, based on provided level

SmocCheck ( StatsDatabase Driver ) : void

Determines if a new player has has earned the new Smoc rank, and awards it

메소드 상세

ProcessData() 공개 메소드

Processes the snapshot data, inserted and updating player data in the gamespy database
Thrown if the snapshot data is invalid
public ProcessData ( ) : void
리턴 void

Snapshot() 공개 메소드

Initializes a new Snapshot, with the specified Date it was Posted
public Snapshot ( string Snapshot, IPAddress ServerIp = null ) : System
Snapshot string The snapshot source
ServerIp System.Net.IPAddress
리턴 System

프로퍼티 상세

SnapshotMode 공개적으로 프로퍼티

Is this a central update snapshot?
public SnapshotMode SnapshotMode
리턴 SnapshotMode