scraps

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

outer_action.hpp (750B)


      1 #ifndef GUARD_PELAGICALLY_LACELIKE_BELLOW_RESWALLOWS_5555
      2 #define GUARD_PELAGICALLY_LACELIKE_BELLOW_RESWALLOWS_5555
      3 #pragma once
      4 
      5 #include "scraps/game/action_eval/action_eval_private.hpp"
      6 #include "scraps/game/action_state.hpp"
      7 
      8 #include <cstdint>
      9 
     10 namespace Scraps::Game { class GameController; }
     11 namespace Scraps::Game::ActionEvalPrivate
     12 {
     13 
     14   struct OuterAction final : EvalItem
     15   {
     16     OuterAction(ConstActionProxy act, ObjectId object)
     17       : act{act}, object{object} {}
     18 
     19     ActionResult Call(ActionEvalState& eval, GameController& gc) override;
     20     ConstActionProxy act;
     21     ConstActionItemProxy cond{nullptr};
     22     ObjectId object;
     23     std::uint32_t cond_i = 0;
     24 
     25     std::uint8_t state = 0;
     26     bool success, cond_res, dummy;
     27   };
     28 
     29 }
     30 
     31 #endif