Exemplo n.º 1
0
Arquivo: ObjCell.cs Projeto: klp2/ACE
 public void remove_shadow_object(ShadowObj shadowObj)
 {
     // multiple shadows?
     ShadowObjectList.Remove(shadowObj);
     shadowObj.Cell = null;
     NumShadowObjects--;
 }
Exemplo n.º 2
0
 public void AddShadowObject(ShadowObj shadowObj)
 {
     readerWriterLockSlim.EnterWriteLock();
     try
     {
         ShadowObjectList.Add(shadowObj);
         NumShadowObjects++; // can probably replace with .Count
         shadowObj.Cell = this;
     }
     finally
     {
         readerWriterLockSlim.ExitWriteLock();
     }
 }
Exemplo n.º 3
0
 public void remove_shadow_object(ShadowObj shadowObj)
 {
     readerWriterLockSlim.EnterWriteLock();
     try
     {
         // multiple shadows?
         ShadowObjectList.Remove(shadowObj);
         shadowObj.Cell = null;
         NumShadowObjects--;
     }
     finally
     {
         readerWriterLockSlim.ExitWriteLock();
     }
 }
Exemplo n.º 4
0
 public void AddShadowObject(ShadowObj shadowObj)
 {
     ShadowObjectList.Add(shadowObj);
     NumShadowObjects++;     // can probably replace with .Count
     shadowObj.Cell = this;
 }