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); }
public unsafe static long $Invoke1(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(BoardUtils.CheckIfCellShieldBorderIsFromShieldTarget((SmartEntity)GCHandledObjects.GCHandleToObject(*args), (BoardCell <Entity>)GCHandledObjects.GCHandleToObject(args[1])))); }