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