1
0
Fork 0
forked from AbleOS/ableos
ableos-idl/sysdata/programs/sunset_server/src/main.hb

11 lines
302 B
Plaintext
Raw Normal View History

2024-11-10 19:03:01 -06:00
sunset := @use("../../../libraries/sunset_proto/src/lib.hb")
2024-11-13 11:03:31 -06:00
render := @use("../../../libraries/render/src/lib.hb")
2024-11-10 12:57:48 -06:00
main := fn(): void {
2024-11-13 11:03:31 -06:00
screen := render.init(true)
sunset.server.start()
2024-11-13 11:03:31 -06:00
loop if sunset.server.incoming() {
sunset.server.collect_frames()
2024-11-13 11:03:31 -06:00
sunset.server.render_clients(screen)
2024-11-10 12:57:48 -06:00
}
}