Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shuffle player documentation, add to game event documentation #685

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docfx/docs/features/game-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ The specific subclass of `GameEvent` will provide strongly typed parameters from

These event properties are mutable so you can update them as normal and they will update in the event instance.

> [!CAUTION]
> `GameEvent` instances and their properties will cease to exist after the event listener function is called, which means that you will encounter errors when accessing properties in timers and functions like `Server.NextFrame()`. You should store the value of properties in variables before calling functions like `Server.NextFrame()` so you can read the data safely.
## Preventing Broadcast

You can modify a game event so that it does not get broadcast to clients by modifying the `bool info.DontBroadcast` property. e.g.
Expand Down
3 changes: 3 additions & 0 deletions docfx/docs/guides/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@

- name: Dependency Injection
href: dependency-injection.md

- name: Referencing Players
href: referencing-players.md
5 changes: 1 addition & 4 deletions docfx/docs/reference/toc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
- name: Core Configuration
href: core-configuration.md

- name: Referencing Players
href: referencing-players.md
href: core-configuration.md
Loading