Esempio n. 1
0
 private static bool UpdateHitShieldCellAndReturnIfItIsFromTarget(SmartEntity target, BoardCell cell, ref BoardCell hitShieldCell)
 {
     if ((cell.Flags & 8u) != 0u)
     {
         if (hitShieldCell == null)
         {
             hitShieldCell = cell;
         }
         if (BoardUtils.CheckIfCellShieldBorderIsFromShieldTarget(target, cell))
         {
             return(true);
         }
     }
     return(false);
 }
Esempio n. 2
0
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(BoardUtils.CheckIfCellShieldBorderIsFromShieldTarget((SmartEntity)GCHandledObjects.GCHandleToObject(*args), (BoardCell <Entity>)GCHandledObjects.GCHandleToObject(args[1]))));
 }