CDN fight 3

This commit is contained in:
dingo
2025-12-20 13:04:31 -05:00
parent 317e14e042
commit 8390fdf42e
8 changed files with 1999 additions and 47 deletions
+4 -7
View File
@@ -130,16 +130,11 @@ public sealed class DungeonHandler : IClientMessageHandler
}
// All dungeon operations require authentication
if (opCode == DungeonOpCodes.ASSET_MANIFEST_REQUEST)
{
await HandleAssetManifestRequest(connection, ct);
}
if (!_sessions.TryGet(connection.Id, out var accountId, out _))
{
await SendErrorAsync(connection, "auth_required", ct);
return;
}
// Get or create player session
var session = await GetOrCreateSessionAsync(connection, accountId, ct);
@@ -1947,7 +1942,8 @@ public sealed class DungeonHandler : IClientMessageHandler
y = m.Y,
health = m.Health,
maxHealth = m.MaxHealth,
scenePath = m.ScenePath,
spriteConfig = string.IsNullOrEmpty(m.SpriteConfigJson) ? null :
System.Text.Json.JsonSerializer.Deserialize<object>(m.SpriteConfigJson),
tintColor = m.TintColor,
scale = m.Scale
}),
@@ -2496,7 +2492,8 @@ public sealed class DungeonHandler : IClientMessageHandler
health = m.Health,
maxHealth = m.MaxHealth,
state = m.State.ToString().ToLower(),
scenePath = m.ScenePath,
spriteConfig = string.IsNullOrEmpty(m.SpriteConfigJson) ? null :
System.Text.Json.JsonSerializer.Deserialize<object>(m.SpriteConfigJson),
tintColor = m.TintColor,
scale = m.Scale
}),