Make killbox kind also an export
This commit is contained in:
parent
1b43852f12
commit
840860bc9d
@ -10,7 +10,7 @@ use crate::{
|
|||||||
player::{DamageSource, IPlayer, ball::Ball},
|
player::{DamageSource, IPlayer, ball::Ball},
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, GodotConvert, Default, Var, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Copy, GodotConvert, Default, Var, Serialize, Deserialize, Export)]
|
||||||
#[godot(via = GString)]
|
#[godot(via = GString)]
|
||||||
pub enum KillboxKind {
|
pub enum KillboxKind {
|
||||||
#[default]
|
#[default]
|
||||||
@ -49,6 +49,7 @@ impl KillboxKind {
|
|||||||
#[derive(GodotClass)]
|
#[derive(GodotClass)]
|
||||||
#[class(base=Area3D, init)]
|
#[class(base=Area3D, init)]
|
||||||
pub struct Killbox {
|
pub struct Killbox {
|
||||||
|
#[export]
|
||||||
#[var]
|
#[var]
|
||||||
pub kind: KillboxKind,
|
pub kind: KillboxKind,
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user