Ejemplo n.º 1
0
 void _RemoveComponent(ElementTag tagEntity, IFlyweightGraphicComponent com)
 {
     if (!flyweightComponents[com].Remove(tagEntity))
     {
         //no data to remove - dispose comp
         com.Dispose();
     }
     entityHas[tagEntity].Remove(com.GetType());
     notify.NotifyChange(com);
 }