C# Class SagaDB.MSSQLCharacterDB

Inheritance: ActorDB
Afficher le fichier Open project: Willyham/SagaRO2 Class Usage Examples

Méthodes publiques

Méthode Description
CharExists ( byte worldID, string name ) : bool
Connect ( ) : bool
CreateChar ( ActorPC &aChar, int account_id ) : void
DeleteChar ( ActorPC aChar ) : void
DeleteItem ( ActorPC pc, Item item ) : void
DeleteJobLevel ( ActorPC pc, JobType type ) : void
DeleteMail ( uint id ) : void
DeleteMapInfo ( ActorPC pc, byte mapID ) : void
DeleteMarketItem ( MarketplaceItem item ) : void
DeleteNpc ( ActorNPC aNpc ) : void
DeleteQuest ( ActorPC pc, Quest quest ) : void
DeleteSkill ( ActorPC pc, SkillInfo skill ) : void
DeleteStorage ( ActorPC pc, Item item ) : void
GetChar ( uint charID ) : ActorPC
GetCharIDs ( int account_id ) : uint[]
GetCharName ( uint id ) : string
GetMail ( Mail type, string value ) : List
GetMarketItem ( uint id ) : MarketplaceItem
GetNpc ( string scriptName ) : ActorNPC
MSSQLCharacterDB ( string host, int port, string database, string user, string pass ) : System
NewItem ( ActorPC pc, Item item ) : void
NewJobLevel ( ActorPC pc, JobType type, byte level ) : void
NewMail ( Mail mail ) : void
NewMapInfo ( ActorPC pc, byte mapID, byte value ) : void
NewQuest ( ActorPC pc, Quest type, Quest quest ) : void
NewSkill ( ActorPC pc, SkillType type, SkillInfo skill ) : void
NewStorage ( ActorPC pc, Item item ) : void
RegisterMarketItem ( MarketplaceItem item ) : void
SaveChar ( ActorPC aChar ) : void
SaveMail ( Mail mail ) : void
SaveNpc ( ActorNPC aNpc ) : void
SearchMarketItem ( MarketSearchOption option, ushort pageindex, object vars ) : List
UpdateItem ( ActorPC pc, Item item ) : void
UpdateJobLevel ( ActorPC pc, JobType type, byte level ) : void
UpdateMapInfo ( ActorPC pc, byte mapID, byte value ) : void
UpdateQuest ( ActorPC pc, Quest type, Quest quest ) : void
UpdateSkill ( ActorPC pc, SkillType type, SkillInfo skill ) : void
UpdateStorage ( ActorPC pc, Item item ) : void
isConnected ( ) : bool

Private Methods

Méthode Description
HexStr2Bytes ( string s ) : byte[]
HexStr2uint ( string s ) : uint[]
LoadInv ( ActorPC &aChar ) : void
LoadJLevel ( ActorPC &aChar ) : void
LoadMapInfo ( ActorPC &aChar ) : void
LoadQuest ( ActorPC &aChar ) : void
LoadShortcuts ( ActorPC &aChar ) : void
LoadSkills ( ActorPC &aChar ) : void
LoadStorage ( ActorPC &aChar ) : void
LoadWeapon ( ActorPC &aChar ) : void
SaveInv ( ActorPC aChar ) : void
SaveJLevel ( ActorPC aChar ) : void
SaveMapInfo ( ActorPC aChar ) : void
SaveQuest ( ActorPC aChar ) : void
SaveShortcuts ( ActorPC aChar ) : void
SaveSkills ( ActorPC aChar ) : void
SaveStorage ( ActorPC aChar ) : void
SaveWeapon ( ActorPC aChar ) : void
bytes2HexString ( byte b ) : string
getCharID ( string name ) : uint
uint2HexString ( uint b ) : string

Method Details

CharExists() public méthode

public CharExists ( byte worldID, string name ) : bool
worldID byte
name string
Résultat bool

Connect() public méthode

public Connect ( ) : bool
Résultat bool

CreateChar() public méthode

public CreateChar ( ActorPC &aChar, int account_id ) : void
aChar SagaDB.Actors.ActorPC
account_id int
Résultat void

DeleteChar() public méthode

public DeleteChar ( ActorPC aChar ) : void
aChar SagaDB.Actors.ActorPC
Résultat void

DeleteItem() public méthode

public DeleteItem ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Résultat void

DeleteJobLevel() public méthode

public DeleteJobLevel ( ActorPC pc, JobType type ) : void
pc SagaDB.Actors.ActorPC
type JobType
Résultat void

DeleteMail() public méthode

public DeleteMail ( uint id ) : void
id uint
Résultat void

DeleteMapInfo() public méthode

