src/main.rs 1.9 K · 79 lines · raw · history

1 mod actions;
2 mod animals;
3 mod building;
4 mod camera;
5 mod colonist;
6 mod designations;
7 mod economy;
8 mod family;
9 mod farming;
10 mod food;
11 mod items;
12 mod jobs;
13 mod light;
14 mod mood;
15 mod needs;
16 mod noise;
17 mod pathfinding;
18 mod paths;
19 mod plants;
20 mod population;
21 mod rng;
22 mod selection;
23 mod sim;
24 mod structures;
25 mod tilemap;
26 mod ui;
27 mod world;
28 mod worldgen;
29 mod zones;
30
31 use bevy::prelude::*;
32
33 fn main() {
34 App::new()
35 .add_plugins(
36 DefaultPlugins
37 .set(ImagePlugin::default_nearest())
38 .set(WindowPlugin {
39 primary_window: Some(Window {
40 title: "Simulator".into(),
41 canvas: Some("#bevy".into()),
42 fit_canvas_to_parent: true,
43 ..default()
44 }),
45 ..default()
46 }),
47 )
48 .insert_resource(ClearColor(Color::srgb(0.08, 0.08, 0.1)))
49 .add_plugins((
50 actions::ActionsPlugin,
51 sim::SimPlugin,
52 worldgen::WorldGenPlugin,
53 tilemap::TilemapPlugin,
54 camera::CameraPlugin,
55 colonist::ColonistPlugin,
56 items::ItemsPlugin,
57 jobs::JobsPlugin,
58 light::LightPlugin,
59 structures::StructuresPlugin,
60 building::BuildingPlugin,
61 needs::NeedsPlugin,
62 ))
63 .add_plugins((
64 food::FoodPlugin,
65 animals::AnimalsPlugin,
66 farming::FarmingPlugin,
67 paths::PathsPlugin,
68 economy::EconomyPlugin,
69 population::PopulationPlugin,
70 family::FamilyPlugin,
71 designations::DesignationsPlugin,
72 mood::MoodPlugin,
73 plants::PlantsPlugin,
74 selection::SelectionPlugin,
75 zones::ZonesPlugin,
76 ui::HudPlugin,
77 ))
78 .run();
79 }