ascendedguard / sc2replay-csharp

C# Library for parsing Starcraft 2 Replay files
MIT License
56 stars 20 forks source link

Adding PlayerType.Observer #20

Closed keichinger closed 12 years ago

keichinger commented 12 years ago

It'd be really cool if there would be an new PlayerType for Observer, so we can easily filter them out while parsing the replays.

ascendedguard commented 12 years ago

Observers aren't added as a Player, since they dont contain the full information as the actual players. As a result, you won't find them in the "Players" array.

That said, I've added a new property, ClientList. This lists all the clients present in the game, and you should be able to figure out the observers by simply removing anyone in the Players list from the ClientList