code top-level constant

String const code

The default code for bin/game.dart..

Implementation

const code = '''/// {worldTitle}.
import 'package:worldsmith/world_context.dart';

const encryptionKey = '{encryptionKey}';

Future<void> main() async {
  final worldContext = WorldContext.loadEncrypted(encryptionKey: encryptionKey);
  await worldContext.run();
}
''';