public override List<Attribute> GetAttributes()
{
if (world == null) {
return new List<Attribute> {
new StringAttribute(name, 150),
new StringAttribute(city, 80),
new StringAttribute(sqm.ToString(), 50),
new StringAttribute(beds.ToString(), 50) };
}
return new List<Attribute> {
new StringAttribute(name, 150),
new StringAttribute(city, 80),
new StringAttribute(sqm.ToString(), 50),
new StringAttribute(beds.ToString(), 50),
new BooleanAttribute(!occupied),
new StringAttribute(occupied || bid < 0 ? "-" : Item.ConvertGoldToString(bid), 50),
new StringAttribute(occupied || hoursleft < 0 ? "-" : (hoursleft < 24 ? String.Format("{0}h", hoursleft) : String.Format("{0}D", hoursleft/24)), 50) };
}