1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
#[macro_use]
extern crate vulkano;
extern crate cgmath;
extern crate evmap;
extern crate game_kernel_utils;
extern crate parking_lot;
extern crate toml;
#[macro_use]
extern crate game_kernel_ecs;
extern crate downcast_rs;
extern crate game_kernel_ecs_derive;
#[macro_use]
extern crate game_kernel_logger;
extern crate game_kernel_settings;
extern crate game_kernel_vfs;
#[macro_use]
extern crate paste;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate ruwren;
extern crate winit;
#[macro_use]
extern crate imgui;
extern crate imgui_vulkano_renderer_unsafe;
extern crate imgui_winit_support;
pub mod game_kernel {
pub mod core_systems;
pub mod subsystems;
pub mod wren_scripting;
pub type MainRenderer = subsystems::video::renderer::Renderer<winit::window::Window>;
pub mod ecs {
pub use game_kernel_ecs::ecs::{
component::{Component, ComponentCreationError, ComponentId, COMPONENT_FACTORY},
system::{System, SystemKey, SystemManager},
views,
views::View,
AddEntity, EntitId, World,
};
pub use game_kernel_ecs_derive::*;
}
pub mod engine_components {
pub use super::core_systems::register_components;
pub use super::core_systems::{
base::transform::TransformComponent, camera_system::CameraComponent,
light::LightComponent, static_mesh::StaticMeshComponent,
};
}
}
pub use game_kernel_settings::settings::Config;
pub use game_kernel::core_systems::{
base::transform::TransformComponent, camera_system::*, light::*, renderer::*, static_mesh::*,
};
pub use game_kernel::subsystems::video::renderer;
pub use game_kernel::subsystems::video::renderer::{
camera::Camera, material::Material, mesh::Mesh, model::Model, ui_module::DummyUiModule,
ui_module::UiModule,
};
pub use game_kernel::subsystems::input;
pub use game_kernel_logger::logger;
pub fn game_kernel_main() {}