forked from 2ndbeam/evolution-rs
Removed property::plugin in favor of mod plugins in lib
This commit is contained in:
parent
222bc498f1
commit
5f09cd7bb9
4 changed files with 12 additions and 3 deletions
19
src/plugins.rs
Normal file
19
src/plugins.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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