C# Class Server.Engines.Craft.CraftItem

Show file Open project: Grimoric/RunUO.T2A Class Usage Examples

Public Methods

Method Description
AddRes ( Type type, Server.TextDefinition name, int amount ) : void
AddRes ( Type type, Server.TextDefinition name, int amount, Server.TextDefinition message ) : void
AddSkill ( SkillName skillToMake, double minSkill, double maxSkill ) : void
CheckSkills ( Server.Mobile from, CraftSystem craftSystem, int &quality, bool &allRequiredSkills ) : bool
CheckSkills ( Server.Mobile from, CraftSystem craftSystem, int &quality, bool &allRequiredSkills, bool gainSkills ) : bool
CompleteCraft ( int quality, bool makersMark, Server.Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, Server.Engines.Craft.CustomCraft customCraft ) : void
ConsumeAttributes ( Server.Mobile from, object &message, bool consume ) : bool
ConsumeQuantity ( Server.Items.Container cont, Type types, int amounts ) : int
ConsumeRes ( Server.Mobile from, Type typeRes, CraftSystem craftSystem, int &resHue, int &maxAmount, ConsumeType consumeType, object &message ) : bool
ConsumeRes ( Server.Mobile from, Type typeRes, CraftSystem craftSystem, int &resHue, int &maxAmount, ConsumeType consumeType, object &message, bool isFailure ) : bool
Craft ( Server.Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool ) : void
CraftItem ( Type type, Server.TextDefinition groupName, Server.TextDefinition name ) : System
Find ( Server.Mobile from, int itemIDs ) : bool
Find ( int itemID, int itemIDs ) : bool
GetExceptionalChance ( CraftSystem system, double chance, Server.Mobile from ) : double
GetQuantity ( Server.Items.Container cont, Type types ) : int
GetSuccessChance ( Server.Mobile from, CraftSystem craftSystem, bool gainSkills, bool &allRequiredSkills ) : double
IsMarkable ( Type type ) : bool
IsQuantityType ( Type types ) : bool
ItemIDOf ( Type type ) : int
RetainsColor ( Type type ) : bool
RetainsColorFrom ( CraftSystem system, Type type ) : bool

Private Methods

Method Description
CheckHueGrouping ( Item a, Item b ) : int
OnResourceConsumed ( Item item, int amount ) : void

Method Details

AddRes() public method

public AddRes ( Type type, Server.TextDefinition name, int amount ) : void
type System.Type
name Server.TextDefinition
amount int
return void

AddRes() public method

public AddRes ( Type type, Server.TextDefinition name, int amount, Server.TextDefinition message ) : void
type System.Type
name Server.TextDefinition
amount int
message Server.TextDefinition
return void

AddSkill() public method

public AddSkill ( SkillName skillToMake, double minSkill, double maxSkill ) : void
skillToMake SkillName
minSkill double
maxSkill double
return void

CheckSkills() public method

public CheckSkills ( Server.Mobile from, CraftSystem craftSystem, int &quality, bool &allRequiredSkills ) : bool
from Server.Mobile
craftSystem CraftSystem
quality int
allRequiredSkills bool
return bool

CheckSkills() public method

public CheckSkills ( Server.Mobile from, CraftSystem craftSystem, int &quality, bool &allRequiredSkills, bool gainSkills ) : bool
from Server.Mobile
craftSystem CraftSystem
quality int
allRequiredSkills bool
gainSkills bool
return bool

CompleteCraft() public method

public CompleteCraft ( int quality, bool makersMark, Server.Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, Server.Engines.Craft.CustomCraft customCraft ) : void
quality int
makersMark bool
from Server.Mobile
craftSystem CraftSystem
typeRes System.Type
tool Server.Items.BaseTool
customCraft Server.Engines.Craft.CustomCraft
return void

ConsumeAttributes() public method

public ConsumeAttributes ( Server.Mobile from, object &message, bool consume ) : bool
from Server.Mobile
message object
consume bool
return bool

ConsumeQuantity() public method

public ConsumeQuantity ( Server.Items.Container cont, Type types, int amounts ) : int
cont Server.Items.Container
types System.Type
amounts int
return int

ConsumeRes() public method

public ConsumeRes ( Server.Mobile from, Type typeRes, CraftSystem craftSystem, int &resHue, int &maxAmount, ConsumeType consumeType, object &message ) : bool
from Server.Mobile
typeRes System.Type
craftSystem CraftSystem
resHue int
maxAmount int
consumeType ConsumeType
message object
return bool

ConsumeRes() public method

public ConsumeRes ( Server.Mobile from, Type typeRes, CraftSystem craftSystem, int &resHue, int &maxAmount, ConsumeType consumeType, object &message, bool isFailure ) : bool
from Server.Mobile
typeRes System.Type
craftSystem CraftSystem
resHue int
maxAmount int
consumeType ConsumeType
message object
isFailure bool
return bool

Craft() public method

public Craft ( Server.Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool ) : void
from Server.Mobile
craftSystem CraftSystem
typeRes System.Type
tool Server.Items.BaseTool
return void

CraftItem() public method

public CraftItem ( Type type, Server.TextDefinition groupName, Server.TextDefinition name ) : System
type System.Type
groupName Server.TextDefinition
name Server.TextDefinition
return System

Find() public method

public Find ( Server.Mobile from, int itemIDs ) : bool
from Server.Mobile
itemIDs int
return bool

Find() public method

public Find ( int itemID, int itemIDs ) : bool
itemID int
itemIDs int
return bool

GetExceptionalChance() public method

public GetExceptionalChance ( CraftSystem system, double chance, Server.Mobile from ) : double
system CraftSystem
chance double
from Server.Mobile
return double

GetQuantity() public method

public GetQuantity ( Server.Items.Container cont, Type types ) : int
cont Server.Items.Container
types System.Type
return int

GetSuccessChance() public method

public GetSuccessChance ( Server.Mobile from, CraftSystem craftSystem, bool gainSkills, bool &allRequiredSkills ) : double
from Server.Mobile
craftSystem CraftSystem
gainSkills bool
allRequiredSkills bool
return double

IsMarkable() public method

public IsMarkable ( Type type ) : bool
type System.Type
return bool

IsQuantityType() public method

public IsQuantityType ( Type types ) : bool
types System.Type
return bool

ItemIDOf() public static method

public static ItemIDOf ( Type type ) : int
type System.Type
return int

RetainsColor() public static method

public static RetainsColor ( Type type ) : bool
type System.Type
return bool

RetainsColorFrom() public method

public RetainsColorFrom ( CraftSystem system, Type type ) : bool
system CraftSystem
type System.Type
return bool