World revamp
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using Server.Networking;
|
||||
|
||||
namespace GameServer.World;
|
||||
|
||||
public sealed class WorldSessionState
|
||||
{
|
||||
public Guid ConnectionId { get; set; }
|
||||
public IConnection Connection { get; set; } = null!;
|
||||
public ulong AccountId { get; set; }
|
||||
public ulong CharacterId { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
public bool IsVip { get; set; }
|
||||
public int RegionId { get; set; }
|
||||
public int ZoneX { get; set; }
|
||||
public int ZoneY { get; set; }
|
||||
public int ChunkX { get; set; }
|
||||
public int ChunkY { get; set; }
|
||||
public float X { get; set; }
|
||||
public float Y { get; set; }
|
||||
public float VelX { get; set; }
|
||||
public float VelY { get; set; }
|
||||
public string Facing { get; set; } = "down";
|
||||
public float Speed { get; set; }
|
||||
public bool IsMoving { get; set; }
|
||||
public uint Seq { get; set; }
|
||||
|
||||
// Pending input state
|
||||
public float PendingMoveX { get; set; }
|
||||
public float PendingMoveY { get; set; }
|
||||
public bool PendingIsRunning { get; set; }
|
||||
public string? PendingFacing { get; set; }
|
||||
public uint PendingSeq { get; set; }
|
||||
public DateTime LastNonNeutralInputAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime PreferDirectionalUntil { get; set; } = DateTime.MinValue;
|
||||
public bool HasPendingTarget { get; set; }
|
||||
public float PendingTargetX { get; set; }
|
||||
public float PendingTargetY { get; set; }
|
||||
|
||||
// Chunk tracking
|
||||
public Dictionary<string, long> ChunkVersions { get; } = new(StringComparer.Ordinal);
|
||||
public List<string> Errors { get; } = new();
|
||||
public object? PendingPortalEvent { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user