Exemple #1
0
 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destType)
 {
     if (destType == typeof(string) && value is VEntry)
     {
         VEntry entry  = (VEntry)value;
         int    damage = (int)((1.0f - entry.damage) * 100.0f);
         return(damage + " %");
     }
     return(base.ConvertTo(context, culture, value, destType));
 }
Exemple #2
0
 public void Remove(VEntry zone)
 {
     this.List.Remove(zone);
 }
Exemple #3
0
 public void Add(VEntry zone)
 {
     this.List.Add(zone);
 }