fn add_engine_resources(&mut self, config: &EngineConfig) {

        self.resources.insert(SimulationTime(config.simulation_time));
        self.resources.insert(SimulationTimeHistory{ data: vec![config.simulation_time] });
        self.resources.insert(MaxSimulationTime(config.max_simulation_time));
        self.resources.insert(EngineStep(config.engine_step));

    }
/// Inserts Resources to ECS derived from an EngineConfig
Inserts Resources to ECS derived from an EngineConfig
Inserts Resources to ECS derived from an EngineConfig
fn add_engine_resources(&mut self, config: &EngineConfig) {
        self.resources.insert(SimulationTime(config.simulation_time));
        self.resources.insert(SimulationTimeHistory{ data: vec![config.simulation_time] });
        self.resources.insert(MaxSimulationTime(config.max_simulation_time));
        self.resources.insert(EngineStep(config.engine_step));
    }
fn add_engine_resources ( & mut self , config : & EngineConfig ) { self . resources . insert ( SimulationTime ( config . simulation_time ) ) ; self . resources . insert ( SimulationTimeHistory { data : vec ! [ config simulation_time ] } ) ; self . resources . insert ( MaxSimulationTime ( config . max_simulation_time ) ) ; self . resources . insert ( EngineStep ( config . engine_step ) ) ; }
Inserts Resources to ECS derived from an EngineConfig
Inserts Resources to ECS derived from an EngineConfig
&mut self
config
&EngineConfig
&mut self
config
&EngineConfig