use bevy::prelude::*;
use bevy::reflect::Reflect;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default, Reflect)]
pub enum TransformSyncMode {
Disabled,
#[default]
OneWay,
TwoWay,
}
#[derive(Default, Resource, Debug, Clone, Reflect)]
#[reflect(Resource)]
pub struct GodotTransformConfig {
pub sync_mode: TransformSyncMode,
}
impl GodotTransformConfig {
pub fn disabled() -> Self {
Self {
sync_mode: TransformSyncMode::Disabled,
}
}
pub fn one_way() -> Self {
Self {
sync_mode: TransformSyncMode::OneWay,
}
}
pub fn two_way() -> Self {
Self {
sync_mode: TransformSyncMode::TwoWay,
}
}
}