本文整理匯總了C#中Server.Engines.Craft.CraftItem.AddSkill方法的典型用法代碼示例。如果您正苦於以下問題:C# CraftItem.AddSkill方法的具體用法?C# CraftItem.AddSkill怎麽用?C# CraftItem.AddSkill使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server.Engines.Craft.CraftItem
的用法示例。
在下文中一共展示了CraftItem.AddSkill方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: AddCraft
public int AddCraft(Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message)
{
CraftItem craftItem = new CraftItem(typeItem, group, name);
craftItem.AddRes(typeRes, nameRes, amount, message);
craftItem.AddSkill(skillToMake, minSkill, maxSkill);
this.DoGroup(group, craftItem);
return this.m_CraftItems.Add(craftItem);
}
示例2: AddCraft
public int AddCraft( Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message )
{
CraftItem craftItem = new CraftItem( typeItem, group, name );
craftItem.AddRes( typeRes, nameRes, amount, message );
//craftItem.AddSkill( skillToMake, minSkill, maxSkill ); MOD TO GLOBALLY CHANGE ALL DIFFICULTIES
if( typeof(IEasyCraft).IsAssignableFrom(typeItem) )
craftItem.AddSkill( skillToMake, 0.0, 0.0 );
else
craftItem.AddSkill( skillToMake, 0.5, 105.0 );
DoGroup( group, craftItem );
return m_CraftItems.Add( craftItem );
}
示例3: AddCraft
public int AddCraft( Type typeItem, string strGroup, string strName, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, string nameRes, int amount, string strMessage)
{
CraftItem craftItem = new CraftItem( typeItem, strGroup, strName );
craftItem.AddRes( typeRes, nameRes, amount, strMessage );
craftItem.AddSkill( skillToMake, minSkill, maxSkill );
DoGroup( strGroup, craftItem );
return m_CraftItems.Add( craftItem );
}
示例4: AddCraft
public CraftItem AddCraft( int index, Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message )
{
CraftItem craftItem = new CraftItem( typeItem, group, name );
craftItem.AddRes( typeRes, nameRes, amount, message );
craftItem.AddSkill( skillToMake, minSkill, maxSkill );
craftItem.CraftId = index;
if ( typeItem != null )
DoGroup( group, index, craftItem );
m_CraftItems.Add( index, craftItem );
return craftItem;
}