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