C# 클래스 db.Database

파일 보기 프로젝트 열기: C453/OryxKingdom 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
UppercaseFirst ( string s ) : string

메소드 상세

AddIgnore() 공개 메소드

public AddIgnore ( int accId, int ignoreId ) : bool
accId int
ignoreId int
리턴 bool

AddLock() 공개 메소드

public AddLock ( int accId, int lockId ) : bool
accId int
lockId int
리턴 bool

AddToArenaLb() 공개 메소드

public AddToArenaLb ( int wave, List participants ) : void
wave int
participants List
리턴 void

CheckIp() 공개 메소드

public CheckIp ( string ip ) : IP
ip string
리턴 IP

CreateCharacter() 공개 정적인 메소드

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

CreateChest() 공개 메소드

public CreateChest ( Account acc ) : VaultChest
acc Account
리턴 VaultChest

CreateGuestAccount() 공개 정적인 메소드

public static CreateGuestAccount ( string uuid ) : Account
uuid string
리턴 Account

CreateQuery() 공개 메소드

public CreateQuery ( ) : MySqlCommand
리턴 MySqlCommand

Database() 공개 메소드

public Database ( ) : System
리턴 System

DateTimeToUnixTimestamp() 공개 정적인 메소드

public static DateTimeToUnixTimestamp ( System.DateTime dateTime ) : int
dateTime System.DateTime
리턴 int

DbAccountList() 공개 메소드

public DbAccountList ( int listId, List accIds ) : void
listId int
accIds List
리턴 void

Death() 공개 메소드

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

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetAccount() 공개 메소드

public GetAccount ( int id ) : Account
id int
리턴 Account

GetAccount() 공개 메소드

public GetAccount ( string name ) : Account
name string
리턴 Account

GetArenaLeaderboards() 공개 메소드

public GetArenaLeaderboards ( ) : string[]
리턴 string[]

GetBackpacks() 공개 메소드

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

GetCharData() 공개 메소드

public GetCharData ( Account acc, Chars chrs ) : void
acc Account
chrs Chars
리턴 void

GetCommands() 공개 메소드

public GetCommands ( int accId ) : List
accId int
리턴 List

GetCurrentVer() 공개 메소드

public GetCurrentVer ( ) : string
리턴 string

GetGuildLeaderboards() 공개 메소드

public GetGuildLeaderboards ( ) : string[]
리턴 string[]

GetIgnoreds() 공개 메소드

public GetIgnoreds ( int accId ) : List
accId int
리턴 List

GetLockeds() 공개 메소드

public GetLockeds ( int accId ) : List
accId int
리턴 List

GetNews() 공개 메소드

public GetNews ( Account acc ) : List
acc Account
리턴 List

GetNextCharId() 공개 메소드

public GetNextCharId ( Account acc ) : int
acc Account
리턴 int

HasUuid() 공개 메소드

public HasUuid ( string uuid ) : bool
uuid string
리턴 bool

LoadCharacter() 공개 메소드

public LoadCharacter ( Account acc, int charId ) : Char
acc Account
charId int
리턴 Char

LoadCharacters() 공개 메소드

public LoadCharacters ( Account acc, Chars chrs ) : void
acc Account
chrs Chars
리턴 void

ReadClassStates() 공개 메소드

public ReadClassStates ( Account acc ) : List
acc Account
리턴 List

ReadStats() 공개 메소드

public ReadStats ( Account acc ) : void
acc Account
리턴 void

ReadVault() 공개 메소드

public ReadVault ( Account acc ) : VaultData
acc Account
리턴 VaultData

Register() 공개 메소드

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

RemoveIgnore() 공개 메소드

public RemoveIgnore ( int accId, int ignoreId ) : bool
accId int
ignoreId int
리턴 bool

RemoveLock() 공개 메소드

public RemoveLock ( int accId, int lockId ) : bool
accId int
lockId int
리턴 bool

SaveBackpacks() 공개 메소드

public SaveBackpacks ( Char chr, Account acc ) : void
chr Char
acc Account
리턴 void

SaveCharacter() 공개 메소드

public SaveCharacter ( Account acc, Char chr ) : void
acc Account
chr Char
리턴 void

SaveChest() 공개 메소드

public SaveChest ( Account acc, VaultChest chest ) : void
acc Account
chest VaultChest
리턴 void

SetBonuses() 공개 메소드

public SetBonuses ( int accId, List bonuses ) : bool
accId int
bonuses List
리턴 bool

SetBonuses() 공개 메소드

public SetBonuses ( string ip, List gifts ) : bool
ip string
gifts List
리턴 bool

UpdateCredit() 공개 메소드

public UpdateCredit ( Account acc, int amount ) : int
acc Account
amount int
리턴 int

UpdateFame() 공개 메소드

public UpdateFame ( Account acc, int amount ) : int
acc Account
amount int
리턴 int

Verify() 공개 메소드

public Verify ( string uuid, string password ) : Account
uuid string
password string
리턴 Account