Skip to content
Snippets Groups Projects
Unverified Commit 08951036 authored by Kat Marchán's avatar Kat Marchán
Browse files

add BigBrainPlugin

parent 2c1b57a5
No related branches found
No related tags found
No related merge requests found
......@@ -154,11 +154,10 @@ fn main() {
// Once all that's done, we just add our systems and off we go!
App::build()
.add_plugins(DefaultPlugins)
.add_plugin(BigBrainPlugin)
.add_startup_system(init_entities.system())
.add_system(thirst_system.system())
.add_system(thirst_consideration_system.system())
.add_system(drink_action_system.system())
// Don't forget the Thinker system itself! This is the heart of it all!
.add_system(big_brain::thinker_system.system())
.run();
}
......@@ -16,3 +16,13 @@ mod actions;
mod choices;
mod considerations;
mod thinker;
use bevy::prelude::*;
pub struct BigBrainPlugin;
impl Plugin for BigBrainPlugin {
fn build(&self, app: &mut AppBuilder) {
app.add_system(thinker_system.system());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment