-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc34e6b
commit 1e28117
Showing
6 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
GLOKON.Baiters.Core/Packets/Handlers/UserLeftWebLobbyHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using GLOKON.Baiters.Core.Models.Networking; | ||
|
||
namespace GLOKON.Baiters.Core.Packets.Handlers | ||
{ | ||
internal class UserLeftWebLobbyHandler(BaitersServer server) : IPacketHandler | ||
Check warning on line 5 in GLOKON.Baiters.Core/Packets/Handlers/UserLeftWebLobbyHandler.cs
|
||
{ | ||
public void Handle(ulong sender, Packet packet) | ||
{ | ||
// Nothing to do | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Plugin Development | ||
|
||
Building plugins for Baiters is really easy! | ||
|
||
There are 2 example plugins on this repository, the BanManager and ChatCommands, so feel free to use that as a basis. | ||
|
||
## Steps | ||
|
||
1. **Create** a new .NET Core library project | ||
2. **Install** the `GLOKON.Baiters.Core` NuGet package using your package manager | ||
3. **Extend** the `GLOKON.Baiters.Core.Plugins.BaitersPlugin` class to create your own Plugin entry point (It `must` have `GLOKON.Baiters.Core.GameManager` as its only parameter for the constructor) | ||
4. **Build** your plugin, use the [GLOKON.Baiters.Core.GameManager](https://github.com/DanielMcAssey/baiters-server/blob/main/GLOKON.Baiters.Core/GameManager.cs) to interact with the server, listen to events, etc. | ||
5. **Release** your plugin, make sure the plugin assembly file name ends with `.BaitersPlugin.dll` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters