C# Class invertika_account.Account.Storage

Afficher le fichier Open project: Invertika/server

Méthodes publiques

Méthode Description
Storage ( ) : System
addAccount ( ISL account ) : void
addFloorItem ( int mapId, int itemId, int amount, int posX, int posY ) : void
addGuild ( Guild guild ) : void
addGuildMember ( int guildId, int memberId ) : void
addTransaction ( invertika_account.Common.Transaction trans ) : void
banCharacter ( int id, int duration ) : void
checkBannedAccounts ( ) : void
doesCharacterNameExist ( string name ) : bool
doesEmailAddressExist ( string email ) : bool
doesUserNameExist ( string name ) : bool
flush ( ISL account ) : void
getAccount ( int accountID ) : ISL.Server.Account.Account
getAccount ( string userName ) : ISL.Server.Account.Account
getAllWorldStateVars ( int mapId ) : string>.Dictionary
getCharacter ( int id, ISL owner ) : ISL.Server.Account.Character
getCharacter ( string name ) : ISL.Server.Account.Character
getFloorItemsFromMap ( int mapId ) : List
getGuildList ( ) : List
getItemDatabaseVersion ( ) : uint
getQuestVar ( int id, string name ) : string
open ( ) : void
removeFloorItem ( int mapId, int itemId, int amount, int posX, int posY ) : void
removeGuild ( Guild guild ) : void
removeGuildMember ( int guildId, int memberId ) : void
setAccountLevel ( int id, int level ) : void
setMemberRights ( int guildId, int memberId, int rights ) : void
setOnlineStatus ( int charId, bool online ) : void
setPlayerLevel ( int id, int level ) : void
setQuestVar ( int id, string name, string value ) : void
setWorldStateVar ( string name, int mapId, string value ) : void
setWorldStateVar ( string name, string value ) : void
updateAttribute ( int charId, uint attrId, double @base, double mod ) : void
updateCharacter ( ISL.Server.Account.Character character ) : bool
updateCharacterPoints ( int charId, int charPoints, int corrPoints ) : void
updateExperience ( int charId, int skillId, int skillValue ) : void
updateLastLogin ( ISL account ) : void

Private Methods

Méthode Description
ToDateTime ( string ticks ) : System.DateTime
close ( ) : void
delAccount ( ISL account ) : void
delCharacter ( ISL.Server.Account.Character character ) : void
delCharacter ( int charId ) : void
deletePost ( invertika_account.Chat.Letter letter ) : void
fixCharactersSlot ( int accountId ) : void
getAccountBySQL ( int accountID ) : ISL.Server.Account.Account
getCharacterBySQL ( ISL owner ) : ISL.Server.Account.Character
getStoredPost ( int playerId ) : invertika_account.Chat.Post
getTransactions ( System.DateTime date ) : List
getTransactions ( uint num ) : List
getWorldStateVar ( string name, int mapId ) : string
insertStatusEffect ( int charId, int statusId, int time ) : void
storeLetter ( invertika_account.Chat.Letter letter ) : void
syncDatabase ( ) : void
updateKillCount ( int charId, int monsterId, int kills ) : void

Method Details

Storage() public méthode

public Storage ( ) : System
Résultat System

addAccount() public méthode

public addAccount ( ISL account ) : void
account ISL
Résultat void

addFloorItem() public méthode

public addFloorItem ( int mapId, int itemId, int amount, int posX, int posY ) : void
mapId int
itemId int
amount int
posX int
posY int
Résultat void

addGuild() public méthode

public addGuild ( Guild guild ) : void
guild invertika_account.Chat.Guild
Résultat void

addGuildMember() public méthode

public addGuildMember ( int guildId, int memberId ) : void
guildId int
memberId int
Résultat void

addTransaction() public méthode

public addTransaction ( invertika_account.Common.Transaction trans ) : void
trans invertika_account.Common.Transaction
Résultat void

banCharacter() public méthode

