yuanshen/Yuanshen.Gameserver/Game/GameState.cs
wisedev fc2ac1050f 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:10:50 +03:00

23 lines
540 B
C#

using Yuanshen.Protocol;
namespace Yuanshen.Gameserver.Game;
internal sealed class GameState
{
public const uint SceneId = 3;
public uint EnterSceneToken { get; private set; } = 1000;
public Vector CurrentPos { get; private set; } = SpawnPos;
public static Vector SpawnPos => new()
{
X = 2191.16357421875f,
Y = 214.65115356445312f,
Z = -1120.633056640625f
};
public uint NextEnterSceneToken() => ++EnterSceneToken;
public void UpdatePosition(Vector pos) => CurrentPos = pos;
}