Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GameState.Added... should return a bool #26

Open
joao-mambelli opened this issue Feb 9, 2019 · 1 comment
Open

GameState.Added... should return a bool #26

joao-mambelli opened this issue Feb 9, 2019 · 1 comment

Comments

@joao-mambelli
Copy link

The Added section in the json retrieved from the server tells you what was added and not the values of the nodes added:

"added": {
		"player": {
				"state": true,
				"weapons": true,
				"match_stats": true
		}
}

So it's expected the following to work:

if (gs.Added.Player.MatchStats)

But it doesn't since "gs.Added.Player.MatchStats" is not a bool.

@joao-mambelli joao-mambelli changed the title Gamestate.Added... should be return a bool GameState.Added... should be return a bool Feb 9, 2019
@rakijah
Copy link
Owner

rakijah commented Feb 15, 2019

Hello, I'm sorry it took me so long to respond (I was on vacation).

It seems this functionality was changed by Valve recently to reduce duplicate information. I'm fairly certain the "added" section used contain all the information that was actually added, not just "true".

Unfortunately I'm too busy to implement this change at the moment, though a pull request would be welcome.

@joao-mambelli joao-mambelli changed the title GameState.Added... should be return a bool GameState.Added... should return a bool Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants