Example #1
0
BOOL Socket::HandleCommand()
{
    switch (GetConnectionType())
        {
//handles all in-game connections that aren't handled with a function
        case ConnectionType::Disconnected:
        case ConnectionType::Game:
            return HandleGameInput();
        case ConnectionType::Name:
            return HandleNameInput();
//login password prompt
        case ConnectionType::Password:
            return HandlePasswordInput();
//login new username
        case ConnectionType::Newname:
            return HandleNewnameInput();
            //login new password
        case ConnectionType::Newpass:
            return HandleNewpassInput();
//login verify password
        case ConnectionType::Verpass:
            return HandleVerpassInput();
        case ConnectionType::Gender:
            return HandleGenderInput();
        }

    return true;
}
Example #2
0
void Socket::Kill()
{
    if (!_Close)
        {
            if (_mobile)
                {
                    if (GetConnectionType()==ConnectionType::Game)
                        {
                            _mobile->LeaveGame();
                        }
                }
            _Close=true;
        }
}
void CESTrackFunctions::OnTimer(int Counter)
{
	if (!ControllerMyself().IsValid() || !ControllerMyself().IsController())
		return;
	if (GetConnectionType() != EuroScopePlugIn::CONNECTION_TYPE_DIRECT)
		return;
	if (autoDrop)
	{
		for (auto flightplan = FlightPlanSelectFirst();
			flightplan.IsValid();
			flightplan = FlightPlanSelectNext(flightplan))
		{
			if (flightplan.GetSimulated()) continue;
			if (CheckDrop(flightplan))
				flightplan.EndTracking();
		}
	}
}