本文整理匯總了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 )
{
}