#304: Fixed inconsistencies in Player 'get' functions #308
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All get functions accept only CPlayer except the following which take CElement but later restricted to player and console only (they returned somewhat useful info when console was passed, and some scripts may rely on this still being the case)
The following set/do functions changed to accept only players as they do not use RUN_CHILDREN internally but previously allowed for non-player elements
The following set/do functions remain unchanged as they use RUN_CHILDREN thus should allow non-players elements as long as they have at least one child that is a player (unless that should change)
If there's anything that could be done better, let me know.
This PR closes #304