src/main.rs 1.9 K · 81 lines · raw · history

1 mod actions;
2 mod animals;
3 mod building;
4 mod camera;
5 mod colonist;
6 mod designations;
7 mod economy;
8 mod family;
9 mod farming;
10 mod food;
11 mod items;
12 mod jobs;
13 mod light;
14 mod mood;
15 mod needs;
16 mod noise;
17 mod panel;
18 mod pathfinding;
19 mod paths;
20 mod plants;
21 mod population;
22 mod rng;
23 mod selection;
24 mod sim;
25 mod structures;
26 mod tilemap;
27 mod ui;
28 mod world;
29 mod worldgen;
30 mod zones;
31
32 use bevy::prelude::*;
33
34 fn main() {
35 App::new()
36 .add_plugins(
37 DefaultPlugins
38 .set(ImagePlugin::default_nearest())
39 .set(WindowPlugin {
40 primary_window: Some(Window {
41 title: "Simulator".into(),
42 canvas: Some("#bevy".into()),
43 fit_canvas_to_parent: true,
44 ..default()
45 }),
46 ..default()
47 }),
48 )
49 .insert_resource(ClearColor(Color::srgb(0.08, 0.08, 0.1)))
50 .add_plugins((
51 actions::ActionsPlugin,
52 sim::SimPlugin,
53 worldgen::WorldGenPlugin,
54 tilemap::TilemapPlugin,
55 camera::CameraPlugin,
56 colonist::ColonistPlugin,
57 items::ItemsPlugin,
58 jobs::JobsPlugin,
59 light::LightPlugin,
60 structures::StructuresPlugin,
61 building::BuildingPlugin,
62 needs::NeedsPlugin,
63 ))
64 .add_plugins((
65 food::FoodPlugin,
66 animals::AnimalsPlugin,
67 farming::FarmingPlugin,
68 paths::PathsPlugin,
69 economy::EconomyPlugin,
70 population::PopulationPlugin,
71 family::FamilyPlugin,
72 designations::DesignationsPlugin,
73 mood::MoodPlugin,
74 panel::PanelPlugin,
75 plants::PlantsPlugin,
76 selection::SelectionPlugin,
77 zones::ZonesPlugin,
78 ui::HudPlugin,
79 ))
80 .run();
81 }