33 lines
463 B
C++
33 lines
463 B
C++
/*
|
|
* chatstack.h
|
|
*
|
|
* Created on: Jan 24, 2017
|
|
* Author: nullifiedcat
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#define CHATSTACK_INTERVAL 0.8f
|
|
|
|
#include "config.h"
|
|
#include <string>
|
|
#include <stack>
|
|
#include <functional>
|
|
|
|
namespace chat_stack
|
|
{
|
|
|
|
struct msg_t
|
|
{
|
|
std::string text;
|
|
bool team;
|
|
};
|
|
|
|
void Say(const std::string &message, bool team = false);
|
|
void OnCreateMove();
|
|
void Reset();
|
|
|
|
extern std::stack<msg_t> stack;
|
|
extern float last_say;
|
|
} // namespace chat_stack
|