- 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
20 lines
492 B
Dart
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}),
|
|
),
|
|
)
|
|
];
|
|
}
|
|
}
|