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 ); }
public virtual void AcquireRecipe(Recipe r) { if (r != null) AcquireRecipe(r.ID); }
public virtual bool HasRecipe(Recipe r) { if (r == null) return false; return HasRecipe(r.ID); }
public RecipeScroll( Recipe r ) : this( r.ID ) { }