feat: add SendCharacterStatsAsync to WebSocket
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d722deeefc
commit
84462d7c92
1 changed files with 6 additions and 0 deletions
|
|
@ -296,6 +296,12 @@ namespace MosswartMassacre
|
||||||
await SendEncodedAsync(json, CancellationToken.None);
|
await SendEncodedAsync(json, CancellationToken.None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static async Task SendCharacterStatsAsync(object statsData)
|
||||||
|
{
|
||||||
|
var json = JsonConvert.SerializeObject(statsData);
|
||||||
|
await SendEncodedAsync(json, CancellationToken.None);
|
||||||
|
}
|
||||||
|
|
||||||
public static async Task SendQuestDataAsync(string questName, string countdown)
|
public static async Task SendQuestDataAsync(string questName, string countdown)
|
||||||
{
|
{
|
||||||
var envelope = new
|
var envelope = new
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue