Example #1
0
File: ObjCell.cs Project: klp2/ACE
 public void remove_shadow_object(ShadowObj shadowObj)
 {
     // multiple shadows?
     ShadowObjectList.Remove(shadowObj);
     shadowObj.Cell = null;
     NumShadowObjects--;
 }
Example #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();
     }
 }
Example #3
0
 public void remove_shadow_object(ShadowObj shadowObj)
 {
     readerWriterLockSlim.EnterWriteLock();
     try
     {
         // multiple shadows?
         ShadowObjectList.Remove(shadowObj);
         shadowObj.Cell = null;
         NumShadowObjects--;
     }
     finally
     {
         readerWriterLockSlim.ExitWriteLock();
     }
 }
Example #4
0
 public void AddShadowObject(ShadowObj shadowObj)
 {
     ShadowObjectList.Add(shadowObj);
     NumShadowObjects++;     // can probably replace with .Count
     shadowObj.Cell = this;
 }