where and how do i put the bracket, and is it } or ]? (sorry im know noithing of C#)
public abstract class BaseHops : Item
{
private HopsVariety m_Variety;
[CommandProperty( AccessLevel.GameMaster )]
public HopsVariety Variety
{
get{ return m_Variety; }
set{ m_Variety = value; InvalidateProperties(); }
}
// string ICommodity.Description
{
get
{
return String.Format( Amount == 1 ? "{0} {1} hops" : "{0} {1} hops", Amount, BrewingResources.GetName( m_Variety ).ToLower() );
}
}
heres the code piece im fixing, the portion is in red.
public abstract class BaseHops : Item
{
private HopsVariety m_Variety;
[CommandProperty( AccessLevel.GameMaster )]
public HopsVariety Variety
{
get{ return m_Variety; }
set{ m_Variety = value; InvalidateProperties(); }
}
// string ICommodity.Description
{
get
{
return String.Format( Amount == 1 ? "{0} {1} hops" : "{0} {1} hops", Amount, BrewingResources.GetName( m_Variety ).ToLower() );
}
}
heres the code piece im fixing, the portion is in red.