Skip to content

Commit 2a98499

Browse files
authored
Merge pull request #544 from aaronfranke/enums
Add trailing commas to enums
2 parents 4bba072 + 159adfd commit 2a98499

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

2d/gd_paint/paint_control.gd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ const IMAGE_SIZE = Vector2(930, 720)
99

1010
# Enums for the various modes and brush shapes that can be applied.
1111
enum BrushModes {
12-
PENCIL, ERASER, CIRCLE_SHAPE, RECTANGLE_SHAPE
12+
PENCIL,
13+
ERASER,
14+
CIRCLE_SHAPE,
15+
RECTANGLE_SHAPE,
1316
}
17+
1418
enum BrushShapes {
15-
RECTANGLE, CIRCLE
19+
RECTANGLE,
20+
CIRCLE,
1621
}
1722

1823
# The top-left position of the canvas.

2d/physics_platformer/enemy/enemy.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const WALK_SPEED = 50
55

66
enum State {
77
WALKING,
8-
DYING
8+
DYING,
99
}
1010

1111
var state = State.WALKING

2d/platformer/src/Actors/Enemy.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extends Actor
44

55
enum State {
66
WALKING,
7-
DEAD
7+
DEAD,
88
}
99

1010
var _state = State.WALKING

mono/android_iap/GodotGooglePlayBilling/GooglePlayBilling.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
66
public enum PurchaseType
77
{
88
InApp,
9-
Subs
9+
Subs,
1010
}
1111

1212
public class GooglePlayBilling : Node

mono/android_iap/GodotGooglePlayBilling/Purchase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public enum PurchaseState
99
{
1010
UnspecifiedState = 0,
1111
Purchased = 1,
12-
Pending = 2
12+
Pending = 2,
1313
}
1414

1515
public class Purchase

0 commit comments

Comments
 (0)