本文整理汇总了C#中Server.Engines.Craft.Recipe类的典型用法代码示例。如果您正苦于以下问题:C# Recipe类的具体用法?C# Recipe怎么用?C# Recipe使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Recipe类属于Server.Engines.Craft命名空间,在下文中一共展示了Recipe类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddRecipe
public void AddRecipe( int id, CraftSystem system )
{
if( m_Recipe != null )
{
Console.WriteLine( "Warning: Attempted add of recipe #{0} to the crafting of {1} in CraftSystem {2}.", id, this.m_Type.Name, system );
return;
}
m_Recipe = new Recipe( id, system, this );
}
示例2: AcquireRecipe
public virtual void AcquireRecipe(Recipe r)
{
if (r != null)
AcquireRecipe(r.ID);
}
示例3: HasRecipe
public virtual bool HasRecipe(Recipe r)
{
if (r == null)
return false;
return HasRecipe(r.ID);
}
示例4: RecipeScroll
public RecipeScroll( Recipe r )
: this( r.ID )
{
}