C# Class Mooege.Core.Common.Items.Item

Show file Open project: xsochor/mooege Class Usage Examples

Public Methods

Method Description
CreateVisualItem ( ) : VisualItem
Drop ( Player owner, Vector3D position ) : void
Is2H ( ItemTypeTable itemType ) : bool
IsAccessory ( ItemTypeTable itemType ) : bool
IsArmor ( ItemTypeTable itemType ) : bool
IsDye ( ItemTypeTable itemType ) : bool
IsGold ( ItemTypeTable itemType ) : bool
IsHealthGlobe ( ItemTypeTable itemType ) : bool
IsJournalOrScroll ( ItemTypeTable itemType ) : bool
IsOffhand ( ItemTypeTable itemType ) : bool
IsPotion ( ItemTypeTable itemType ) : bool
IsRuneOrJewel ( ItemTypeTable itemType ) : bool
IsWeapon ( ItemTypeTable itemType ) : bool
Item ( GS world, ItemTable definition ) : System.Linq
OnRequestUse ( Player player, Item target, int actionId, WorldPlace worldPlace ) : void
OnTargeted ( Player player, TargetMessage message ) : void
Reveal ( Player player ) : bool
SetInventoryLocation ( int equipmentSlot, int column, int row ) : void

Private Methods

Method Description
ApplyArmorSpecificOptions ( ItemTable definition ) : void
ApplyAttributeSpecifier ( ItemTable definition ) : void
ApplyDurability ( ItemTable definition ) : void
ApplySkills ( ItemTable definition ) : void
ApplyWeaponSpecificOptions ( ItemTable definition ) : void

Method Details

CreateVisualItem() public method

public CreateVisualItem ( ) : VisualItem
return VisualItem

Drop() public method

public Drop ( Player owner, Vector3D position ) : void
owner Player
position Vector3D
return void

Is2H() public static method

public static Is2H ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsAccessory() public static method

public static IsAccessory ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsArmor() public static method

public static IsArmor ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsDye() public static method

public static IsDye ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsGold() public static method

public static IsGold ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsHealthGlobe() public static method

public static IsHealthGlobe ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsJournalOrScroll() public static method

public static IsJournalOrScroll ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsOffhand() public static method

public static IsOffhand ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsPotion() public static method

public static IsPotion ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsRuneOrJewel() public static method

public static IsRuneOrJewel ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

IsWeapon() public static method

public static IsWeapon ( ItemTypeTable itemType ) : bool
itemType ItemTypeTable
return bool

Item() public method

public Item ( GS world, ItemTable definition ) : System.Linq
world GS
definition ItemTable
return System.Linq

OnRequestUse() public method

public OnRequestUse ( Player player, Item target, int actionId, WorldPlace worldPlace ) : void
player Player
target Item
actionId int
worldPlace WorldPlace
return void

OnTargeted() public method

public OnTargeted ( Player player, TargetMessage message ) : void
player Player
message TargetMessage
return void

Reveal() public method

public Reveal ( Player player ) : bool
player Player
return bool

SetInventoryLocation() public method

public SetInventoryLocation ( int equipmentSlot, int column, int row ) : void
equipmentSlot int
column int
row int
return void