MCPcopy Create free account
hub / github.com/EndstoneMC/endstone / init_game_mode

Function init_game_mode

src/endstone/python/endstone_python.cpp:231–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void init_game_mode(py::module_ &m)
232{
233 py::native_enum<GameMode>(m, "GameMode", "enum.Enum",
234 "Represents the various type of game modes that Players may have.")
235 .value("SURVIVAL", GameMode::Survival)
236 .value("CREATIVE", GameMode::Creative)
237 .value("ADVENTURE", GameMode::Adventure)
238 .value("SPECTATOR", GameMode::Spectator)
239 .finalize();
240}
241
242void init_logger(py::module &m)
243{

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected