|
|
@ -95,6 +95,15 @@ fn main() { |
|
|
|
println!("[login+character] starting server");
|
|
|
|
|
|
|
|
// TODO: character mainloop
|
|
|
|
let auth_state = LoginServerState::new(LoginStubData {});
|
|
|
|
elseware::common::mainloop::mainloop(auth_state, login::LOGIN_PORT);
|
|
|
|
let auth_thread = thread::spawn(|| {
|
|
|
|
let auth_state = LoginServerState::new(LoginStubData {});
|
|
|
|
elseware::common::mainloop::mainloop(auth_state, login::LOGIN_PORT);
|
|
|
|
});
|
|
|
|
let char_thread = thread::spawn(|| {
|
|
|
|
let char_state = CharacterServerState::new(LoginStubData {});
|
|
|
|
elseware::common::mainloop::mainloop(char_state, character::CHARACTER_PORT);
|
|
|
|
});
|
|
|
|
|
|
|
|
auth_thread.join();
|
|
|
|
char_thread.join();
|
|
|
|
}
|