C# Class Server.Engines.Craft.CraftItem

Afficher le fichier Open project: Grimoric/RunUO.T2A Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CheckHueGrouping ( Item a, Item b ) : int
OnResourceConsumed ( Item item, int amount ) : void

Method Details

AddRes() public méthode

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

AddRes() public méthode

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

AddSkill() public méthode

public AddSkill ( SkillName skillToMake, double minSkill, double maxSkill ) : void
skillToMake SkillName
minSkill double
maxSkill double
Résultat void

CheckSkills() public méthode

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

CheckSkills() public méthode

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
Résultat bool

CompleteCraft() public méthode

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
Résultat void

ConsumeAttributes() public méthode

public ConsumeAttributes ( Server.Mobile from, object &message, bool consume ) : bool
from Server.Mobile
message object
consume bool
Résultat bool

ConsumeQuantity() public méthode

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

ConsumeRes() public méthode

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
Résultat bool

ConsumeRes() public méthode

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
Résultat bool

Craft() public méthode

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

CraftItem() public méthode

public CraftItem ( Type type, Server.TextDefinition groupName, Server.TextDefinition name ) : System
type System.Type
groupName Server.TextDefinition
name Server.TextDefinition
Résultat System

Find() public méthode

public Find ( Server.Mobile from, int itemIDs ) : bool
from Server.Mobile
itemIDs int
Résultat bool

Find() public méthode

public Find ( int itemID, int itemIDs ) : bool
itemID int
itemIDs int
Résultat bool

GetExceptionalChance() public méthode

public GetExceptionalChance ( CraftSystem system, double chance, Server.Mobile from ) : double
system CraftSystem
chance double
from Server.Mobile
Résultat double

GetQuantity() public méthode

public GetQuantity ( Server.Items.Container cont, Type types ) : int
cont Server.Items.Container
types System.Type
Résultat int

GetSuccessChance() public méthode

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

IsMarkable() public méthode

public IsMarkable ( Type type ) : bool
type System.Type
Résultat bool

IsQuantityType() public méthode

public IsQuantityType ( Type types ) : bool
types System.Type
Résultat bool

ItemIDOf() public static méthode

public static ItemIDOf ( Type type ) : int
type System.Type
Résultat int

RetainsColor() public static méthode

public static RetainsColor ( Type type ) : bool
type System.Type
Résultat bool

RetainsColorFrom() public méthode

public RetainsColorFrom ( CraftSystem system, Type type ) : bool
system CraftSystem
type System.Type
Résultat bool