forked from 2ndbeam/evolution-rs
Migrated to bevy 0.17, deleted traits in favor of built-in bevy
structures
This commit is contained in:
parent
0319cb5a0e
commit
311285693c
7 changed files with 1290 additions and 894 deletions
|
|
@ -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, <ЗДЕСЬ ДОЛЖНА БЫТЬ СИСТЕМА ДЛЯ ТРИГГЕРА);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue