tcod 19.5.0__tar.gz → 19.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tcod-19.5.0 → tcod-19.6.0}/CHANGELOG.md +14 -0
- {tcod-19.5.0 → tcod-19.6.0}/PKG-INFO +1 -1
- {tcod-19.5.0 → tcod-19.6.0}/tcod/bsp.py +19 -17
- {tcod-19.5.0 → tcod-19.6.0}/tcod/event.py +82 -28
- {tcod-19.5.0 → tcod-19.6.0}/tcod/random.py +4 -2
- {tcod-19.5.0 → tcod-19.6.0}/tcod/version.py +3 -3
- {tcod-19.5.0 → tcod-19.6.0}/tcod.egg-info/PKG-INFO +1 -1
- {tcod-19.5.0 → tcod-19.6.0}/CONTRIBUTING.md +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/LICENSE.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/MANIFEST.in +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/README.rst +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/build_libtcod.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/build_sdl.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/CHANGELOG.md +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/CMakeLists.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/CONTRIBUTING.md +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/LIBTCOD-CREDITS.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/LICENSE.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/README.md +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/bresenham.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/bresenham_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/bsp.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/bsp_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/color.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/color.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/config.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_drawing.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_drawing.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_etc.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_etc.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_init.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_init.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_printing.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_printing.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_rexpaint.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_rexpaint.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/console_types.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/context.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/context.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/context_init.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/context_init.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/context_viewport.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/context_viewport.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/error.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/error.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/fov.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/fov_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/fov_circular_raycasting.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/fov_diamond_raycasting.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/fov_permissive2.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/fov_recursive_shadowcasting.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/fov_restrictive.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/fov_symmetric_shadowcast.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/fov_types.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/globals.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/globals.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/heapq.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/heapq.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/heightmap.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/heightmap_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/image.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/image_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/lex.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/lex_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/libtcod.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/libtcod_int.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/list.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/list_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/logging.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/logging.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/mersenne.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/mersenne_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/mersenne_types.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/mouse.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/mouse_types.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/namegen.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/namegen_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/noise.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/noise_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/noise_defaults.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/parser.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/parser_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/path.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/path_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/pathfinder.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/pathfinder.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/pathfinder_frontier.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/pathfinder_frontier.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/portability.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/random.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/random.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/renderer_sdl2.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/renderer_sdl2.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/renderer_xterm.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/renderer_xterm.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/sdl2/console_grid.glslf +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/sdl2/console_grid.glslv +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/sdl2/event.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/sys.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/sys_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/sys_sdl_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/sys_sdl_img_bmp.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/sys_sdl_img_png.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset_bdf.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset_bdf.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset_fallback.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset_fallback.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset_render.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset_render.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset_truetype.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tileset_truetype.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/timer.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tree.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/tree_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/txtfield.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/txtfield_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/utility.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/version.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/wrappers.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/wrappers.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/zip.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod/zip_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/libtcod_c.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/khrplatform.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/lodepng.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/lodepng.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/stb.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/stb_ds.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/stb_truetype.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/utf8proc/utf8proc.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/utf8proc/utf8proc.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/utf8proc/utf8proc_data.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/adler32.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/compress.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/crc32.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/crc32.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/deflate.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/deflate.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/gzclose.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/gzguts.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/gzlib.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/gzread.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/gzwrite.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/infback.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/inffast.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/inffast.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/inffixed.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/inflate.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/inflate.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/inftrees.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/inftrees.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/trees.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/trees.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/uncompr.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/zconf.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/zlib.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/zutil.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcod/src/vendor/zlib/zutil.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/libtcodpy.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/pyproject.toml +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/requirements.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/setup.cfg +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/setup.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/__init__.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/__pyinstaller/__init__.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/__pyinstaller/hook-tcod.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/_internal.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/_libtcod.pyi +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/cdef.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/cffi.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/cffi.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/color.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/console.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/constants.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/context.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/event_constants.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/image.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/libtcodpy.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/los.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/map.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/noise.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/noise.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/noise.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/path.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/path.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/path.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/py.typed +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/random.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/render.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/sdl/__init__.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/sdl/_internal.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/sdl/audio.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/sdl/constants.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/sdl/joystick.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/sdl/mouse.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/sdl/render.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/sdl/sys.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/sdl/video.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/tcod.c +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/tcod.h +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/tcod.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod/tileset.py +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod.egg-info/SOURCES.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod.egg-info/dependency_links.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod.egg-info/entry_points.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod.egg-info/requires.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tcod.egg-info/top_level.txt +0 -0
- {tcod-19.5.0 → tcod-19.6.0}/tox.ini +0 -0
|
@@ -6,6 +6,20 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [19.6.0] - 2025-10-20
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Alternative syntax for number symbols with `KeySym`, can now specify `KeySym["3"]`, etc.
|
|
14
|
+
Only available on Python 3.13 or later.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Fixed regression with lowercase key symbols with `tcod.event.K_*` and `KeySym.*` constants, these are still deprecated.
|
|
19
|
+
Event constants are only fixed for `tcod.event.K_*`, not the undocumented `tcod.event_constants` module.
|
|
20
|
+
Lowercase `KeySym.*` constants are only available on Python 3.13 or later.
|
|
21
|
+
- `BSP.split_recursive` did not accept a `Random` class as the seed. #168
|
|
22
|
+
|
|
9
23
|
## [19.5.0] - 2025-09-13
|
|
10
24
|
|
|
11
25
|
### Changed
|
|
@@ -27,7 +27,6 @@ Example::
|
|
|
27
27
|
|
|
28
28
|
from __future__ import annotations
|
|
29
29
|
|
|
30
|
-
from collections.abc import Iterator
|
|
31
30
|
from typing import TYPE_CHECKING, Any
|
|
32
31
|
|
|
33
32
|
from typing_extensions import deprecated
|
|
@@ -35,6 +34,8 @@ from typing_extensions import deprecated
|
|
|
35
34
|
from tcod.cffi import ffi, lib
|
|
36
35
|
|
|
37
36
|
if TYPE_CHECKING:
|
|
37
|
+
from collections.abc import Iterator
|
|
38
|
+
|
|
38
39
|
import tcod.random
|
|
39
40
|
|
|
40
41
|
|
|
@@ -125,7 +126,11 @@ class BSP:
|
|
|
125
126
|
self.children[1].parent = self
|
|
126
127
|
self.children[1]._unpack_bsp_tree(lib.TCOD_bsp_right(cdata))
|
|
127
128
|
|
|
128
|
-
def split_once(
|
|
129
|
+
def split_once(
|
|
130
|
+
self,
|
|
131
|
+
horizontal: bool, # noqa: FBT001
|
|
132
|
+
position: int,
|
|
133
|
+
) -> None:
|
|
129
134
|
"""Split this partition into 2 sub-partitions.
|
|
130
135
|
|
|
131
136
|
Args:
|
|
@@ -148,20 +153,17 @@ class BSP:
|
|
|
148
153
|
"""Divide this partition recursively.
|
|
149
154
|
|
|
150
155
|
Args:
|
|
151
|
-
depth
|
|
152
|
-
min_width
|
|
153
|
-
min_height
|
|
154
|
-
max_horizontal_ratio
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Prevent creating a vertical ratio more extreme than this.
|
|
158
|
-
seed (Optional[tcod.random.Random]):
|
|
159
|
-
The random number generator to use.
|
|
156
|
+
depth: The maximum depth to divide this object recursively.
|
|
157
|
+
min_width: The minimum width of any individual partition.
|
|
158
|
+
min_height: The minimum height of any individual partition.
|
|
159
|
+
max_horizontal_ratio: Prevent creating a horizontal ratio more extreme than this.
|
|
160
|
+
max_vertical_ratio: Prevent creating a vertical ratio more extreme than this.
|
|
161
|
+
seed: The random number generator to use.
|
|
160
162
|
"""
|
|
161
163
|
cdata = self._as_cdata()
|
|
162
164
|
lib.TCOD_bsp_split_recursive(
|
|
163
165
|
cdata,
|
|
164
|
-
seed
|
|
166
|
+
seed.random_c if seed is not None else ffi.NULL,
|
|
165
167
|
depth,
|
|
166
168
|
min_width,
|
|
167
169
|
min_height,
|
|
@@ -214,13 +216,13 @@ class BSP:
|
|
|
214
216
|
|
|
215
217
|
.. versionadded:: 8.3
|
|
216
218
|
"""
|
|
217
|
-
|
|
218
|
-
while
|
|
219
|
-
level =
|
|
220
|
-
|
|
219
|
+
next_ = [self]
|
|
220
|
+
while next_:
|
|
221
|
+
level = next_
|
|
222
|
+
next_ = []
|
|
221
223
|
yield from level
|
|
222
224
|
for node in level:
|
|
223
|
-
|
|
225
|
+
next_.extend(node.children)
|
|
224
226
|
|
|
225
227
|
def inverted_level_order(self) -> Iterator[BSP]:
|
|
226
228
|
"""Iterate over this BSP's hierarchy in inverse level order.
|
|
@@ -84,6 +84,7 @@ from __future__ import annotations
|
|
|
84
84
|
|
|
85
85
|
import enum
|
|
86
86
|
import functools
|
|
87
|
+
import sys
|
|
87
88
|
import warnings
|
|
88
89
|
from collections.abc import Callable, Iterator, Mapping
|
|
89
90
|
from typing import TYPE_CHECKING, Any, Final, Generic, Literal, NamedTuple, TypeVar
|
|
@@ -2230,11 +2231,19 @@ class Scancode(enum.IntEnum):
|
|
|
2230
2231
|
class KeySym(enum.IntEnum):
|
|
2231
2232
|
"""Keyboard constants based on their symbol.
|
|
2232
2233
|
|
|
2233
|
-
These names are derived from SDL except for
|
|
2234
|
-
|
|
2234
|
+
These names are derived from SDL except for numbers which are prefixed with ``N`` (since raw numbers can not be a Python name).
|
|
2235
|
+
Alternatively ``KeySym["9"]`` can be used to represent numbers (since Python 3.13).
|
|
2235
2236
|
|
|
2236
2237
|
.. versionadded:: 12.3
|
|
2237
2238
|
|
|
2239
|
+
.. versionchanged:: 19.0
|
|
2240
|
+
SDL backend was updated to 3.x, which means some enums have been renamed.
|
|
2241
|
+
Single letters are now uppercase.
|
|
2242
|
+
|
|
2243
|
+
.. versionchanged:: 19.6
|
|
2244
|
+
Number symbols can now be fetched with ``KeySym["9"]``, etc.
|
|
2245
|
+
With Python 3.13 or later.
|
|
2246
|
+
|
|
2238
2247
|
================== ==========
|
|
2239
2248
|
UNKNOWN 0
|
|
2240
2249
|
BACKSPACE 8
|
|
@@ -2280,32 +2289,32 @@ class KeySym(enum.IntEnum):
|
|
|
2280
2289
|
CARET 94
|
|
2281
2290
|
UNDERSCORE 95
|
|
2282
2291
|
BACKQUOTE 96
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2292
|
+
A 97
|
|
2293
|
+
B 98
|
|
2294
|
+
C 99
|
|
2295
|
+
D 100
|
|
2296
|
+
E 101
|
|
2297
|
+
F 102
|
|
2298
|
+
G 103
|
|
2299
|
+
H 104
|
|
2300
|
+
I 105
|
|
2301
|
+
J 106
|
|
2302
|
+
K 107
|
|
2303
|
+
L 108
|
|
2304
|
+
M 109
|
|
2305
|
+
N 110
|
|
2306
|
+
O 111
|
|
2307
|
+
P 112
|
|
2308
|
+
Q 113
|
|
2309
|
+
R 114
|
|
2310
|
+
S 115
|
|
2311
|
+
T 116
|
|
2312
|
+
U 117
|
|
2313
|
+
V 118
|
|
2314
|
+
W 119
|
|
2315
|
+
X 120
|
|
2316
|
+
Y 121
|
|
2317
|
+
Z 122
|
|
2309
2318
|
DELETE 127
|
|
2310
2319
|
SCANCODE_MASK 1073741824
|
|
2311
2320
|
CAPSLOCK 1073741881
|
|
@@ -2799,6 +2808,48 @@ class KeySym(enum.IntEnum):
|
|
|
2799
2808
|
return f"tcod.event.{self.__class__.__name__}.{self.name}"
|
|
2800
2809
|
|
|
2801
2810
|
|
|
2811
|
+
if sys.version_info >= (3, 13):
|
|
2812
|
+
# Alias for lower case letters removed from SDL3
|
|
2813
|
+
KeySym.A._add_alias_("a")
|
|
2814
|
+
KeySym.B._add_alias_("b")
|
|
2815
|
+
KeySym.C._add_alias_("c")
|
|
2816
|
+
KeySym.D._add_alias_("d")
|
|
2817
|
+
KeySym.E._add_alias_("e")
|
|
2818
|
+
KeySym.F._add_alias_("f")
|
|
2819
|
+
KeySym.G._add_alias_("g")
|
|
2820
|
+
KeySym.H._add_alias_("h")
|
|
2821
|
+
KeySym.I._add_alias_("i")
|
|
2822
|
+
KeySym.J._add_alias_("j")
|
|
2823
|
+
KeySym.K._add_alias_("k")
|
|
2824
|
+
KeySym.L._add_alias_("l")
|
|
2825
|
+
KeySym.M._add_alias_("m")
|
|
2826
|
+
KeySym.N._add_alias_("n")
|
|
2827
|
+
KeySym.O._add_alias_("o")
|
|
2828
|
+
KeySym.P._add_alias_("p")
|
|
2829
|
+
KeySym.Q._add_alias_("q")
|
|
2830
|
+
KeySym.R._add_alias_("r")
|
|
2831
|
+
KeySym.S._add_alias_("s")
|
|
2832
|
+
KeySym.T._add_alias_("t")
|
|
2833
|
+
KeySym.U._add_alias_("u")
|
|
2834
|
+
KeySym.V._add_alias_("v")
|
|
2835
|
+
KeySym.W._add_alias_("w")
|
|
2836
|
+
KeySym.X._add_alias_("x")
|
|
2837
|
+
KeySym.Y._add_alias_("y")
|
|
2838
|
+
KeySym.Z._add_alias_("z")
|
|
2839
|
+
|
|
2840
|
+
# Alias for numbers, since Python enum names can not be number literals
|
|
2841
|
+
KeySym.N0._add_alias_("0")
|
|
2842
|
+
KeySym.N1._add_alias_("1")
|
|
2843
|
+
KeySym.N2._add_alias_("2")
|
|
2844
|
+
KeySym.N3._add_alias_("3")
|
|
2845
|
+
KeySym.N4._add_alias_("4")
|
|
2846
|
+
KeySym.N5._add_alias_("5")
|
|
2847
|
+
KeySym.N6._add_alias_("6")
|
|
2848
|
+
KeySym.N7._add_alias_("7")
|
|
2849
|
+
KeySym.N8._add_alias_("8")
|
|
2850
|
+
KeySym.N9._add_alias_("9")
|
|
2851
|
+
|
|
2852
|
+
|
|
2802
2853
|
def __getattr__(name: str) -> int:
|
|
2803
2854
|
"""Migrate deprecated access of event constants."""
|
|
2804
2855
|
if name.startswith("BUTTON_"):
|
|
@@ -2822,6 +2873,9 @@ def __getattr__(name: str) -> int:
|
|
|
2822
2873
|
)
|
|
2823
2874
|
return replacement
|
|
2824
2875
|
|
|
2876
|
+
if name.startswith("K_") and len(name) == 3: # noqa: PLR2004
|
|
2877
|
+
name = name.upper() # Silently fix single letter key symbols removed from SDL3, these are still deprecated
|
|
2878
|
+
|
|
2825
2879
|
value: int | None = getattr(tcod.event_constants, name, None)
|
|
2826
2880
|
if not value:
|
|
2827
2881
|
msg = f"module {__name__!r} has no attribute {name!r}"
|
|
@@ -12,14 +12,16 @@ from __future__ import annotations
|
|
|
12
12
|
import os
|
|
13
13
|
import random
|
|
14
14
|
import warnings
|
|
15
|
-
from
|
|
16
|
-
from typing import Any
|
|
15
|
+
from typing import TYPE_CHECKING, Any
|
|
17
16
|
|
|
18
17
|
from typing_extensions import deprecated
|
|
19
18
|
|
|
20
19
|
import tcod.constants
|
|
21
20
|
from tcod.cffi import ffi, lib
|
|
22
21
|
|
|
22
|
+
if TYPE_CHECKING:
|
|
23
|
+
from collections.abc import Hashable
|
|
24
|
+
|
|
23
25
|
MERSENNE_TWISTER = tcod.constants.RNG_MT
|
|
24
26
|
COMPLEMENTARY_MULTIPLY_WITH_CARRY = tcod.constants.RNG_CMWC
|
|
25
27
|
MULTIPLY_WITH_CARRY = tcod.constants.RNG_CMWC
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '19.
|
|
32
|
-
__version_tuple__ = version_tuple = (19,
|
|
31
|
+
__version__ = version = '19.6.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (19, 6, 0)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g37e1b3401'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|