Skip to content

Commit

Permalink
Update translations and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Aug 26, 2024
1 parent 8fc1b30 commit 410b49f
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 8 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
</div>

<p align="center">
<a href="http://linwood.dev"><b>Website</b></a> •
<a href="http://linwood.dev"><b>Download</b></a> •
<a href="https://linwood.dev/matrix"><b>Matrix</b></a> •
<a href="http://quokka.linwood.dev"><b>Website</b></a> •
<a href="http://quokka.linwood.dev/downloads"><b>Download</b></a> •
<a href="https://go.linwood.dev/matrix"><b>Matrix</b></a> •
<a href="https://go.linwood.dev/discord"><b>Discord</b></a> •
<a href="https://floss.social/@linwood"><b>Mastodon</b></a> •
<a href="https://bsky.app/profile/linwood.dev"><b>Bluesky</b></a> •
Expand All @@ -44,6 +44,7 @@
* Some errors are not displayed
* Packs won't be checked on connecting
* Make sure you have the same packs as the server
* Boards aren't available, currently only figures are supported (see the concept for reference)

## Features

Expand Down
34 changes: 29 additions & 5 deletions api/lib/src/event/event.mapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,17 @@ class WorldInitializedMapper extends SubClassMapperBase<WorldInitialized> {
static int _$id(WorldInitialized v) => v.id;
static const Field<WorldInitialized, int> _f$id =
Field('id', _$id, opt: true, def: kAuthorityChannel);
static Map<String, String> _$packsSignature(WorldInitialized v) =>
v.packsSignature;
static const Field<WorldInitialized, Map<String, String>> _f$packsSignature =
Field('packsSignature', _$packsSignature, opt: true, def: const {});

@override
final MappableFields<WorldInitialized> fields = const {
#table: _f$table,
#teamMembers: _f$teamMembers,
#id: _f$id,
#packsSignature: _f$packsSignature,
};

@override
Expand All @@ -225,7 +230,8 @@ class WorldInitializedMapper extends SubClassMapperBase<WorldInitialized> {
return WorldInitialized(
table: data.dec(_f$table),
teamMembers: data.dec(_f$teamMembers),
id: data.dec(_f$id));
id: data.dec(_f$id),
packsSignature: data.dec(_f$packsSignature));
}

@override
Expand Down Expand Up @@ -285,8 +291,14 @@ abstract class WorldInitializedCopyWith<$R, $In extends WorldInitialized, $Out>
GameTableCopyWith<$R, GameTable, GameTable> get table;
MapCopyWith<$R, String, Set<int>, ObjectCopyWith<$R, Set<int>, Set<int>>>
get teamMembers;
MapCopyWith<$R, String, String, ObjectCopyWith<$R, String, String>>
get packsSignature;
@override
$R call({GameTable? table, Map<String, Set<int>>? teamMembers, int? id});
$R call(
{GameTable? table,
Map<String, Set<int>>? teamMembers,
int? id,
Map<String, String>? packsSignature});
WorldInitializedCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t);
}
Expand All @@ -309,17 +321,29 @@ class _WorldInitializedCopyWithImpl<$R, $Out>
(v, t) => ObjectCopyWith(v, $identity, t),
(v) => call(teamMembers: v));
@override
$R call({GameTable? table, Map<String, Set<int>>? teamMembers, int? id}) =>
MapCopyWith<$R, String, String, ObjectCopyWith<$R, String, String>>
get packsSignature => MapCopyWith(
$value.packsSignature,
(v, t) => ObjectCopyWith(v, $identity, t),
(v) => call(packsSignature: v));
@override
$R call(
{GameTable? table,
Map<String, Set<int>>? teamMembers,
int? id,
Map<String, String>? packsSignature}) =>
$apply(FieldCopyWithData({
if (table != null) #table: table,
if (teamMembers != null) #teamMembers: teamMembers,
if (id != null) #id: id
if (id != null) #id: id,
if (packsSignature != null) #packsSignature: packsSignature
}));
@override
WorldInitialized $make(CopyWithData data) => WorldInitialized(
table: data.get(#table, or: $value.table),
teamMembers: data.get(#teamMembers, or: $value.teamMembers),
id: data.get(#id, or: $value.id));
id: data.get(#id, or: $value.id),
packsSignature: data.get(#packsSignature, or: $value.packsSignature));

@override
WorldInitializedCopyWith<$R2, WorldInitialized, $Out2> $chain<$R2, $Out2>(
Expand Down
54 changes: 54 additions & 0 deletions app/pack/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
"skat": {
"name": "Skat",
"description": "A deck with 32 cards for playing Skat."
},
"dices": {
"name": "Dices",
"description": "A set of dices."
},
"chips": {
"name": "Chips",
"description": "A set of chips."
}
},
"backgrounds": {
Expand Down Expand Up @@ -214,6 +222,52 @@
"name": "Mixed Joker"
}
}
},
"d6": {
"name": "D6",
"variations": {
"1": {
"name": "1"
},
"2": {
"name": "2"
},
"3": {
"name": "3"
},
"4": {
"name": "4"
},
"5": {
"name": "5"
},
"6": {
"name": "6"
}
}
},
"chips": {
"name": "Chips",
"variations": {
"white": {
"name": "White Chip"
},
"black": {
"name": "Black Chip"
},
"red": {
"name": "Red Chip"
},
"yellow": {
"name": "Yellow Chip"
},
"green": {
"name": "Green Chip"
},
"blue": {
"name": "Blue Chip"
}
}
}
}
}

0 comments on commit 410b49f

Please sign in to comment.