C# Class db.Database

Afficher le fichier Open project: C453/OryxKingdom Class Usage Examples

Méthodes publiques

Méthode Description
AddIgnore ( int accId, int ignoreId ) : bool
AddLock ( int accId, int lockId ) : bool
AddToArenaLb ( int wave, List participants ) : void
CheckIp ( string ip ) : IP
CreateCharacter ( short type, int chrId ) : Char
CreateChest ( Account acc ) : VaultChest
CreateGuestAccount ( string uuid ) : Account
CreateQuery ( ) : MySqlCommand
Database ( ) : System
DateTimeToUnixTimestamp ( System.DateTime dateTime ) : int
DbAccountList ( int listId, List accIds ) : void
Death ( Account acc, Char chr, string killer ) : void
Dispose ( ) : void
GetAccount ( int id ) : Account
GetAccount ( string name ) : Account
GetArenaLeaderboards ( ) : string[]
GetBackpacks ( Char chr, Account acc ) : short[]>.Dictionary
GetCharData ( Account acc, Chars chrs ) : void
GetCommands ( int accId ) : List
GetCurrentVer ( ) : string
GetGuildLeaderboards ( ) : string[]
GetIgnoreds ( int accId ) : List
GetLockeds ( int accId ) : List
GetNews ( Account acc ) : List
GetNextCharId ( Account acc ) : int
HasUuid ( string uuid ) : bool
LoadCharacter ( Account acc, int charId ) : Char
LoadCharacters ( Account acc, Chars chrs ) : void
ReadClassStates ( Account acc ) : List
ReadStats ( Account acc ) : void
ReadVault ( Account acc ) : VaultData
Register ( string uuid, string password, bool isGuest ) : Account
RemoveIgnore ( int accId, int ignoreId ) : bool
RemoveLock ( int accId, int lockId ) : bool
SaveBackpacks ( Char chr, Account acc ) : void
SaveCharacter ( Account acc, Char chr ) : void
SaveChest ( Account acc, VaultChest chest ) : void
SetBonuses ( int accId, List bonuses ) : bool
SetBonuses ( string ip, List gifts ) : bool
UpdateCredit ( Account acc, int amount ) : int
UpdateFame ( Account acc, int amount ) : int
Verify ( string uuid, string password ) : Account

Private Methods

Méthode Description
UppercaseFirst ( string s ) : string

Method Details

AddIgnore() public méthode

public AddIgnore ( int accId, int ignoreId ) : bool
accId int
ignoreId int
Résultat bool

AddLock() public méthode

public AddLock ( int accId, int lockId ) : bool
accId int
lockId int
Résultat bool

AddToArenaLb() public méthode

public AddToArenaLb ( int wave, List participants ) : void
wave int
participants List
Résultat void

CheckIp() public méthode

public CheckIp ( string ip ) : IP
ip string
Résultat IP

CreateCharacter() public static méthode

public static CreateCharacter ( short type, int chrId ) : Char
type short
chrId int
Résultat Char

CreateChest() public méthode

public CreateChest ( Account acc ) : VaultChest
acc Account
Résultat VaultChest

CreateGuestAccount() public static méthode

public static CreateGuestAccount ( string uuid ) : Account
uuid string
Résultat Account

CreateQuery() public méthode

public CreateQuery ( ) : MySqlCommand
Résultat MySqlCommand

Database() public méthode

public Database ( ) : System
Résultat System

DateTimeToUnixTimestamp() public static méthode

public static DateTimeToUnixTimestamp ( System.DateTime dateTime ) : int
dateTime System.DateTime
Résultat int

DbAccountList() public méthode

public DbAccountList ( int listId, List accIds ) : void
listId int
accIds List
Résultat void

Death() public méthode

public Death ( Account acc, Char chr, string killer ) : void
acc Account
chr Char
killer string
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetAccount() public méthode

public GetAccount ( int id ) : Account
id int
Résultat Account

GetAccount() public méthode

public GetAccount ( string name ) : Account
name string
Résultat Account

GetArenaLeaderboards() public méthode

public GetArenaLeaderboards ( ) : string[]
Résultat string[]

GetBackpacks() public méthode

public GetBackpacks ( Char chr, Account acc ) : short[]>.Dictionary
chr Char
acc Account
Résultat short[]>.Dictionary

GetCharData() public méthode

public GetCharData ( Account acc, Chars chrs ) : void
acc Account
chrs Chars
Résultat void

GetCommands() public méthode

public GetCommands ( int accId ) : List
accId int
Résultat List

GetCurrentVer() public méthode

public GetCurrentVer ( ) : string
Résultat string

GetGuildLeaderboards() public méthode

public GetGuildLeaderboards ( ) : string[]
Résultat string[]

GetIgnoreds() public méthode

public GetIgnoreds ( int accId ) : List
accId int
Résultat List

GetLockeds() public méthode

public GetLockeds ( int accId ) : List
accId int
Résultat List

GetNews() public méthode

public GetNews ( Account acc ) : List
acc Account
Résultat List

GetNextCharId() public méthode

public GetNextCharId ( Account acc ) : int
acc Account
Résultat int

HasUuid() public méthode

public HasUuid ( string uuid ) : bool
uuid string
Résultat bool

LoadCharacter() public méthode

public LoadCharacter ( Account acc, int charId ) : Char
acc Account
charId int
Résultat Char

LoadCharacters() public méthode

public LoadCharacters ( Account acc, Chars chrs ) : void
acc Account
chrs Chars
Résultat void

ReadClassStates() public méthode

public ReadClassStates ( Account acc ) : List
acc Account
Résultat List

ReadStats() public méthode

public ReadStats ( Account acc ) : void
acc Account
Résultat void

ReadVault() public méthode

public ReadVault ( Account acc ) : VaultData
acc Account
Résultat VaultData

Register() public méthode

public Register ( string uuid, string password, bool isGuest ) : Account
uuid string
password string
isGuest bool
Résultat Account

RemoveIgnore() public méthode

public RemoveIgnore ( int accId, int ignoreId ) : bool
accId int
ignoreId int
Résultat bool

RemoveLock() public méthode

public RemoveLock ( int accId, int lockId ) : bool
accId int
lockId int
Résultat bool

SaveBackpacks() public méthode

public SaveBackpacks ( Char chr, Account acc ) : void
chr Char
acc Account
Résultat void

SaveCharacter() public méthode

public SaveCharacter ( Account acc, Char chr ) : void
acc Account
chr Char
Résultat void

SaveChest() public méthode

public SaveChest ( Account acc, VaultChest chest ) : void
acc Account
chest VaultChest
Résultat void

SetBonuses() public méthode

public SetBonuses ( int accId, List bonuses ) : bool
accId int
bonuses List
Résultat bool

SetBonuses() public méthode

public SetBonuses ( string ip, List gifts ) : bool
ip string
gifts List
Résultat bool

UpdateCredit() public méthode

public UpdateCredit ( Account acc, int amount ) : int
acc Account
amount int
Résultat int

UpdateFame() public méthode

public UpdateFame ( Account acc, int amount ) : int
acc Account
amount int
Résultat int

Verify() public méthode

public Verify ( string uuid, string password ) : Account
uuid string
password string
Résultat Account