Inventory changes that modify the loadout now go through a control action instead of a control event.

This commit is contained in:
Sam
2021-02-06 21:15:29 -05:00
parent bcc9c2058c
commit 8eebcdfcd2
8 changed files with 42 additions and 27 deletions

View File

@ -46,9 +46,10 @@ pub enum ControlEvent {
Respawn,
}
#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize)]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub enum ControlAction {
SwapLoadout,
ModifyLoadout(InventoryManip),
Wield,
GlideWield,
Unwield,