mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 17:06:50 +08:00 
			
		
		
		
	 b25b935644
			
		
	
	b25b935644
	
	
	
		
			
			Adding a bridge library for integral_isolates adding support for components to run CPU intensive code with a function similar to Flutter's compute function, but with a long lived isolate. Lifecycle is handled by the game loop, where the isolate would live between onMount and onRemove.
		
			
				
	
	
		
			6 lines
		
	
	
		
			105 B
		
	
	
	
		
			Dart
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			105 B
		
	
	
	
		
			Dart
		
	
	
		
			Executable File
		
	
	
	
	
| import 'package:flame/components.dart';
 | |
| 
 | |
| mixin Terrain on PositionComponent {
 | |
|   double get difficulty;
 | |
| }
 |