public banCharacter ( int id, int duration ) : void
id int
duration int
Résultat void

checkBannedAccounts() public méthode

public checkBannedAccounts ( ) : void
Résultat void

doesCharacterNameExist() public méthode

public doesCharacterNameExist ( string name ) : bool
name string
Résultat bool

doesEmailAddressExist() public méthode

public doesEmailAddressExist ( string email ) : bool
email string
Résultat bool

doesUserNameExist() public méthode

public doesUserNameExist ( string name ) : bool
name string
Résultat bool

flush() public méthode

public flush ( ISL account ) : void
account ISL
Résultat void

getAccount() public méthode

public getAccount ( int accountID ) : ISL.Server.Account.Account
accountID int
Résultat ISL.Server.Account.Account

getAccount() public méthode

public getAccount ( string userName ) : ISL.Server.Account.Account
userName string
Résultat ISL.Server.Account.Account

getAllWorldStateVars() public méthode

public getAllWorldStateVars ( int mapId ) : string>.Dictionary
mapId int
Résultat string>.Dictionary

getCharacter() public méthode

public getCharacter ( int id, ISL owner ) : ISL.Server.Account.Character
id int
owner ISL
Résultat ISL.Server.Account.Character

getCharacter() public méthode

public getCharacter ( string name ) : ISL.Server.Account.Character
name string
Résultat ISL.Server.Account.Character

getFloorItemsFromMap() public méthode

public getFloorItemsFromMap ( int mapId ) : List
mapId int
Résultat List

getGuildList() public méthode

public getGuildList ( ) : List
Résultat List

getItemDatabaseVersion() public méthode

public getItemDatabaseVersion ( ) : uint
Résultat uint

getQuestVar() public méthode

public getQuestVar ( int id, string name ) : string
id int
name string
Résultat string

open() public méthode

public open ( ) : void
Résultat void

removeFloorItem() public méthode

public removeFloorItem ( int mapId, int itemId, int amount, int posX, int posY ) : void
mapId int
itemId int
amount int
posX int
posY int
Résultat void

removeGuild() public méthode

public removeGuild ( Guild guild ) : void
guild invertika_account.Chat.Guild
Résultat void

removeGuildMember() public méthode

public removeGuildMember ( int guildId, int memberId ) : void
guildId int
memberId int
Résultat void

setAccountLevel() public méthode

public setAccountLevel ( int id, int level ) : void
id int
level int
Résultat void

setMemberRights() public méthode

public setMemberRights ( int guildId, int memberId, int rights ) : void
guildId int
memberId int
rights int
Résultat void

setOnlineStatus() public méthode

public setOnlineStatus ( int charId, bool online ) : void
charId int
online bool
Résultat void

setPlayerLevel() public méthode

public setPlayerLevel ( int id, int level ) : void
id int
level int
Résultat void

setQuestVar() public méthode

public setQuestVar ( int id, string name, string value ) : void
id int
name string
value string
Résultat void

setWorldStateVar() public méthode

public setWorldStateVar ( string name, int mapId, string value ) : void
name string
mapId int
value string
Résultat void

setWorldStateVar() public méthode

public setWorldStateVar ( string name, string value ) : void
name string
value string
Résultat void

updateAttribute() public méthode

public updateAttribute ( int charId, uint attrId, double @base, double mod ) : void
charId int
attrId uint
@base double
mod double
Résultat void

updateCharacter() public méthode

public updateCharacter ( ISL.Server.Account.Character character ) : bool
character ISL.Server.Account.Character
Résultat bool

updateCharacterPoints() public méthode

public updateCharacterPoints ( int charId, int charPoints, int corrPoints ) : void
charId int
charPoints int
corrPoints int
Résultat void

updateExperience() public méthode

public updateExperience ( int charId, int skillId, int skillValue ) : void
charId int
skillId int
skillValue int
Résultat void

updateLastLogin() public méthode

public updateLastLogin ( ISL account ) : void
account ISL
Résultat void