yuanshen/Yuanshen.Gameserver/Game/ConsoleBridge.cs
wisedev 61cc2055cf First working version of the server
KCP gameserver with packet dispatch, scene streaming, combat, gacha and the
shop, plus a small HTTP server for the login flow and the wish history page.

Game data under assets is pulled out of the client instead of being typed by
hand. The excel tables come from the packed bin container and the spawn points
from the compiled scene scripts.
2026-09-04 02:06:53 +03:00

16 lines
380 B
C#

namespace Yuanshen.Gameserver.Game;
internal sealed class ConsoleBridge
{
private IServiceProvider? _session;
public void Attach(IServiceProvider session) => _session = session;
public void Detach(IServiceProvider session)
{
if (ReferenceEquals(_session, session))
_session = null;
}
public IServiceProvider? Session => _session;
}