Metadata-Version: 2.4
Name: minqlx-stubs
Version: 0.9.1
Summary: Type stubs for the minqlx module of shinqlx
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://github.com/mgaertne/shinqlx
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Stubs Only
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: shinqlx-stubs==0.9.1
Provides-Extra: redis
Requires-Dist: shinqlx-stubs[redis]==0.9.1; extra == "redis"
Dynamic: license-file

# minqlx-stubs

Type stubs for the module `minqlx` **as shinqlx provides it**, so for plugins that run on a [shinqlx](https://github.com/mgaertne/shinqlx)
server. They are not the stubs of the original [minqlx](https://github.com/MinoMino/minqlx).

A plugin that has to run on the original minqlx as well must stay within the names that both have. Compared with
minqlx 0.5.3 this package

* lacks `RedTeamChatChannel`, `BlueTeamChatChannel`, `FreeChatChannel` and `SpectatorChatChannel`. Use the constants
  such as `RED_TEAM_CHAT_CHANNEL` or `TeamChatChannel`, and the misspelt `PlayerDisonnectDispatcher` is spelled
  `PlayerDisconnectDispatcher`. `main_logger` and the modules that minqlx passes on, for example `minqlx.os`, are gone,
* also exports the type names of the stubs, for example `GameStartData`, `KillData` or `CancellableEventReturn`. They
  exist only in the stubs and are not available at runtime, so import them under `typing.TYPE_CHECKING`,
* has names that minqlx 0.5.3 does not have, among them the `damage` event with `DamageDispatcher`, the `DAMAGE_*`
  constants, `TeamChatChannel`, `get_targetting_entities`, `handle_damage` and `threading_excepthook`,
* differs in signatures: `slay_with_mod` takes `means_of_death` instead of `mod`, `thread` has no `force`, and
  `setex`, `lrem` and `zincrby` of the database take their values by keyword.

The page [Migration from minqlx](https://github.com/mgaertne/shinqlx/blob/main/docs/migration.rst) lists all differences. This package needs
`shinqlx-stubs` of the same version.
