namespace Game {
class Player {
string GetName() {
return "Name";
}
}
void Test() {
Player p;
}
}
Accessing the player variable inside the Game::Test function, correctly offers the GetName method for completion:
However, when using the Game::Player type outside the Game namespace, no completions are offered:
This completion pop-up was forced open by pressing Ctrl+Space. Normally, nothing appears, which might not have been immediately apparent in the screenshot.
Accessing the player variable inside the
Game::Test
function, correctly offers theGetName
method for completion:However, when using the
Game::Player
type outside theGame
namespace, no completions are offered: This completion pop-up was forced open by pressingCtrl+Space
. Normally, nothing appears, which might not have been immediately apparent in the screenshot.