C# Class Server.Engines.Craft.CraftSystem

Datei anzeigen Open project: Grimoric/RunUO.T2A Class Usage Examples

Public Methods

Method 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

Method Description
DoGroup ( TextDefinition groupName, CraftItem craftItem ) : void

Method Details

AddCraft() public method

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
return int

AddCraft() public method

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
return int

AddRes() public method

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

AddSkill() public method

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

AddSubRes() public method

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

CanCraft() public abstract method

public abstract CanCraft ( Mobile from, BaseTool tool, Type itemType ) : int
from Mobile
tool BaseTool
itemType Type
return int

ConsumeOnFailure() public method

public ConsumeOnFailure ( Mobile from, Type resourceType, CraftItem craftItem ) : bool
from Mobile
resourceType Type
craftItem CraftItem
return bool

CraftSystem() public method

public CraftSystem ( int minCraftEffect, int maxCraftEffect, double delay ) : System
minCraftEffect int
maxCraftEffect int
delay double
return System

CreateItem() public method

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

GetChanceAtMin() public abstract method

public abstract GetChanceAtMin ( CraftItem item ) : double
item CraftItem
return double

GetContext() public method

public GetContext ( Mobile m ) : CraftContext
m Mobile
return CraftContext

InitCraftList() public abstract method

public abstract InitCraftList ( ) : void
return void

PlayCraftEffect() public abstract method

public abstract PlayCraftEffect ( Mobile from ) : void
from Mobile
return void

PlayEndingEffect() public abstract method

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
return int

RetainsColorFrom() public method

public RetainsColorFrom ( CraftItem item, Type type ) : bool
item CraftItem
type Type
return bool

SetManaReq() public method

public SetManaReq ( int index, int mana ) : void
index int
mana int
return void

SetNeedHeat() public method

public SetNeedHeat ( int index, bool needHeat ) : void
index int
needHeat bool
return void

SetNeedMill() public method

public SetNeedMill ( int index, bool needMill ) : void
index int
needMill bool
return void

SetNeedOven() public method

public SetNeedOven ( int index, bool needOven ) : void
index int
needOven bool
return void

SetSubRes() public method

public SetSubRes ( Type type, int name ) : void
type Type
name int
return void

SetUseAllRes() public method

public SetUseAllRes ( int index, bool useAll ) : void
index int
useAll bool
return void