Files
Towards/modules/server/src/PlayerSession.hpp
T

29 lines
493 B
C++
Raw Normal View History

2026-07-18 14:31:15 +02:00
#pragma once
2026-07-22 17:34:44 +02:00
#include "network/SessionId.hpp"
#include "message_protocol/MessageConnection.hpp"
2026-07-18 14:31:15 +02:00
#include <cstdint>
namespace tw::net {
struct PlayerSession {
public:
2026-07-22 17:34:44 +02:00
SessionId session_id;
2026-07-18 14:31:15 +02:00
2026-07-22 17:34:44 +02:00
msg::MessageConnection* connection;
2026-07-18 14:31:15 +02:00
uint32_t last_frame;
2026-07-22 17:34:44 +02:00
uint32_t acked_frame;
2026-07-18 14:31:15 +02:00
2026-07-22 17:34:44 +02:00
PlayerSession(SessionId session_id, msg::MessageConnection* connection) :
2026-07-18 14:31:15 +02:00
session_id(session_id),
2026-07-22 17:34:44 +02:00
connection(connection),
last_frame(0),
acked_frame(0)
2026-07-18 14:31:15 +02:00
{ }
};
}