22 lines
775 B
C#
22 lines
775 B
C#
namespace SystemRevivalServer.Networking.Messages
|
|
{
|
|
public sealed record WorldSpawnRequest(int ZoneId);
|
|
public sealed record WorldSpawn(
|
|
ulong CharacterId, string Name, int ZoneId,
|
|
float X, float Y, float Z, float Facing, float Speed);
|
|
|
|
public sealed record WorldDespawn(ulong CharacterId);
|
|
|
|
// Client input: normalized vector and an optional facing
|
|
public sealed record WorldInput(
|
|
int ZoneId, float Dx, float Dy, float Facing, uint ClientSeq);
|
|
|
|
// Server state snapshot (pack multiple entities)
|
|
public sealed record WorldEntityState(
|
|
ulong CharacterId, float X, float Y, float Z, float Facing, float Speed);
|
|
|
|
public sealed record WorldState(
|
|
int ZoneId, long Tick, WorldEntityState[] Entities);
|
|
|
|
}
|