public DeleteMapInfo ( ActorPC pc, byte mapID ) : void
pc SagaDB.Actors.ActorPC
mapID byte
Résultat void

DeleteMarketItem() public méthode

public DeleteMarketItem ( MarketplaceItem item ) : void
item SagaDB.Items.MarketplaceItem
Résultat void

DeleteNpc() public méthode

public DeleteNpc ( ActorNPC aNpc ) : void
aNpc SagaDB.Actors.ActorNPC
Résultat void

DeleteQuest() public méthode

public DeleteQuest ( ActorPC pc, Quest quest ) : void
pc SagaDB.Actors.ActorPC
quest Quest
Résultat void

DeleteSkill() public méthode

public DeleteSkill ( ActorPC pc, SkillInfo skill ) : void
pc SagaDB.Actors.ActorPC
skill SagaDB.Actors.SkillInfo
Résultat void

DeleteStorage() public méthode

public DeleteStorage ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Résultat void

GetChar() public méthode

public GetChar ( uint charID ) : ActorPC
charID uint
Résultat SagaDB.Actors.ActorPC

GetCharIDs() public méthode

public GetCharIDs ( int account_id ) : uint[]
account_id int
Résultat uint[]

GetCharName() public méthode

public GetCharName ( uint id ) : string
id uint
Résultat string

GetMail() public méthode

public GetMail ( Mail type, string value ) : List
type Mail
value string
Résultat List

GetMarketItem() public méthode

public GetMarketItem ( uint id ) : MarketplaceItem
id uint
Résultat SagaDB.Items.MarketplaceItem

GetNpc() public méthode

public GetNpc ( string scriptName ) : ActorNPC
scriptName string
Résultat SagaDB.Actors.ActorNPC

MSSQLCharacterDB() public méthode

public MSSQLCharacterDB ( string host, int port, string database, string user, string pass ) : System
host string
port int
database string
user string
pass string
Résultat System

NewItem() public méthode

public NewItem ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Résultat void

NewJobLevel() public méthode

public NewJobLevel ( ActorPC pc, JobType type, byte level ) : void
pc SagaDB.Actors.ActorPC
type JobType
level byte
Résultat void

NewMail() public méthode

public NewMail ( Mail mail ) : void
mail Mail
Résultat void

NewMapInfo() public méthode

public NewMapInfo ( ActorPC pc, byte mapID, byte value ) : void
pc SagaDB.Actors.ActorPC
mapID byte
value byte
Résultat void

NewQuest() public méthode

public NewQuest ( ActorPC pc, Quest type, Quest quest ) : void
pc SagaDB.Actors.ActorPC
type Quest
quest Quest
Résultat void

NewSkill() public méthode

public NewSkill ( ActorPC pc, SkillType type, SkillInfo skill ) : void
pc SagaDB.Actors.ActorPC
type SkillType
skill SagaDB.Actors.SkillInfo
Résultat void

NewStorage() public méthode

public NewStorage ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Résultat void

RegisterMarketItem() public méthode

public RegisterMarketItem ( MarketplaceItem item ) : void
item SagaDB.Items.MarketplaceItem
Résultat void

SaveChar() public méthode

public SaveChar ( ActorPC aChar ) : void
aChar SagaDB.Actors.ActorPC
Résultat void

SaveMail() public méthode

public SaveMail ( Mail mail ) : void
mail Mail
Résultat void

SaveNpc() public méthode

public SaveNpc ( ActorNPC aNpc ) : void
aNpc SagaDB.Actors.ActorNPC
Résultat void

SearchMarketItem() public méthode

public SearchMarketItem ( MarketSearchOption option, ushort pageindex, object vars ) : List
option MarketSearchOption
pageindex ushort
vars object
Résultat List

UpdateItem() public méthode

public UpdateItem ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Résultat void

UpdateJobLevel() public méthode

public UpdateJobLevel ( ActorPC pc, JobType type, byte level ) : void
pc SagaDB.Actors.ActorPC
type JobType
level byte
Résultat void

UpdateMapInfo() public méthode

public UpdateMapInfo ( ActorPC pc, byte mapID, byte value ) : void
pc SagaDB.Actors.ActorPC
mapID byte
value byte
Résultat void

UpdateQuest() public méthode

public UpdateQuest ( ActorPC pc, Quest type, Quest quest ) : void
pc SagaDB.Actors.ActorPC
type Quest
quest Quest
Résultat void

UpdateSkill() public méthode

public UpdateSkill ( ActorPC pc, SkillType type, SkillInfo skill ) : void
pc SagaDB.Actors.ActorPC
type SkillType
skill SagaDB.Actors.SkillInfo
Résultat void

UpdateStorage() public méthode

public UpdateStorage ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Résultat void

isConnected() public méthode

public isConnected ( ) : bool
Résultat bool