C# Class db.Database

Exibir arquivo Open project: C453/OryxKingdom Class Usage Examples

Public Methods

Method 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

Method Description
UppercaseFirst ( string s ) : string

Method Details

AddIgnore() public method

public AddIgnore ( int accId, int ignoreId ) : bool
accId int
ignoreId int
return bool

AddLock() public method

public AddLock ( int accId, int lockId ) : bool
accId int
lockId int
return bool

AddToArenaLb() public method

public AddToArenaLb ( int wave, List participants ) : void
wave int
participants List
return void

CheckIp() public method

public CheckIp ( string ip ) : IP
ip string
return IP

CreateCharacter() public static method

public static CreateCharacter ( short type, int chrId ) : Char
type short
chrId int
return Char

CreateChest() public method

public CreateChest ( Account acc ) : VaultChest
acc Account
return VaultChest

CreateGuestAccount() public static method

public static CreateGuestAccount ( string uuid ) : Account
uuid string
return Account

CreateQuery() public method

public CreateQuery ( ) : MySqlCommand
return MySqlCommand

Database() public method

public Database ( ) : System
return System

DateTimeToUnixTimestamp() public static method

public static DateTimeToUnixTimestamp ( System.DateTime dateTime ) : int
dateTime System.DateTime
return int

DbAccountList() public method

public DbAccountList ( int listId, List accIds ) : void
listId int
accIds List
return void

Death() public method

public Death ( Account acc, Char chr, string killer ) : void
acc Account
chr Char
killer string
return void

Dispose() public method

public Dispose ( ) : void
return void

GetAccount() public method

public GetAccount ( int id ) : Account
id int
return Account

GetAccount() public method

public GetAccount ( string name ) : Account
name string
return Account

GetArenaLeaderboards() public method

public GetArenaLeaderboards ( ) : string[]
return string[]

GetBackpacks() public method

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

GetCharData() public method

public GetCharData ( Account acc, Chars chrs ) : void
acc Account
chrs Chars
return void

GetCommands() public method

public GetCommands ( int accId ) : List
accId int
return List

GetCurrentVer() public method

public GetCurrentVer ( ) : string
return string

GetGuildLeaderboards() public method

public GetGuildLeaderboards ( ) : string[]
return string[]

GetIgnoreds() public method

public GetIgnoreds ( int accId ) : List
accId int
return List

GetLockeds() public method

public GetLockeds ( int accId ) : List
accId int
return List

GetNews() public method

public GetNews ( Account acc ) : List
acc Account
return List

GetNextCharId() public method

public GetNextCharId ( Account acc ) : int
acc Account
return int

HasUuid() public method

public HasUuid ( string uuid ) : bool
uuid string
return bool

LoadCharacter() public method

public LoadCharacter ( Account acc, int charId ) : Char
acc Account
charId int
return Char

LoadCharacters() public method

public LoadCharacters ( Account acc, Chars chrs ) : void
acc Account
chrs Chars
return void

ReadClassStates() public method

public ReadClassStates ( Account acc ) : List
acc Account
return List

ReadStats() public method

public ReadStats ( Account acc ) : void
acc Account
return void

ReadVault() public method

public ReadVault ( Account acc ) : VaultData
acc Account
return VaultData

Register() public method

public Register ( string uuid, string password, bool isGuest ) : Account
uuid string
password string
isGuest bool
return Account

RemoveIgnore() public method

public RemoveIgnore ( int accId, int ignoreId ) : bool
accId int
ignoreId int
return bool

RemoveLock() public method

public RemoveLock ( int accId, int lockId ) : bool
accId int
lockId int
return bool

SaveBackpacks() public method

public SaveBackpacks ( Char chr, Account acc ) : void
chr Char
acc Account
return void

SaveCharacter() public method

public SaveCharacter ( Account acc, Char chr ) : void
acc Account
chr Char
return void

SaveChest() public method

public SaveChest ( Account acc, VaultChest chest ) : void
acc Account
chest VaultChest
return void

SetBonuses() public method

public SetBonuses ( int accId, List bonuses ) : bool
accId int
bonuses List
return bool

SetBonuses() public method

public SetBonuses ( string ip, List gifts ) : bool
ip string
gifts List
return bool

UpdateCredit() public method

public UpdateCredit ( Account acc, int amount ) : int
acc Account
amount int
return int

UpdateFame() public method

public UpdateFame ( Account acc, int amount ) : int
acc Account
amount int
return int

Verify() public method

public Verify ( string uuid, string password ) : Account
uuid string
password string
return Account