Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
#304: Fixed inconsistencies in Player 'get' functions #308
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
This is not special for "root" - this is just how the element tree works.…
On Tue, 7 Aug 2018, 8:07 am Pirulax, ***@***.***> wrote: Good to know that I can pass root instead of the player, but It's not mentioned on the Wiki — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#308 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA4WaoN7lEvDsZc-XbLJLTmEXmb_vJvUks5uOTy3gaJpZM4VxI_E> .