1*282ef85cSR0ronoa use std::sync::Arc;
2bee61dcaSR0ronoa
348d97639Syuyi2439 use starry_server::{
448d97639Syuyi2439 base::display::Display,
548d97639Syuyi2439 config::Config,
648d97639Syuyi2439 core::{starry_server, StarryServer, SCREEN_HEIGHT, SCREEN_WIDTH},
748d97639Syuyi2439 };
8bee61dcaSR0ronoa
main()9bee61dcaSR0ronoa fn main() {
10bee61dcaSR0ronoa // TODO 考虑多个显示器
11bee61dcaSR0ronoa let mut displays: Vec<Display> = Vec::new();
1248d97639Syuyi2439 displays.push(Display::new(
1348d97639Syuyi2439 0,
1448d97639Syuyi2439 0,
1548d97639Syuyi2439 SCREEN_WIDTH as i32,
1648d97639Syuyi2439 SCREEN_HEIGHT as i32,
1748d97639Syuyi2439 ));
18bee61dcaSR0ronoa
19bee61dcaSR0ronoa // TODO 暂时不考虑配置文件
20*282ef85cSR0ronoa let config: Arc<Config> = Arc::new(Config::default());
21bee61dcaSR0ronoa
22bee61dcaSR0ronoa //开启Starry Server
23bee61dcaSR0ronoa StarryServer::new(config, displays);
24bee61dcaSR0ronoa let server = starry_server().unwrap();
25bee61dcaSR0ronoa server.run();
26bee61dcaSR0ronoa }
27