Skip to content

Commit

Permalink
Update enums.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
ufrshubham committed Nov 3, 2023
1 parent d15fa3c commit 7e58b48
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/tiled/lib/src/common/enums.dart
Original file line number Diff line number Diff line change
Expand Up @@ -373,39 +373,39 @@ extension TilesetTypeParser on Parser {

enum ObjectAlignment {
unspecified,
topleft,
topLeft,
top,
topright,
topRight,
left,
center,
right,
bottomleft,
bottomLeft,
bottom,
bottomright,
bottomRight,
}

extension ObjectAlignmentExtension on ObjectAlignment {
String get name {
switch (this) {
case ObjectAlignment.unspecified:
return 'unspecified';
case ObjectAlignment.topleft:
case ObjectAlignment.topLeft:
return 'topleft';
case ObjectAlignment.top:
return 'top';
case ObjectAlignment.topright:
case ObjectAlignment.topRight:
return 'topright';
case ObjectAlignment.left:
return 'left';
case ObjectAlignment.center:
return 'center';
case ObjectAlignment.right:
return 'right';
case ObjectAlignment.bottomleft:
case ObjectAlignment.bottomLeft:
return 'bottomleft';
case ObjectAlignment.bottom:
return 'bottom';
case ObjectAlignment.bottomright:
case ObjectAlignment.bottomRight:
return 'bottomright';
}
}
Expand Down

0 comments on commit 7e58b48

Please sign in to comment.