17 lines
304 B
C++
17 lines
304 B
C++
#pragma once
|
||
|
||
#include <cstring>
|
||
|
||
#include "types.hpp"
|
||
|
||
struct user_t
|
||
{
|
||
uint8 id; // Auto-assigned (1–255, 0 = empty slot)
|
||
char name[32]; // Display name
|
||
bool active; // Slot in use
|
||
};
|
||
|
||
constexpr int MAX_USERS = 8;
|
||
internal user_t g_Users[MAX_USERS] = {};
|
||
internal uint8 g_NextUserId = 1;
|