Crate unification (#88)
* move client/server/config into shared * move platforms into shared * move head drops into shared * move tb_entities to shared * reduce server to just a call into shared * get solo play working * fix server opening window * fix fmt * extracted a few more modules from client * near completely migrated client * fixed duplicate CharacterInputEnabled definition * simplify a few things related to builds * more simplifications * fix warnings/check * ci update * address comments * try fixing macos steam build * address comments * address comments * CI tweaks with default client feature --------- Co-authored-by: PROMETHIA-27 <electriccobras@gmail.com>
This commit is contained in:
34
crates/hedz_reloaded/src/protocol/events.rs
Normal file
34
crates/hedz_reloaded/src/protocol/events.rs
Normal file
@@ -0,0 +1,34 @@
|
||||
use bevy::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Event, Serialize, Deserialize, PartialEq)]
|
||||
pub struct ClientHeadChanged(pub u64);
|
||||
|
||||
#[derive(Event, Clone, Debug, Serialize, Deserialize)]
|
||||
pub enum PlaySound {
|
||||
Hit,
|
||||
KeyCollect,
|
||||
Gun,
|
||||
Throw,
|
||||
ThrowHit,
|
||||
Gate,
|
||||
CashCollect,
|
||||
HeadCollect,
|
||||
SecretHeadCollect,
|
||||
HeadDrop,
|
||||
Selection,
|
||||
Invalid,
|
||||
MissileExplosion,
|
||||
Reloaded,
|
||||
CashHeal,
|
||||
Crossbow,
|
||||
Beaming,
|
||||
Backpack { open: bool },
|
||||
Head(String),
|
||||
}
|
||||
|
||||
#[derive(Clone, Default, Event, Serialize, Deserialize)]
|
||||
pub struct ClientEnteredPlaying;
|
||||
|
||||
#[derive(Clone, Event, Serialize, Deserialize)]
|
||||
pub struct SetGameTick(pub u64);
|
||||
Reference in New Issue
Block a user