server docs
This commit is contained in:
28
SERVERS.md
Normal file
28
SERVERS.md
Normal 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; }
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user