Ejemplo n.º 1
0
		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 );
		}
Ejemplo n.º 2
0
 public virtual void AcquireRecipe(Recipe r)
 {
     if (r != null)
         AcquireRecipe(r.ID);
 }
Ejemplo n.º 3
0
        public virtual bool HasRecipe(Recipe r)
        {
            if (r == null)
                return false;

            return HasRecipe(r.ID);
        }
Ejemplo n.º 4
0
		public RecipeScroll( Recipe r )
			: this( r.ID )
		{
		}