use bevy::prelude::*;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub enum TransformSyncMode {
Disabled,
#[default]
OneWay,
TwoWay,
}
#[derive(Default, Resource, Debug, Clone)]
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,
}
}
}