public static void RemoveKeys(Container cont, uint keyValue) { if (cont == null || keyValue == 0) { return; } Item[] items = cont.FindItemsByType(new Type[] { typeof(Key), typeof(KeyRing) }); foreach (Item item in items) { if (item is Key) { Key key = (Key)item; if (key.KeyValue == keyValue) { key.Delete(); } } else { KeyRing keyRing = (KeyRing)item; keyRing.RemoveKeys(keyValue); } } }
public static bool ContainsKey(Container cont, uint keyValue) { if (cont == null) { return(false); } Item[] items = cont.FindItemsByType(new Type[] { typeof(Key), typeof(KeyRing) }); foreach (Item item in items) { if (item is Key) { Key key = (Key)item; if (key.KeyValue == keyValue) { return(true); } } else { KeyRing keyRing = (KeyRing)item; if (keyRing.ContainsKey(keyValue)) { return(true); } } } return(false); }
public UnlockTarget(KeyRing keyring) : base(10, false, TargetFlags.None) { m_KeyRing = keyring; CheckLOS = false; }
public InternalTarget(KeyRing keyRing) : base(-1, false, TargetFlags.None) { m_KeyRing = keyRing; }
public InternalTarget(KeyRing keyRing) : base(-1, false, TargetFlags.None) { this.m_KeyRing = keyRing; }
public RingUnlockTarget(KeyRing keyring) : base(keyring.MaxRange, false, TargetFlags.None) { m_KeyRing = keyring; CheckLOS = false; }
public UnlockTarget( KeyRing keyring ) : base( 10, false, TargetFlags.None ) { m_KeyRing = keyring; CheckLOS = false; }
public InternalTarget(KeyRing keyRing) : base(-1, false, TargetFlags.None) { CheckLOS = false; m_KeyRing = keyRing; }
public RingUnlockTarget( KeyRing keyring ) : base( keyring.MaxRange, false, TargetFlags.None ) { m_KeyRing = keyring; CheckLOS = false; }
public KeyRingRenamePrompt( Mobile m, KeyRing cont ) { m_Mobile = m; i_KeyRing = cont; }
public KeyRingRenameEntry( Mobile from, KeyRing cont ) : base(5104) { m_From = from; i_KeyRing = cont; }