5ef59d9980
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
24 lines
600 B
Dart
24 lines
600 B
Dart
library;
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:wolf_3d_flutter/wolf_3d_flutter.dart';
|
|
|
|
/// Minimal app shell that binds a prepared [Wolf3dFlutterEngine] instance to
|
|
/// host screens.
|
|
class Wolf3dApp extends StatelessWidget {
|
|
/// Shared initialized facade that owns game data, input, and audio services.
|
|
final Wolf3dFlutterEngine wolf3d;
|
|
|
|
const Wolf3dApp({
|
|
super.key,
|
|
required this.wolf3d,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return wolf3d.availableGames.isEmpty
|
|
? const NoGameDataScreen()
|
|
: GameScreen(wolf3d: wolf3d);
|
|
}
|
|
}
|