]> git.deb.at Git - rhonda/impostor.git/commit
Implement event to detect game option changes
authorminiduikboot <mini@duikbo.at>
Sun, 26 Nov 2023 22:01:54 +0000 (23:01 +0100)
committerminiduikboot <mini@duikbo.at>
Sun, 26 Nov 2023 22:16:11 +0000 (23:16 +0100)
commit5edb40938832ce3d9404632b3316cda904d37f8f
tree3ef30a6b7524f6ab0729c477eaae1c1ea2eed090
parent66763a4066d71e5fb0c6b6c9ec3c68db459b48d0
Implement event to detect game option changes

This can be triggered by both RPC 02 and a(nother) plugin calling
SyncSettings to force certain settings on the host. Users of this API
could cause this event to recurse by calling SyncSettingsAsync inside an
event handler, so we prevent such reasonable foreseeable misuse.
src/Impostor.Api/Events/Game/IGameOptionsChangedEvent.cs [new file with mode: 0644]
src/Impostor.Plugins.Example/Handlers/GameEventListener.cs
src/Impostor.Server/Events/Game/GameOptionsChangedEvent.cs [new file with mode: 0644]
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs
src/Impostor.Server/Net/State/Game.Api.cs