GamePlay
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user