C# Class TShockAPI.DB.CharacterManager

Mostrar archivo Open project: NyxStudios/TShock Class Usage Examples

Public Properties

Property Type Description
database IDbConnection

Public Methods

Method Description
CharacterManager ( IDbConnection db ) : System
GetPlayerData ( TSPlayer player, int acctid ) : PlayerData
InsertPlayerData ( TSPlayer player ) : bool

Inserts player data to the tsCharacter database table

RemovePlayer ( int userid ) : bool

Removes a player's data from the tsCharacter database table

SeedInitialData ( User user ) : bool

Method Details

CharacterManager() public method

public CharacterManager ( IDbConnection db ) : System
db IDbConnection
return System

GetPlayerData() public method

public GetPlayerData ( TSPlayer player, int acctid ) : PlayerData
player TSPlayer
acctid int
return PlayerData

InsertPlayerData() public method

Inserts player data to the tsCharacter database table
public InsertPlayerData ( TSPlayer player ) : bool
player TSPlayer player to take data from
return bool

RemovePlayer() public method

Removes a player's data from the tsCharacter database table
public RemovePlayer ( int userid ) : bool
userid int User ID of the player
return bool

SeedInitialData() public method

public SeedInitialData ( User user ) : bool
user User
return bool

Property Details

database public_oe property

public IDbConnection database
return IDbConnection