Refactor...

This commit is contained in:
2025-10-21 20:23:27 -04:00
parent 7f07eaa128
commit 5b0f9a39c4
104 changed files with 17010 additions and 13171 deletions

29
src/toast.h Normal file
View File

@@ -0,0 +1,29 @@
#pragma once
#include <string>
#include <vector>
namespace anm2ed::toast
{
class Toast
{
public:
std::string message{};
float lifetime{};
Toast(const std::string& message);
};
class Toasts
{
public:
std::vector<Toast> toasts{};
void update();
void add(const std::string& message);
void add_error(const std::string& message);
};
extern Toasts toasts;
}