예제 #1
0
 protected virtual bool OnDeactivate(
     Mobile m,
     Tuple <EquipmentSetPart, Item>[] equipped,
     Tuple <EquipmentSetPart, Item> removed,
     EquipmentSetMod mod)
 {
     return(m != null && !m.Deleted && equipped != null && mod != null && mod.IsActive(m));
 }
예제 #2
0
 public bool Deactivate(
     Mobile m,
     Tuple <EquipmentSetPart, Item>[] equipped,
     Tuple <EquipmentSetPart, Item> added,
     EquipmentSetMod mod)
 {
     return(OnDeactivate(m, equipped, added, mod) && mod.Deactivate(m, equipped));
 }
예제 #3
0
 public void Add(EquipmentSetMod mod)
 {
     Mods.Add(mod);
 }
예제 #4
0
 public bool Remove(EquipmentSetMod mod)
 {
     return(Mods.Remove(mod));
 }
예제 #5
0
 public bool Contains(EquipmentSetMod mod)
 {
     return(Mods.Contains(mod));
 }