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