예제 #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));
 }
예제 #2
0
 public void Remove(VEntry zone)
 {
     this.List.Remove(zone);
 }
예제 #3
0
 public void Add(VEntry zone)
 {
     this.List.Add(zone);
 }