wonders/lib/logic/timeline_logic.dart
Eddie 466fe074b8 Initial stab at swapping locales, work in progress
- stubbed in button for testing locale switching, needs design polish and direction on whether the button is available at all times or just in menu
- tested and fixed switching on the fly for wonder views, intro, timeline, artifacts, and menu
2022-09-06 15:13:36 -06:00

20 lines
492 B
Dart

import 'package:wonders/common_libs.dart';
import 'package:wonders/logic/common/string_utils.dart';
import 'package:wonders/logic/data/timeline_data.dart';
class TimelineLogic {
List<TimelineEvent> events = [];
void init() {
events = [
...GlobalEventsData().globalEvents,
...wondersLogic.all.map(
(w) => TimelineEvent(
w.startYr,
StringUtils.supplant($strings.timelineLabelConstruction, {'{title}': w.title}),
),
)
];
}
}