The Battle for Wesnoth  1.15.0-dev
Public Member Functions | Public Attributes | List of all members
mp::chat_message Struct Reference

This class represents a single stored chat message. More...

#include <lobby_data.hpp>

Public Member Functions

 chat_message (const std::time_t &timestamp, const std::string &user, const std::string &message)
 Create a chat message. More...
 

Public Attributes

std::time_t timestamp
 
std::string user
 
std::string message
 

Detailed Description

This class represents a single stored chat message.

Definition at line 29 of file lobby_data.hpp.

Constructor & Destructor Documentation

◆ chat_message()

mp::chat_message::chat_message ( const std::time_t &  timestamp,
const std::string &  user,
const std::string &  message 
)

Create a chat message.

Definition at line 49 of file lobby_data.cpp.

Member Data Documentation

◆ message

std::string mp::chat_message::message

Definition at line 38 of file lobby_data.hpp.

◆ timestamp

std::time_t mp::chat_message::timestamp

Definition at line 36 of file lobby_data.hpp.

◆ user

std::string mp::chat_message::user

Definition at line 37 of file lobby_data.hpp.

Referenced by mp::room_info::members().


The documentation for this struct was generated from the following files: