scraps

Abandon all hope, ye who enter here.
git clone https://git.neptards.moe/neptards/scraps.git
Log | Files | Refs | Submodules | README | LICENSE

group_state.hpp (771B)


      1 #ifndef GUARD_FRISKINGLY_QUASIUNIFORM_PALAEOBASIN_UNDERREPORTS_0631
      2 #define GUARD_FRISKINGLY_QUASIUNIFORM_PALAEOBASIN_UNDERREPORTS_0631
      3 #pragma once
      4 
      5 #include "scraps/format/proto/game.capnp.hpp"
      6 #include "scraps/game/fwd.hpp"
      7 #include "scraps/game/proxy_helper.hpp" // IWYU pragma: export
      8 
      9 namespace Scraps::Game
     10 {
     11   class GameState;
     12 
     13 #define SCRAPS_GAME_GROUP \
     14   ((GroupId, 1, 0, ParentId))
     15 
     16   struct GroupState
     17   {
     18     SCRAPS_STATE_ID_NAME(Group);
     19   };
     20 
     21   class ConstGroupProxy : public ConstProxyBaseIdName<GroupState>
     22   {
     23   public:
     24     using ConstProxyBaseIdName::ConstProxyBaseIdName;
     25 
     26     SCRAPS_PROXY_GEN_CONST_MEMBERS(SCRAPS_GAME_GROUP);
     27   };
     28 
     29   class GroupProxy : public ProxyBase<ConstGroupProxy>
     30   {
     31   public:
     32     using ProxyBase::ProxyBase;
     33   };
     34 
     35 }
     36 
     37 #endif