C# Class Server.Engines.Craft.CraftSystem

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

Méthodes publiques

Méthode Description
AddCraft ( Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message ) : int
AddCraft ( Type typeItem, TextDefinition group, TextDefinition name, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message ) : int
AddRes ( int index, Type type, TextDefinition name, int amount, TextDefinition message ) : void
AddSkill ( int index, SkillName skillToMake, double minSkill, double maxSkill ) : void
AddSubRes ( Type type, int name, double reqSkill, int genericName, object message ) : void
CanCraft ( Mobile from, BaseTool tool, Type itemType ) : int
ConsumeOnFailure ( Mobile from, Type resourceType, CraftItem craftItem ) : bool
CraftSystem ( int minCraftEffect, int maxCraftEffect, double delay ) : System
CreateItem ( Mobile from, Type type, Type typeRes, BaseTool tool, CraftItem realCraftItem ) : void
GetChanceAtMin ( CraftItem item ) : double
GetContext ( Mobile m ) : CraftContext
InitCraftList ( ) : void
PlayCraftEffect ( Mobile from ) : void
PlayEndingEffect ( Mobile from, bool failed, bool lostMaterial, bool toolBroken, int quality, bool makersMark, CraftItem item ) : int
RetainsColorFrom ( CraftItem item, Type type ) : bool
SetManaReq ( int index, int mana ) : void
SetNeedHeat ( int index, bool needHeat ) : void
SetNeedMill ( int index, bool needMill ) : void
SetNeedOven ( int index, bool needOven ) : void
SetSubRes ( Type type, int name ) : void
SetUseAllRes ( int index, bool useAll ) : void

Private Methods

Méthode Description
DoGroup ( TextDefinition groupName, CraftItem craftItem ) : void

Method Details

AddCraft() public méthode

public AddCraft ( Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message ) : int
typeItem System.Type
group TextDefinition
name TextDefinition
skillToMake SkillName
minSkill double
maxSkill double
typeRes System.Type
nameRes TextDefinition
amount int
message TextDefinition
Résultat int

AddCraft() public méthode

public AddCraft ( Type typeItem, TextDefinition group, TextDefinition name, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message ) : int
typeItem System.Type
group TextDefinition
name TextDefinition
minSkill double
maxSkill double
typeRes System.Type
nameRes TextDefinition
amount int
message TextDefinition
Résultat int

AddRes() public méthode

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

AddSkill() public méthode

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

AddSubRes() public méthode

public AddSubRes ( Type type, int name, double reqSkill, int genericName, object message ) : void
type System.Type
name int
reqSkill double
genericName int
message object
Résultat void

CanCraft() public abstract méthode

public abstract CanCraft ( Mobile from, BaseTool tool, Type itemType ) : int
from Mobile
tool BaseTool
itemType Type
Résultat int

ConsumeOnFailure() public méthode

public ConsumeOnFailure ( Mobile from, Type resourceType, CraftItem craftItem ) : bool
from Mobile
resourceType Type
craftItem CraftItem
Résultat bool

CraftSystem() public méthode

public CraftSystem ( int minCraftEffect, int maxCraftEffect, double delay ) : System
minCraftEffect int
maxCraftEffect int
delay double
Résultat System

CreateItem() public méthode

public CreateItem ( Mobile from, Type type, Type typeRes, BaseTool tool, CraftItem realCraftItem ) : void
from Mobile
type Type
typeRes Type
tool BaseTool
realCraftItem CraftItem
Résultat void

GetChanceAtMin() public abstract méthode

public abstract GetChanceAtMin ( CraftItem item ) : double
item CraftItem
Résultat double

GetContext() public méthode

public GetContext ( Mobile m ) : CraftContext
m Mobile
Résultat CraftContext

InitCraftList() public abstract méthode

public abstract InitCraftList ( ) : void
Résultat void

PlayCraftEffect() public abstract méthode

public abstract PlayCraftEffect ( Mobile from ) : void
from Mobile
Résultat void

PlayEndingEffect() public abstract méthode

public abstract PlayEndingEffect ( Mobile from, bool failed, bool lostMaterial, bool toolBroken, int quality, bool makersMark, CraftItem item ) : int
from Mobile
failed bool
lostMaterial bool
toolBroken bool
quality int
makersMark bool
item CraftItem
Résultat int

RetainsColorFrom() public méthode

public RetainsColorFrom ( CraftItem item, Type type ) : bool
item CraftItem
type Type
Résultat bool

SetManaReq() public méthode

public SetManaReq ( int index, int mana ) : void
index int
mana int
Résultat void

SetNeedHeat() public méthode

public SetNeedHeat ( int index, bool needHeat ) : void
index int
needHeat bool
Résultat void

SetNeedMill() public méthode

public SetNeedMill ( int index, bool needMill ) : void
index int
needMill bool
Résultat void

SetNeedOven() public méthode

public SetNeedOven ( int index, bool needOven ) : void
index int
needOven bool
Résultat void

SetSubRes() public méthode

public SetSubRes ( Type type, int name ) : void
type Type
name int
Résultat void

SetUseAllRes() public méthode

public SetUseAllRes ( int index, bool useAll ) : void
index int
useAll bool
Résultat void