[This is preliminary documentation and is subject to change.]

Persistent database of player information.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
public static class PlayerDB

Members

            
 All Members  Fields   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
AddFakeEntry(String, RankChangeType)
AppendEscaped(StringBuilder, String)
Escapes special characters (comma, newline, carriage return) and appends the processed string to the given StringBuilder. Used on all string fields of PlayerInfo and IPBanInfo.
BannedCount
BannedPercentage
Escape(String)
Escapes special characters (comma, newline, carriage return) in the given string.
FindExactClassyName(String)
FindOrCreateInfoForPlayer(String, IPAddress)
FindPlayerInfoByID(Int32)
Finds PlayerInfo by ID. Returns null of not found.
FindPlayerInfoExact(String)
Finds player by exact name.
FindPlayerInfoOrPrintMatches(Player, String)
Searches for player names starting with namePart. If exactly one player matched, returns the corresponding PlayerInfo object. If name format is incorrect, or if no matches were found, an appropriate message is printed to the player. If multiple players were found matching the partialName, first 25 matches are printed.
FindPlayers(IPAddress)
FindPlayers(String)
FindPlayers(Regex)
FindPlayers(IPAddress, Int32)
FindPlayers(String, Int32)
FindPlayers(Regex, Int32)
FindPlayersCidr(IPAddress, Byte)
FindPlayersCidr(IPAddress, Byte, Int32)
FormatVersion
GetNextID()()()()
IsLoaded
Whether PlayerDB has been loaded. Ranks cannot be modified after PlayerDB is loaded.
MassRankChange(Player, Rank, Rank, String)
PlayerInfoList
Cached list of all players in the database. May be quite long. Make sure to copy a reference to the list before accessing it in a loop, since this array be frequently be replaced by an updated one.
Save()()()()
SaveInterval
Interval at which PlayerDB should be saved. Default is 90s.
Size
Unescape(String)
Restores escaped special characters (comma, newline, carriage return). Used on all string fields of PlayerInfo and IPBanInfo records, at load time.

Inheritance Hierarchy

System..::..Object
  fCraft..::..PlayerDB

See Also