File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 5
5
schedule :
6
6
interval : weekly
7
7
- package-ecosystem : cargo
8
- directory : " /"
8
+ directories :
9
+ - client
10
+ - server
9
11
schedule :
10
12
interval : daily
11
13
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export class Control extends EventEmitter {
40
40
}
41
41
42
42
send_ready ( ) {
43
+ console . log ( "Sending ready" ) ;
43
44
this . emit ( "ready" ) ;
44
45
}
45
46
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ async fn main() {
60
60
#[ wasm_bindgen]
61
61
impl RemoteClient {
62
62
pub async fn start ( ) {
63
+ log ( "starting client" ) ;
63
64
panic:: set_hook ( Box :: new ( console_error_panic_hook:: hook) ) ;
64
65
let control = get_control ( ) ;
65
66
let features = Features {
@@ -79,9 +80,11 @@ impl RemoteClient {
79
80
}
80
81
81
82
pub async fn run ( & mut self ) {
83
+ log ( "running client" ) ;
82
84
loop {
83
85
let p = self . control . receive_player_index ( ) . as_f64 ( ) ;
84
86
if let Some ( p) = p {
87
+ log ( & format ! ( "received player index: {}" , p) ) ;
85
88
self . state . control_player = Some ( p as usize ) ;
86
89
self . state . show_player = p as usize ;
87
90
}
You can’t perform that action at this time.
0 commit comments