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

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