server docs

This commit is contained in:
2025-08-12 22:54:54 -04:00
parent 7fc0d6c5b0
commit 45d844da18
4 changed files with 40 additions and 30 deletions

28
SERVERS.md Normal file
View File

@@ -0,0 +1,28 @@
# Server Developers
[<-- Back to README.md](./README.md)
Requests are sent after the game client authenticates with the server.
## Endpoints
### `API: GET "/api/undead/v1/emotes"`
Expects: `List<EmoteConfigDTO>`
[EmoteConfigDTO](#emoteconfigdto)
Replace existing emotes in the game with these, keyed by `UniqueName`.
See [the source](./Core/CustomRecNet/CustomEmotes/RecNetEmotes.cs) for more information.
## DTOs
### `EmoteConfigDTO`
```c#
public class EmoteConfigDTO
{
public string UniqueName { get; set; }
public string NewText { get; set; }
public string RoomChatText { get; set; }
public string FacialExpression { get; set; }
public bool ForceEmoteBubble { get; set; }
public bool OnlyBroadcastToTeam { get; set; }
}
```