Метод | Описание | |
---|---|---|
AddPlayer ( string name, Rank startingRank, RankChangeType rankChangeType, |
Adds a new PlayerInfo entry for an actual, logged-in player.
|
|
AddUnrecognizedPlayer ( string name, Rank startingRank, RankChangeType rankChangeType ) : |
Adds a new PlayerInfo entry for a player who has never been online, by name.
|
|
FindByIP ( |
Finds players by IP address.
|
|
FindByPartialName ( string partialName, int limit ) : IEnumerable |
Finds players by partial name (prefix).
|
|
FindByPattern ( string pattern, int limit ) : IEnumerable |
Finds player by name pattern.
|
|
FindExact ( string fullName ) : |
Finds player by exact name.
|
|
FindOneByPartialName ( string partialName, |
Searches for player names starting with namePart, returning just one or none of the matches.
|
|
Import ( IEnumerable |
Inserts all data from given PlayerInfo list directly into the database.
|
|
Import ( |
Inserts all data from given playerInfo directly into the database.
|
|
Load ( ) : IEnumerable |
Initializes the provider, and allocates PlayerInfo objects for all players.
|
|
MassRankChange ( Player player, Rank from, Rank to, string reason ) : void |
Changes ranks of all players in one transaction.
|
|
Remove ( |
Removes a PlayerInfo entry from the database.
|
|
Save ( ) : void |
Saves the whole database.
|
|
SwapInfo ( |
Swaps records of two players in one transaction.
|
|
ToDateTimeLegacy ( long timestamp ) : System.DateTime | ||
ToDateTimeLegacy ( [ str, System.DateTime &result ) : bool | ||
ToTimeSpanLegacy ( [ str, System.TimeSpan &result ) : bool | ||
ToUnixTimeLegacy ( System.DateTime date ) : long | ||
TryParseLocalDate ( [ dateString, System.DateTime &date ) : bool |
Tries to parse a data in a culture-specific ways. This method is, unfortunately, necessary because in versions 0.520-0.522, fCraft saved dates in a culture-specific format. This means that if the server's culture settings were changed, or if the PlayerDB and IPBanList files were moved between machines, all dates became unparseable.
|
|
Unescape ( [ str ) : string | ||
UnescapeOldFormat ( [ str ) : string |
Метод | Описание | |
---|---|---|
GetNextID ( ) : int | ||
GetRankByIndex ( int index ) : Rank | ||
GuessRankChangeType ( [ info ) : void | ||
IdentifyFormatVersion ( [ header ) : int | ||
LoadBinary ( ) : void | ||
LoadBinaryFormat0 ( [ reader ) : |
||
LoadFormat0 ( [ fields ) : |
||
LoadFormat1 ( [ fields ) : |
||
LoadFormat2 ( [ fields ) : |
||
OpenRead ( [ fileName ) : FileStream | ||
OpenWrite ( [ fileName ) : FileStream | ||
ParseBandwidthUseMode ( [ info, [ field ) : void | ||
Read7BitEncodedInt ( [ reader ) : int | ||
ReadDate ( [ reader ) : System.DateTime | ||
ReadIPAddress ( [ reader ) : |
||
ReadString ( [ reader ) : string | ||
ReadTimeSpan ( [ reader ) : System.TimeSpan | ||
SaveBinaryFormat0 ( |
||
Write7BitEncodedInt ( [ writer, int value ) : void | ||
WriteDate ( [ writer, System.DateTime dateTime ) : void | ||
WriteString ( [ writer, [ str ) : void |
public AddPlayer ( string name, Rank startingRank, RankChangeType rankChangeType, |
||
name | string | |
startingRank | Rank | |
rankChangeType | RankChangeType | |
address | ||
Результат |
public AddUnrecognizedPlayer ( string name, Rank startingRank, RankChangeType rankChangeType ) : |
||
name | string | |
startingRank | Rank | |
rankChangeType | RankChangeType | |
Результат |
public FindByIP ( |
||
address | Player's IP address. | |
limit | int | Maximum number of results to return. |
Результат | IEnumerable |
public FindByPartialName ( string partialName, int limit ) : IEnumerable |
||
partialName | string | Full or partial name of the player. |
limit | int | Maximum number of results to return. |
Результат | IEnumerable |
public FindByPattern ( string pattern, int limit ) : IEnumerable |
||
pattern | string | Pattern to search for. /// Asterisk (*) matches zero or more characters. /// Question mark (?) matches exactly one character. |
limit | int | Maximum number of results to return. |
Результат | IEnumerable |
public FindExact ( string fullName ) : |
||
fullName | string | Full, case-insensitive name of the player. |
Результат |
public FindOneByPartialName ( string partialName, |
||
partialName | string | Partial or full player name. |
result | PlayerInfo to output (will be set to null if no single match was found). | |
Результат | bool |
public Import ( IEnumerable |
||
playerInfos | IEnumerable |
List of player record to import. |
Результат | void |
public Import ( |
||
playerInfo | Player record to import. | |
Результат | void |
public MassRankChange ( Player player, Rank from, Rank to, string reason ) : void | ||
player | Player | |
from | Rank | |
to | Rank | |
reason | string | |
Результат | void |
public Remove ( |
||
playerInfo | ||
Результат | bool |
public SwapInfo ( |
||
player1 | ||
player2 | ||
Результат | void |
public static ToDateTimeLegacy ( long timestamp ) : System.DateTime | ||
timestamp | long | |
Результат | System.DateTime |
public static ToDateTimeLegacy ( [ str, System.DateTime &result ) : bool | ||
str | [ | |
result | System.DateTime | |
Результат | bool |
public static ToTimeSpanLegacy ( [ str, System.TimeSpan &result ) : bool | ||
str | [ | |
result | System.TimeSpan | |
Результат | bool |
public static ToUnixTimeLegacy ( System.DateTime date ) : long | ||
date | System.DateTime | |
Результат | long |
public static TryParseLocalDate ( [ dateString, System.DateTime &date ) : bool | ||
dateString | [ | String to parse. |
date | System.DateTime | Date to output. |
Результат | bool |
public static Unescape ( [ str ) : string | ||
str | [ | |
Результат | string |
public static UnescapeOldFormat ( [ str ) : string | ||
str | [ | |
Результат | string |