C# Class invertika_account.Account.Storage

Datei anzeigen Open project: Invertika/server

Public Methods

Method 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

Method 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 method

public Storage ( ) : System
return System

addAccount() public method

public addAccount ( ISL account ) : void
account ISL
return void

addFloorItem() public method

public addFloorItem ( int mapId, int itemId, int amount, int posX, int posY ) : void
mapId int
itemId int
amount int
posX int
posY int
return void

addGuild() public method

public addGuild ( Guild guild ) : void
guild invertika_account.Chat.Guild
return void

addGuildMember() public method

public addGuildMember ( int guildId, int memberId ) : void
guildId int
memberId int
return void

addTransaction() public method

public addTransaction ( invertika_account.Common.Transaction trans ) : void
trans invertika_account.Common.Transaction
return void

banCharacter() public method

public banCharacter ( int id, int duration ) : void
id int
duration int
return void

checkBannedAccounts() public method

public checkBannedAccounts ( ) : void
return void

doesCharacterNameExist() public method

public doesCharacterNameExist ( string name ) : bool
name string
return bool

doesEmailAddressExist() public method

public doesEmailAddressExist ( string email ) : bool
email string
return bool

doesUserNameExist() public method

public doesUserNameExist ( string name ) : bool
name string
return bool

flush() public method

public flush ( ISL account ) : void
account ISL
return void

getAccount() public method

public getAccount ( int accountID ) : ISL.Server.Account.Account
accountID int
return ISL.Server.Account.Account

getAccount() public method

public getAccount ( string userName ) : ISL.Server.Account.Account
userName string
return ISL.Server.Account.Account

getAllWorldStateVars() public method

public getAllWorldStateVars ( int mapId ) : string>.Dictionary
mapId int
return string>.Dictionary

getCharacter() public method

public getCharacter ( int id, ISL owner ) : ISL.Server.Account.Character
id int
owner ISL
return ISL.Server.Account.Character

getCharacter() public method

public getCharacter ( string name ) : ISL.Server.Account.Character
name string
return ISL.Server.Account.Character

getFloorItemsFromMap() public method

public getFloorItemsFromMap ( int mapId ) : List
mapId int
return List

getGuildList() public method

public getGuildList ( ) : List
return List

getItemDatabaseVersion() public method

public getItemDatabaseVersion ( ) : uint
return uint

getQuestVar() public method

public getQuestVar ( int id, string name ) : string
id int
name string
return string

open() public method

public open ( ) : void
return void

removeFloorItem() public method

public removeFloorItem ( int mapId, int itemId, int amount, int posX, int posY ) : void
mapId int
itemId int
amount int
posX int
posY int
return void

removeGuild() public method

public removeGuild ( Guild guild ) : void
guild invertika_account.Chat.Guild
return void

removeGuildMember() public method

public removeGuildMember ( int guildId, int memberId ) : void
guildId int
memberId int
return void

setAccountLevel() public method

public setAccountLevel ( int id, int level ) : void
id int
level int
return void

setMemberRights() public method

public setMemberRights ( int guildId, int memberId, int rights ) : void
guildId int
memberId int
rights int
return void

setOnlineStatus() public method

public setOnlineStatus ( int charId, bool online ) : void
charId int
online bool
return void

setPlayerLevel() public method

public setPlayerLevel ( int id, int level ) : void
id int
level int
return void

setQuestVar() public method

public setQuestVar ( int id, string name, string value ) : void
id int
name string
value string
return void

setWorldStateVar() public method

public setWorldStateVar ( string name, int mapId, string value ) : void
name string
mapId int
value string
return void

setWorldStateVar() public method

public setWorldStateVar ( string name, string value ) : void
name string
value string
return void

updateAttribute() public method

public updateAttribute ( int charId, uint attrId, double @base, double mod ) : void
charId int
attrId uint
@base double
mod double
return void

updateCharacter() public method

public updateCharacter ( ISL.Server.Account.Character character ) : bool
character ISL.Server.Account.Character
return bool

updateCharacterPoints() public method

public updateCharacterPoints ( int charId, int charPoints, int corrPoints ) : void
charId int
charPoints int
corrPoints int
return void

updateExperience() public method

public updateExperience ( int charId, int skillId, int skillValue ) : void
charId int
skillId int
skillValue int
return void

updateLastLogin() public method

public updateLastLogin ( ISL account ) : void
account ISL
return void