public override IEnumerable <string> RenderToLocation() { var decorators = FullContext.Where(adj => adj.GetType() == typeof(Descriptor) && ((Descriptor)adj).Applied).Select(desc => desc.Name); var sb = new List <string> { string.Format("A {1} {0}<sup><a href='#' class='entityInfo' entityType='thing' entityName='{0}'>?</a></sup> is here.", Name, String.Join(",", decorators)) }; return(sb); }
public override IEnumerable <string> RenderToLocation() { var decorators = FullContext.Where(adj => adj.GetType() == typeof(Descriptor) && ((Descriptor)adj).Applied).Select(desc => desc.Name); var sb = new List <string>(); if (decorators.Count() > 0) { sb.Add(string.Format("{0}<sup><a href='#' class='entityInfo' entityType='persona' entityName='{0}'>?</a></sup> is standing here appearing quite {1}.", Name, String.Join(",", decorators))); } else { sb.Add(string.Format("{0}<sup><a href='#' class='entityInfo' entityType='persona' entityName='{0}'>?</a></sup> is standing here.", Name)); } return(sb); }
private IEnumerable <string> RenderSelf() { var decorators = FullContext.Where(adj => adj.GetType() == typeof(Descriptor) && ((Descriptor)adj).Applied).Select(desc => desc.Name); var sb = new List <string>(); if (decorators.Count() > 0) { sb.Add(string.Format("It is quite {0} here.", String.Join(",", decorators))); } foreach (var place in LinkedPlaces) { var adjective = place.FullContext.FirstOrDefault(ctx => ctx.GetType() == typeof(Descriptor)); sb.Add(string.Format("A {1} doorway marked <a href=\"/existence/{0}\">{0}</a> is here.", place.Name, adjective?.Name)); } return(sb); }