C# Класс SagaDB.MSSQLCharacterDB

Наследование: ActorDB
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CharExists() публичный Метод

public CharExists ( byte worldID, string name ) : bool
worldID byte
name string
Результат bool

Connect() публичный Метод

public Connect ( ) : bool
Результат bool

CreateChar() публичный Метод

public CreateChar ( ActorPC &aChar, int account_id ) : void
aChar SagaDB.Actors.ActorPC
account_id int
Результат void

DeleteChar() публичный Метод

public DeleteChar ( ActorPC aChar ) : void
aChar SagaDB.Actors.ActorPC
Результат void

DeleteItem() публичный Метод

public DeleteItem ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Результат void

DeleteJobLevel() публичный Метод

public DeleteJobLevel ( ActorPC pc, JobType type ) : void
pc SagaDB.Actors.ActorPC
type JobType
Результат void

DeleteMail() публичный Метод

public DeleteMail ( uint id ) : void
id uint
Результат void

DeleteMapInfo() публичный Метод

public DeleteMapInfo ( ActorPC pc, byte mapID ) : void
pc SagaDB.Actors.ActorPC
mapID byte
Результат void

DeleteMarketItem() публичный Метод

public DeleteMarketItem ( MarketplaceItem item ) : void
item SagaDB.Items.MarketplaceItem
Результат void

DeleteNpc() публичный Метод

public DeleteNpc ( ActorNPC aNpc ) : void
aNpc SagaDB.Actors.ActorNPC
Результат void

DeleteQuest() публичный Метод

public DeleteQuest ( ActorPC pc, Quest quest ) : void
pc SagaDB.Actors.ActorPC
quest Quest
Результат void

DeleteSkill() публичный Метод

public DeleteSkill ( ActorPC pc, SkillInfo skill ) : void
pc SagaDB.Actors.ActorPC
skill SagaDB.Actors.SkillInfo
Результат void

DeleteStorage() публичный Метод

public DeleteStorage ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Результат void

GetChar() публичный Метод

public GetChar ( uint charID ) : ActorPC
charID uint
Результат SagaDB.Actors.ActorPC

GetCharIDs() публичный Метод

public GetCharIDs ( int account_id ) : uint[]
account_id int
Результат uint[]

GetCharName() публичный Метод

public GetCharName ( uint id ) : string
id uint
Результат string

GetMail() публичный Метод

public GetMail ( Mail type, string value ) : List
type Mail
value string
Результат List

GetMarketItem() публичный Метод

public GetMarketItem ( uint id ) : MarketplaceItem
id uint
Результат SagaDB.Items.MarketplaceItem

GetNpc() публичный Метод

public GetNpc ( string scriptName ) : ActorNPC
scriptName string
Результат SagaDB.Actors.ActorNPC

MSSQLCharacterDB() публичный Метод

public MSSQLCharacterDB ( string host, int port, string database, string user, string pass ) : System
host string
port int
database string
user string
pass string
Результат System

NewItem() публичный Метод

public NewItem ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Результат void

NewJobLevel() публичный Метод

public NewJobLevel ( ActorPC pc, JobType type, byte level ) : void
pc SagaDB.Actors.ActorPC
type JobType
level byte
Результат void

NewMail() публичный Метод

public NewMail ( Mail mail ) : void
mail Mail
Результат void

NewMapInfo() публичный Метод

public NewMapInfo ( ActorPC pc, byte mapID, byte value ) : void
pc SagaDB.Actors.ActorPC
mapID byte
value byte
Результат void

NewQuest() публичный Метод

public NewQuest ( ActorPC pc, Quest type, Quest quest ) : void
pc SagaDB.Actors.ActorPC
type Quest
quest Quest
Результат void

NewSkill() публичный Метод

public NewSkill ( ActorPC pc, SkillType type, SkillInfo skill ) : void
pc SagaDB.Actors.ActorPC
type SkillType
skill SagaDB.Actors.SkillInfo
Результат void

NewStorage() публичный Метод

public NewStorage ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Результат void

RegisterMarketItem() публичный Метод

public RegisterMarketItem ( MarketplaceItem item ) : void
item SagaDB.Items.MarketplaceItem
Результат void

SaveChar() публичный Метод

public SaveChar ( ActorPC aChar ) : void
aChar SagaDB.Actors.ActorPC
Результат void

SaveMail() публичный Метод

public SaveMail ( Mail mail ) : void
mail Mail
Результат void

SaveNpc() публичный Метод

public SaveNpc ( ActorNPC aNpc ) : void
aNpc SagaDB.Actors.ActorNPC
Результат void

SearchMarketItem() публичный Метод

public SearchMarketItem ( MarketSearchOption option, ushort pageindex, object vars ) : List
option MarketSearchOption
pageindex ushort
vars object
Результат List

UpdateItem() публичный Метод

public UpdateItem ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Результат void

UpdateJobLevel() публичный Метод

public UpdateJobLevel ( ActorPC pc, JobType type, byte level ) : void
pc SagaDB.Actors.ActorPC
type JobType
level byte
Результат void

UpdateMapInfo() публичный Метод

public UpdateMapInfo ( ActorPC pc, byte mapID, byte value ) : void
pc SagaDB.Actors.ActorPC
mapID byte
value byte
Результат void

UpdateQuest() публичный Метод

public UpdateQuest ( ActorPC pc, Quest type, Quest quest ) : void
pc SagaDB.Actors.ActorPC
type Quest
quest Quest
Результат void

UpdateSkill() публичный Метод

public UpdateSkill ( ActorPC pc, SkillType type, SkillInfo skill ) : void
pc SagaDB.Actors.ActorPC
type SkillType
skill SagaDB.Actors.SkillInfo
Результат void

UpdateStorage() публичный Метод

public UpdateStorage ( ActorPC pc, Item item ) : void
pc SagaDB.Actors.ActorPC
item Item
Результат void

isConnected() публичный Метод

public isConnected ( ) : bool
Результат bool