This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include "LocalStorage.hpp" | |
# include <emscripten.h> | |
using namespace s3d; | |
namespace LocalStorage | |
{ | |
namespace detail | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> | |
# include <list> | |
// カードサイズ | |
constexpr double CardWidth = 80; | |
constexpr Vec2 CardSize{ CardWidth, CardWidth * Math::Phi }; | |
// 山札の領域 | |
constexpr RectF StockRegion{ Arg::center = Vec2{ 100, 100 }, CardSize }; | |
// 捨て札の領域 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef INCLUDED_CONSTEXPR_PAINT | |
#if __INCLUDE_LEVEL__ == 1 | |
# define STARTED_INCLUDING_CONSTEXPR_PAINT | |
#elif not defined(STARTED_INCLUDING_CONSTEXPR_PAINT) | |
# error this file must be included directly from the source file | |
#endif | |
#ifdef STARTED_INCLUDING_CONSTEXPR_PAINT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "constexpr_print.hpp" | |
#include <array> | |
#include <string_view> | |
#include <algorithm> | |
#include <concepts> | |
template <std::unsigned_integral T> | |
constexpr std::size_t digits(T x) { | |
std::size_t d = 1; | |
while (x /= 10) ++d; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <functional> | |
#include <iterator> | |
#include <tuple> | |
#include <type_traits> | |
#include <iostream> | |
#include <vector> | |
#include <list> | |
template <class T, class = void> |