src/main.rs 2.2 K · 94 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 raids;
24 mod rng;
25 mod rooms;
26 mod save;
27 mod selection;
28 mod sim;
29 mod skills;
30 mod structures;
31 mod threats;
32 mod tilemap;
33 mod ui;
34 mod world;
35 mod worldgen;
36 mod zones;
37
38 use bevy::prelude::*;
39
40 fn main() {
41 App::new()
42 .add_plugins(
43 DefaultPlugins
44 .set(ImagePlugin::default_nearest())
45 .set(WindowPlugin {
46 primary_window: Some(Window {
47 title: "Simulator".into(),
48 canvas: Some("#bevy".into()),
49 fit_canvas_to_parent: true,
50 ..default()
51 }),
52 ..default()
53 }),
54 )
55 .insert_resource(ClearColor(Color::srgb(0.08, 0.08, 0.1)))
56 .add_plugins((
57 actions::ActionsPlugin,
58 sim::SimPlugin,
59 worldgen::WorldGenPlugin,
60 tilemap::TilemapPlugin,
61 camera::CameraPlugin,
62 colonist::ColonistPlugin,
63 items::ItemsPlugin,
64 jobs::JobsPlugin,
65 light::LightPlugin,
66 structures::StructuresPlugin,
67 building::BuildingPlugin,
68 needs::NeedsPlugin,
69 ))
70 .add_plugins((
71 food::FoodPlugin,
72 animals::AnimalsPlugin,
73 farming::FarmingPlugin,
74 paths::PathsPlugin,
75 economy::EconomyPlugin,
76 population::PopulationPlugin,
77 family::FamilyPlugin,
78 designations::DesignationsPlugin,
79 mood::MoodPlugin,
80 panel::PanelPlugin,
81 plants::PlantsPlugin,
82 climate::ClimatePlugin,
83 selection::SelectionPlugin,
84 zones::ZonesPlugin,
85 ui::HudPlugin,
86 ))
87 .add_plugins((
88 save::SavePlugin,
89 threats::ThreatsPlugin,
90 rooms::RoomsPlugin,
91 raids::RaidsPlugin,
92 ))
93 .run();
94 }