BoredProject
This commit is contained in:
parent
3f2e6fdb4e
commit
b3d06906ff
9 changed files with 195 additions and 3 deletions
27
Chat/public/Chat.hpp
Normal file
27
Chat/public/Chat.hpp
Normal 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;
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue