- Added new type
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-24 18:41:28 +02:00
parent 45f67e0a36
commit c49e656cff
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
module renaissance.connection.session;
import renaissance.connection.connection : Connection;
import renaissance.server.users : User;
// TODO: One of these should be opened as soon as auth is
// ... done and stored in server so as to be able to map to it
// It must be pooled by the username and then appended to
// Whilst a User* is for the profile effectively, then
// a Session is an active set of network links such a User*
// has active
public struct Session
{
private Connection[] links;
private User* user;
@disable
private this();
this(User* user)
{
this.user = user;
}
}