Add trigger de/activate to protocol
This commit is contained in:
parent
56e4875a7b
commit
32299fa11a
@ -252,6 +252,16 @@ impl NetworkManager {
|
||||
game.bind_mut().opts = opts;
|
||||
}
|
||||
}
|
||||
Package::TriggerActivate(id, player_id) => {
|
||||
if let Some(game) = &mut Game::singleton() {
|
||||
game.bind_mut().on_trigger_activate(id, player_id);
|
||||
}
|
||||
}
|
||||
Package::TriggerDeactivate(id) => {
|
||||
if let Some(game) = &mut Game::singleton() {
|
||||
game.bind_mut().on_trigger_deactivate(id);
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user