zscript-doc/api/global/data/Player.md

34 lines
563 B
Markdown
Raw Permalink Normal View History

2018-12-29 16:05:19 -08:00
# Players
TODO
```
readonly int ConsolePlayer;
readonly bool Multiplayer;
readonly int Net_Arbitrator;
readonly bool PlayerInGame[MAXPLAYERS];
play PlayerInfo Players[MAXPLAYERS];
```
2019-08-14 03:31:41 -07:00
### `ConsolePlayer`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
Number of the player running the client. **Not deterministic.**
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
### `Multiplayer`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
Game is networked.
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
### `Net_Arbitrator`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
Number of the player who initiated or currently hosts the game.
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
### `PlayerInGame`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
`true` if the player is currently in-game.
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
### `Players`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
`PlayerInfo` structures for each player.
2018-12-29 16:05:19 -08:00
<!-- EOF -->