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