本文整理汇总了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;
}