File tree Expand file tree Collapse file tree 6 files changed +36
-31
lines changed Expand file tree Collapse file tree 6 files changed +36
-31
lines changed Original file line number Diff line number Diff line change 60
60
- name : Run build_runner
61
61
if : matrix.projects == 'api' || matrix.projects == 'app'
62
62
run : dart run build_runner build --delete-conflicting-outputs
63
+ - name : Run format for generated files
64
+ if : matrix.projects == 'api' || matrix.projects == 'app'
65
+ run : dart format .
63
66
- name : Test for git changes
64
67
run : git diff --exit-code
65
68
# Your project will need to have tests in test/ and a dependency on
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ class NetworkService {
155
155
),
156
156
ListGameServer () => cached[server] = fetchInfo (
157
157
server.buildAddress (webSockets: false ),
158
- ).onError ((_, __ ) => null ),
158
+ ).onError ((_, _ ) => null ),
159
159
};
160
160
}
161
161
Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ Future<void> main() async {
19
19
print ("SANDBOX: ${p0 }" );
20
20
},
21
21
);
22
- callback.changeStateFieldAccess (stateFieldAccess: (p0) {
23
- print ("FIELD: ${p0 }" );
24
- return '{"key": "value"}' ;
25
- });
22
+ callback.changeStateFieldAccess (
23
+ stateFieldAccess: (p0) {
24
+ print ("FIELD: ${p0 }" );
25
+ return '{"key": "value"}' ;
26
+ },
27
+ );
26
28
final plugin = LuauPlugin (code: LUA_SCRIPT , callback: callback);
27
29
try {
28
30
await plugin.run ();
Original file line number Diff line number Diff line change @@ -47,18 +47,20 @@ Future<void> onLoad(SetonixServer server) async {
47
47
server.defaultEventSystem
48
48
..on < ObjectsMoved > ((e) {
49
49
print ("Listener was called, opening dialog" );
50
- server.sendEvent (DialogOpened (
51
- GameDialog (id: "testDialog" , title: "TestDialog" , image: "logo" )
52
- .markdown (testContent)
53
- .textField (
54
- "TestTextField" ,
55
- id: "testTextField" ,
56
- placeholder: "TestPlaceholder" ,
57
- multiline: true ,
58
- password: true ,
59
- )
60
- .action (GameDialogButton ("TestButton" )),
61
- ));
50
+ server.sendEvent (
51
+ DialogOpened (
52
+ GameDialog (id: "testDialog" , title: "TestDialog" , image: "logo" )
53
+ .markdown (testContent)
54
+ .textField (
55
+ "TestTextField" ,
56
+ id: "testTextField" ,
57
+ placeholder: "TestPlaceholder" ,
58
+ multiline: true ,
59
+ password: true ,
60
+ )
61
+ .action (GameDialogButton ("TestButton" )),
62
+ ),
63
+ );
62
64
})
63
65
..on < UserJoined > ((e) {
64
66
print ("play joined" );
Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ Future<void> onLoad(SetonixServer server) async {
22
22
objects.add (object);
23
23
}
24
24
// Send the event to all clients
25
- server
26
- .sendEvent (ObjectsSpawned (e.clientEvent.table, {event.to: objects}));
25
+ server.sendEvent (
26
+ ObjectsSpawned (e.clientEvent.table, {event.to: objects}),
27
+ );
27
28
// Cancel the event
28
29
e.cancel ();
29
30
}
Original file line number Diff line number Diff line change @@ -8,18 +8,15 @@ Future<void> onLoad(SetonixServer server) async {
8
8
print ("on load was called" );
9
9
server.defaultEventSystem
10
10
..on < UserJoined > ((e) {
11
- server.sendEvent (DialogOpened (GameDialog (
12
- id: "joinDialog" ,
13
- title: "Please login" ,
14
- )
15
- .textField ("Username" , id: "username" )
16
- .textField (
17
- "Password" ,
18
- id: "password" ,
19
- password: true ,
20
- )
21
- .action (GameDialogButton ("Login" , id: "login" ))
22
- .action (GameDialogButton ("Register" , id: "register" ))));
11
+ server.sendEvent (
12
+ DialogOpened (
13
+ GameDialog (id: "joinDialog" , title: "Please login" )
14
+ .textField ("Username" , id: "username" )
15
+ .textField ("Password" , id: "password" , password: true )
16
+ .action (GameDialogButton ("Login" , id: "login" ))
17
+ .action (GameDialogButton ("Register" , id: "register" )),
18
+ ),
19
+ );
23
20
})
24
21
..on < DialogCloseRequest > ((e) {
25
22
final event = e.clientEvent;
You can’t perform that action at this time.
0 commit comments