Line data Source code
1 : import 'package:fast_immutable_collections/fast_immutable_collections.dart';
2 : import 'package:freezed_annotation/freezed_annotation.dart';
3 : import 'package:redfire/types.dart';
4 : import 'package:ws_game_server_types/ws_game_server_types.dart';
5 :
6 : part 'barriers.freezed.dart';
7 : part 'barriers.g.dart';
8 :
9 : @freezed
10 : class Barriers with _$Barriers, ReduxState {
11 : static const String className = 'Barriers';
12 :
13 2 : Barriers._();
14 : factory Barriers() = _Barriers;
15 :
16 : final IList<Double2> positions = const [
17 : Double2(5, 2),
18 : Double2(5, 3),
19 : Double2(5, 4),
20 : Double2(5, 5),
21 : Double2(5, 6),
22 : Double2(5, 7),
23 : Double2(5, 8),
24 : Double2(5, 9),
25 : Double2(7, 7),
26 : Double2(7, 8),
27 : Double2(6, 8),
28 : Double2(1, 0),
29 : Double2(1, 1),
30 : Double2(1, 2),
31 : Double2(1, 3),
32 : Double2(1, 4),
33 : Double2(1, 5),
34 : Double2(1, 6),
35 : Double2(1, 7),
36 : Double2(1, 8),
37 : ].lock;
38 :
39 1 : factory Barriers.fromJson(Map<String, Object?> json) =>
40 1 : _$BarriersFromJson(json);
41 :
42 0 : @override
43 : String get typeName => className;
44 : }
|