1
0
Fork 0

Removed property::plugin in favor of mod plugins in lib

This commit is contained in:
Rendo 2025-02-18 00:35:40 +05:00
commit 5f09cd7bb9
4 changed files with 12 additions and 3 deletions

View file

@ -1,19 +0,0 @@
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, <ЗДЕСЬ ДОЛЖНА БЫТЬ СИСТЕМА ДЛЯ ТРИГГЕРА);
}
}