public void Remove( Module mod ) { Remove( mod.GetType() ); if( Count == 0 ) CentralMemory.Remove( m_Owner ); }
public void Add( Module mod ) { if( ContainsKey( mod.GetType() ) ) return; Add( mod.GetType(), mod ); }
public override void Append(Module mod, bool negatively) { IconsModule im = mod as IconsModule; List<Type> removeList = new List<Type>(); foreach (KeyValuePair<Type,IconInfo> kvp in im.Icons) { if (negatively) removeList.Add(kvp.Value.SpellType); else Add(kvp.Value); } foreach (Type t in removeList) { Remove(t); } removeList.Clear(); }
public override void Append(Module mod, bool negatively) { CastCommandsModule m = mod as CastCommandsModule; List<string> removeList = new List<string>(); foreach (KeyValuePair<string, CastInfo> kvp in m.CastCommands) { if (negatively) removeList.Add(kvp.Key); else Add(kvp.Key, kvp.Value); } foreach (string s in removeList) { Remove(s); } removeList.Clear(); }
public void Append( Module mod, bool negatively ) { if( ContainsKey( mod.GetType() ) ) ((Module)this[ mod.GetType() ]).Append( mod, negatively ); }
public void Change( Module mod ) { if( ContainsKey( mod.GetType() ) ) this[ mod.GetType() ] = mod; }
public override void Append( Module mod, bool negatively ) { }
/* * Append( Module mod, bool negatively ) * This method MUST be inherited. * This method is used to take what is already in CM * and add/subtract from it what is on the Module mod. * if( negatively ) means you want to remove stuff. */ public abstract void Append( Module mod, bool negatively );