C# Class Server.Items.Spellbook

Inheritance: Item, ICraftable, ISlayer
Afficher le fichier Open project: brodock/runuo Class Usage Examples

Private Properties

Свойство Type Description
AllSpells_OnCommand void
AllSpells_OnTarget void
EventSink_CastSpellRequest void
EventSink_OpenSpellbookRequest void
Spellbook System
Spellbook System

Méthodes publiques

Méthode Description
AllowEquipedCast ( Server.Mobile from ) : bool
AllowSecureTrade ( Server.Mobile from, Server.Mobile to, Server.Mobile newOwner, bool accepted ) : bool
CanEquip ( Server.Mobile from ) : bool
Deserialize ( Server.GenericReader reader ) : void
DisplayTo ( Server.Mobile to ) : void
Find ( Server.Mobile from, int spellID ) : Spellbook
Find ( Server.Mobile from, int spellID, SpellbookType type ) : Spellbook
FindAllSpellbooks ( Server.Mobile from ) : List
FindArcanist ( Server.Mobile from ) : Spellbook
FindEquippedSpellbook ( Server.Mobile from ) : Spellbook
FindNecromancer ( Server.Mobile from ) : Spellbook
FindNinja ( Server.Mobile from ) : Spellbook
FindPaladin ( Server.Mobile from ) : Spellbook
FindRegular ( Server.Mobile from ) : Spellbook
FindSamurai ( Mobile from ) : Spellbook
FindSpellbookInList ( List list, Mobile from, int spellID, SpellbookType type ) : Spellbook
GetProperties ( ObjectPropertyList list ) : void
GetTypeForSpell ( int spellID ) : SpellbookType
HasSpell ( int spellID ) : bool
Initialize ( ) : void
OnAdded ( object parent ) : void
OnAfterDuped ( Item newItem ) : void
OnCraft ( int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CraftItem craftItem, int resHue ) : int
OnDoubleClick ( Mobile from ) : void
OnDragDrop ( Mobile from, Item dropped ) : bool
OnRemoved ( object parent ) : void
OnSingleClick ( Mobile from ) : void
Serialize ( GenericWriter writer ) : void
Spellbook ( Serial serial ) : System
Spellbook ( ulong content, int itemID ) : System
ValidateSpellbook ( Spellbook book, int spellID, SpellbookType type ) : bool

Private Methods

Méthode Description
AllSpells_OnCommand ( CommandEventArgs e ) : void
AllSpells_OnTarget ( Server.Mobile from, object obj ) : void
EventSink_CastSpellRequest ( CastSpellRequestEventArgs e ) : void
EventSink_OpenSpellbookRequest ( OpenSpellbookRequestEventArgs e ) : void
Spellbook ( ) : System
Spellbook ( ulong content ) : System

Method Details

AllowEquipedCast() public méthode

public AllowEquipedCast ( Server.Mobile from ) : bool
from Server.Mobile
Résultat bool

AllowSecureTrade() public méthode

public AllowSecureTrade ( Server.Mobile from, Server.Mobile to, Server.Mobile newOwner, bool accepted ) : bool
from Server.Mobile
to Server.Mobile
newOwner Server.Mobile
accepted bool
Résultat bool

CanEquip() public méthode

public CanEquip ( Server.Mobile from ) : bool
from Server.Mobile
Résultat bool

Deserialize() public méthode

public Deserialize ( Server.GenericReader reader ) : void
reader Server.GenericReader
Résultat void

DisplayTo() public méthode

public DisplayTo ( Server.Mobile to ) : void
to Server.Mobile
Résultat void

Find() public static méthode

public static Find ( Server.Mobile from, int spellID ) : Spellbook
from Server.Mobile
spellID int
Résultat Spellbook

Find() public static méthode

public static Find ( Server.Mobile from, int spellID, SpellbookType type ) : Spellbook
from Server.Mobile
spellID int
type SpellbookType
Résultat Spellbook

FindAllSpellbooks() public static méthode

public static FindAllSpellbooks ( Server.Mobile from ) : List
from Server.Mobile
Résultat List

FindArcanist() public static méthode

public static FindArcanist ( Server.Mobile from ) : Spellbook
from Server.Mobile
Résultat Spellbook

FindEquippedSpellbook() public static méthode

public static FindEquippedSpellbook ( Server.Mobile from ) : Spellbook
from Server.Mobile
Résultat Spellbook

FindNecromancer() public static méthode

public static FindNecromancer ( Server.Mobile from ) : Spellbook
from Server.Mobile
Résultat Spellbook

FindNinja() public static méthode

public static FindNinja ( Server.Mobile from ) : Spellbook
from Server.Mobile
Résultat Spellbook

FindPaladin() public static méthode

public static FindPaladin ( Server.Mobile from ) : Spellbook
from Server.Mobile
Résultat Spellbook

FindRegular() public static méthode

public static FindRegular ( Server.Mobile from ) : Spellbook
from Server.Mobile
Résultat Spellbook

FindSamurai() public static méthode

public static FindSamurai ( Mobile from ) : Spellbook
from Mobile
Résultat Spellbook

FindSpellbookInList() public static méthode

public static FindSpellbookInList ( List list, Mobile from, int spellID, SpellbookType type ) : Spellbook
list List
from Mobile
spellID int
type SpellbookType
Résultat Spellbook

GetProperties() public méthode

public GetProperties ( ObjectPropertyList list ) : void
list ObjectPropertyList
Résultat void

GetTypeForSpell() public static méthode

public static GetTypeForSpell ( int spellID ) : SpellbookType
spellID int
Résultat SpellbookType

HasSpell() public méthode

public HasSpell ( int spellID ) : bool
spellID int
Résultat bool

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

OnAdded() public méthode

public OnAdded ( object parent ) : void
parent object
Résultat void

OnAfterDuped() public méthode

public OnAfterDuped ( Item newItem ) : void
newItem Item
Résultat void

OnCraft() public méthode

public OnCraft ( int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CraftItem craftItem, int resHue ) : int
quality int
makersMark bool
from Mobile
craftSystem CraftSystem
typeRes Type
tool BaseTool
craftItem CraftItem
resHue int
Résultat int

OnDoubleClick() public méthode

public OnDoubleClick ( Mobile from ) : void
from Mobile
Résultat void

OnDragDrop() public méthode

public OnDragDrop ( Mobile from, Item dropped ) : bool
from Mobile
dropped Item
Résultat bool

OnRemoved() public méthode

public OnRemoved ( object parent ) : void
parent object
Résultat void

OnSingleClick() public méthode

public OnSingleClick ( Mobile from ) : void
from Mobile
Résultat void

Serialize() public méthode

public Serialize ( GenericWriter writer ) : void
writer GenericWriter
Résultat void

Spellbook() public méthode

public Spellbook ( Serial serial ) : System
serial Serial
Résultat System

Spellbook() public méthode

public Spellbook ( ulong content, int itemID ) : System
content ulong
itemID int
Résultat System

ValidateSpellbook() public static méthode

public static ValidateSpellbook ( Spellbook book, int spellID, SpellbookType type ) : bool
book Spellbook
spellID int
type SpellbookType
Résultat bool