void AddNewCharEntryHandler::handle(InPacket& recv) const { recv.skip(1); // Parse info on the new character. Session::get().getlogin().addcharentry(recv); // Remove the character creation ui. UI::get().remove(UIElement::CHARCREATION); // Readd the updated character selection. UI::get().add(ElementCharSelect()); UI::get().enable(); }
void CharlistHandler::handle(InPacket& recv) const { recv.skip(1); // Parse all characters. Session::get().getlogin().parsecharlist(recv); // Remove the world selection screen. UI::get().remove(UIElement::WORLDSELECT); // Add the character selection screen. UI::get().add(ElementCharSelect()); UI::get().enable(); }