LabAPI
LabAPI copied to clipboard
[IDEA] Add PlayerRoles to WaveRespawned
Goal Description
Add PlayerRoles (IReadOnlyDictionary<Player, RoleTypeId>) to WaveRespawnedEventArgs to indicate players' respawn roles
Notes
Alternatively, name it Roles like in WaveRespawningEventArgs.
Player's role should be set at point of this event triggered (if not then please correct me and ill add it)
There is Players property from which you can get their roles.
If you wish to make this a dictionary, you can use linq.
Thank you, it works great.