A virtual currency betting bot for Twitch chat. https://ddark.net/better
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
better/src/better_BetTable.h

20 lines
375 B

#ifndef BETTER_BETTABLE_H
#define BETTER_BETTABLE_H
#include "better.h"
struct BetTable
{
char option_name[OPTION_NAME_MAX] = "";
std::map<std::string, u64> bets;
u64 get_point_sum()
{
u64 res = 0;
for (auto it = bets.begin(); it != bets.end(); ++it)
res += it->second;
return res;
}
};
#endif // BETTER_BETTABLE_H