1
0
Fork 0

Migrated to bevy 0.17, deleted traits in favor of built-in bevy

structures
This commit is contained in:
Rendo 2025-11-18 20:38:08 +05:00
commit 311285693c
7 changed files with 1290 additions and 894 deletions

View file

@ -1,19 +1 @@
use bevy::prelude::{App,Plugin};
use crate::properties::{Property, TestProperty};
pub struct BasePropertiesPlugin;
impl Plugin for BasePropertiesPlugin
{
fn build(&self, app: &mut App) {
// Моды должны будут делать кастомный плагин и подгружать его при загрузке мода
use bevy_trait_query::RegisterExt;
app
.register_component_as::<dyn Property, TestProperty>();
//.add_systems(schedule, <ЗДЕСЬ ДОЛЖНА БЫТЬ СИСТЕМА ДЛЯ УСЛОВИЯ>)
//.add_systems(schedule, <ЗДЕСЬ ДОЛЖНА БЫТЬ СИСТЕМА ДЛЯ ТРИГГЕРА);
}
}