oxygengine-core 0.15.0

Core module for Oxygen Engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::assets::database::AssetsDatabase;
use specs::{System, Write};

pub struct AssetsSystem;

impl<'s> System<'s> for AssetsSystem {
    type SystemData = Option<Write<'s, AssetsDatabase>>;

    fn run(&mut self, data: Self::SystemData) {
        if let Some(mut data) = data {
            data.process();
        }
    }
}