BoredProject

This commit is contained in:
IlyaShurupov 2023-09-01 22:44:47 +03:00
parent 3f2e6fdb4e
commit b3d06906ff
9 changed files with 195 additions and 3 deletions

27
Chat/public/Chat.hpp Normal file
View file

@ -0,0 +1,27 @@
#pragma once
#include "Module.hpp"
namespace tp {
extern ModuleManifest gModuleChat;
class ChatAPI {
public:
struct Credentials {
enum { SIZE = 64 };
tp::int1 name[SIZE] {0};
tp::int1 pass[SIZE] {0};
};
public:
ChatAPI() = default;
[[nodiscard]] bool isLogged() const;
void login(const Credentials& credentials);
private:
bool mLogged = false;
Credentials mCredentials;
};
}