Hurtbox & changing game speed
This commit is contained in:
+13
-1
@@ -7,7 +7,7 @@ use strum::IntoEnumIterator;
|
||||
use strum_macros::EnumIter;
|
||||
|
||||
use crate::{
|
||||
AppState, fighter::{FighterAttributes, FighterCameraProfile, animation::AnimKind, attack::AttackKind}, game_settings::GameSettings,
|
||||
AppState, fighter::{FighterAttributes, FighterCameraProfile, animation::AnimKind, attack::AttackKind}, game_settings::GameSettings, math::{int::FGi32, vec3::FGVec3},
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize, Reflect, EnumIter)]
|
||||
@@ -15,6 +15,17 @@ pub enum FighterId {
|
||||
TestFighter,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Asset, Reflect, Default)]
|
||||
pub struct FighterHurtbox {
|
||||
pub bone: String,
|
||||
pub offset: FGVec3,
|
||||
pub rotation: FGVec3,
|
||||
#[reflect(ignore)]
|
||||
pub half_length: FGi32,
|
||||
#[reflect(ignore)]
|
||||
pub radius: FGi32
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Asset, Reflect)]
|
||||
pub struct FighterManifest {
|
||||
pub id: FighterId,
|
||||
@@ -24,6 +35,7 @@ pub struct FighterManifest {
|
||||
pub camera: FighterCameraProfile,
|
||||
pub animations: HashMap<AnimKind, String>,
|
||||
pub attack_scripts: HashMap<AttackKind, String>,
|
||||
pub hurtboxes: Vec<FighterHurtbox>,
|
||||
}
|
||||
|
||||
#[derive(Resource)]
|
||||
|
||||
Reference in New Issue
Block a user