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