Exemplo n.º 1
0
        bool CanUnload()
        {
            if (checkTerrainType)
            {
                var terrainType = self.World.Map.GetTerrainInfo(self.Location).Type;

                if (!Info.UnloadTerrainTypes.Contains(terrainType))
                {
                    return(false);
                }
            }

            return(!IsEmpty(self) && (helicopter == null || helicopter.CanLand(self.Location)) &&
                   CurrentAdjacentCells != null && CurrentAdjacentCells.Any(c => Passengers.Any(p => p.Trait <IPositionable>().CanEnterCell(c))));
        }
Exemplo n.º 2
0
 bool CanUnload()
 {
     return(!IsEmpty(self) && (helicopter == null || helicopter.CanLand(self.Location)) &&
            CurrentAdjacentCells != null && CurrentAdjacentCells.Any(c => Passengers.Any(p => p.Trait <IPositionable>().CanEnterCell(c))));
 }