Files
Calendink/Provider/main/user.hpp

17 lines
304 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include <cstring>
#include "types.hpp"
struct user_t
{
uint8 id; // Auto-assigned (1255, 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;