1 #ifndef SAKI_APP_GIRL_X_H 2 #define SAKI_APP_GIRL_X_H 5 #include "../table/girl.h" 26 ~
GirlX()
override =
default;
28 std::unique_ptr<Girl> clone()
const override;
30 bool checkInit(
Who who,
const Hand &init,
const Table &table,
int iter)
override;
32 void onMonkey(std::array<Exist, 4> &exists,
const Table &table)
override;
35 std::string popUpStr()
const override;
37 void onTableEvent(
const Table &table,
const TableEvent &event)
override;
40 void setupLuaGlobal();
41 void addError(
const char *what);
43 sol::object runInGirlEnv(
const std::string_view &code) noexcept;
45 void popUpIfAny(
const Table &table);
47 void handleUserError(
const char *msg)
override;
52 std::ostringstream mErrStream;
61 #endif // SAKI_APP_GIRL_X_H Definition: table_event.h:23
Definition: lua_user_error_handler.h:11
Lua intepreter for custom characters.
Definition: girl_x.h:18
void onDice(util::Rand &rand, const Table &table) override
Called when someone is about to dice.
Definition: girl_x.cpp:77
void onDraw(const Table &table, Mount &mount, Who who, bool rinshan) override
Called when someone is about to draw a tile from the mountain.
Definition: girl_x.cpp:123
Definition: sol.hpp:28236
Base class for skill implementation.
Definition: girl.h:35