Esempio n. 1
0
 public override bool HandleEvent(GetDisplayNameEvent E)
 {
     if (this.stage > 0)
     {
         E.AddClause("&y[" + debugstring() + "&y]");
     }
     return(true);
 }
Esempio n. 2
0
 public override bool HandleEvent(GetDisplayNameEvent E)
 {
     if (ParentObject.GetPart <Inventory>() != null && ParentObject.GetPart <Inventory>().Objects.Count() > 0)
     {
         int count = 0;
         foreach (GameObject GO in ParentObject.GetPart <Inventory>().GetObjects())
         {
             count += GO.Count;
         }
         E.AddClause(" &y[" + count + " items]");
     }
     return(true);
 }