minqlx-stubs 0.8.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.
- minqlx_stubs-0.8.0/LICENSE +28 -0
- minqlx_stubs-0.8.0/PKG-INFO +37 -0
- minqlx_stubs-0.8.0/README.md +20 -0
- minqlx_stubs-0.8.0/minqlx-stubs/__init__.pyi +549 -0
- minqlx_stubs-0.8.0/minqlx-stubs/database.pyi +9 -0
- minqlx_stubs-0.8.0/minqlx_stubs.egg-info/PKG-INFO +37 -0
- minqlx_stubs-0.8.0/minqlx_stubs.egg-info/SOURCES.txt +10 -0
- minqlx_stubs-0.8.0/minqlx_stubs.egg-info/dependency_links.txt +1 -0
- minqlx_stubs-0.8.0/minqlx_stubs.egg-info/requires.txt +4 -0
- minqlx_stubs-0.8.0/minqlx_stubs.egg-info/top_level.txt +1 -0
- minqlx_stubs-0.8.0/pyproject.toml +30 -0
- minqlx_stubs-0.8.0/setup.cfg +4 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023, Markus Gärtner
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: minqlx-stubs
|
|
3
|
+
Version: 0.8.0
|
|
4
|
+
Summary: Type stubs for the minqlx module of shinqlx
|
|
5
|
+
License-Expression: BSD-3-Clause
|
|
6
|
+
Project-URL: Homepage, https://github.com/mgaertne/shinqlx
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
9
|
+
Classifier: Typing :: Stubs Only
|
|
10
|
+
Requires-Python: >=3.8
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: shinqlx-stubs==0.8.0
|
|
14
|
+
Provides-Extra: redis
|
|
15
|
+
Requires-Dist: shinqlx-stubs[redis]==0.8.0; extra == "redis"
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# minqlx-stubs
|
|
19
|
+
|
|
20
|
+
Type stubs for the module `minqlx` **as shinqlx provides it**, so for plugins that run on a [shinqlx](https://github.com/mgaertne/shinqlx)
|
|
21
|
+
server. They are not the stubs of the original [minqlx](https://github.com/MinoMino/minqlx).
|
|
22
|
+
|
|
23
|
+
A plugin that has to run on the original minqlx as well must stay within the names that both have. Compared with
|
|
24
|
+
minqlx 0.5.3 this package
|
|
25
|
+
|
|
26
|
+
* lacks `RedTeamChatChannel`, `BlueTeamChatChannel`, `FreeChatChannel` and `SpectatorChatChannel`. Use the constants
|
|
27
|
+
such as `RED_TEAM_CHAT_CHANNEL` or `TeamChatChannel`, and the misspelt `PlayerDisonnectDispatcher` is spelled
|
|
28
|
+
`PlayerDisconnectDispatcher`. `main_logger` and the modules that minqlx passes on, for example `minqlx.os`, are gone,
|
|
29
|
+
* also exports the type names of the stubs, for example `GameStartData`, `KillData` or `CancellableEventReturn`. They
|
|
30
|
+
exist only in the stubs and are not available at runtime, so import them under `typing.TYPE_CHECKING`,
|
|
31
|
+
* has names that minqlx 0.5.3 does not have, among them the `damage` event with `DamageDispatcher`, the `DAMAGE_*`
|
|
32
|
+
constants, `TeamChatChannel`, `get_targetting_entities`, `handle_damage` and `threading_excepthook`,
|
|
33
|
+
* differs in signatures: `slay_with_mod` takes `means_of_death` instead of `mod`, `thread` has no `force`, and
|
|
34
|
+
`setex`, `lrem` and `zincrby` of the database take their values by keyword.
|
|
35
|
+
|
|
36
|
+
The page [Migration from minqlx](https://github.com/mgaertne/shinqlx/blob/main/docs/migration.rst) lists all differences. This package needs
|
|
37
|
+
`shinqlx-stubs` of the same version.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# minqlx-stubs
|
|
2
|
+
|
|
3
|
+
Type stubs for the module `minqlx` **as shinqlx provides it**, so for plugins that run on a [shinqlx](https://github.com/mgaertne/shinqlx)
|
|
4
|
+
server. They are not the stubs of the original [minqlx](https://github.com/MinoMino/minqlx).
|
|
5
|
+
|
|
6
|
+
A plugin that has to run on the original minqlx as well must stay within the names that both have. Compared with
|
|
7
|
+
minqlx 0.5.3 this package
|
|
8
|
+
|
|
9
|
+
* lacks `RedTeamChatChannel`, `BlueTeamChatChannel`, `FreeChatChannel` and `SpectatorChatChannel`. Use the constants
|
|
10
|
+
such as `RED_TEAM_CHAT_CHANNEL` or `TeamChatChannel`, and the misspelt `PlayerDisonnectDispatcher` is spelled
|
|
11
|
+
`PlayerDisconnectDispatcher`. `main_logger` and the modules that minqlx passes on, for example `minqlx.os`, are gone,
|
|
12
|
+
* also exports the type names of the stubs, for example `GameStartData`, `KillData` or `CancellableEventReturn`. They
|
|
13
|
+
exist only in the stubs and are not available at runtime, so import them under `typing.TYPE_CHECKING`,
|
|
14
|
+
* has names that minqlx 0.5.3 does not have, among them the `damage` event with `DamageDispatcher`, the `DAMAGE_*`
|
|
15
|
+
constants, `TeamChatChannel`, `get_targetting_entities`, `handle_damage` and `threading_excepthook`,
|
|
16
|
+
* differs in signatures: `slay_with_mod` takes `means_of_death` instead of `mod`, `thread` has no `force`, and
|
|
17
|
+
`setex`, `lrem` and `zincrby` of the database take their values by keyword.
|
|
18
|
+
|
|
19
|
+
The page [Migration from minqlx](https://github.com/mgaertne/shinqlx/blob/main/docs/migration.rst) lists all differences. This package needs
|
|
20
|
+
`shinqlx-stubs` of the same version.
|
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
from shinqlx import (
|
|
2
|
+
AbstractChannel as AbstractChannel,
|
|
3
|
+
AbstractDummyPlayer as AbstractDummyPlayer,
|
|
4
|
+
BLUE_TEAM_CHAT_CHANNEL as BLUE_TEAM_CHAT_CHANNEL,
|
|
5
|
+
CHAT_CHANNEL as CHAT_CHANNEL,
|
|
6
|
+
COMMANDS as COMMANDS,
|
|
7
|
+
CONNECTION_STATES as CONNECTION_STATES,
|
|
8
|
+
CONSOLE_CHANNEL as CONSOLE_CHANNEL,
|
|
9
|
+
CS_ACTIVE as CS_ACTIVE,
|
|
10
|
+
CS_CONNECTED as CS_CONNECTED,
|
|
11
|
+
CS_FREE as CS_FREE,
|
|
12
|
+
CS_PRIMED as CS_PRIMED,
|
|
13
|
+
CS_ZOMBIE as CS_ZOMBIE,
|
|
14
|
+
CVAR_ARCHIVE as CVAR_ARCHIVE,
|
|
15
|
+
CVAR_CHEAT as CVAR_CHEAT,
|
|
16
|
+
CVAR_INIT as CVAR_INIT,
|
|
17
|
+
CVAR_LATCH as CVAR_LATCH,
|
|
18
|
+
CVAR_NORESTART as CVAR_NORESTART,
|
|
19
|
+
CVAR_ROM as CVAR_ROM,
|
|
20
|
+
CVAR_SERVERINFO as CVAR_SERVERINFO,
|
|
21
|
+
CVAR_SYSTEMINFO as CVAR_SYSTEMINFO,
|
|
22
|
+
CVAR_TEMP as CVAR_TEMP,
|
|
23
|
+
CVAR_USERINFO as CVAR_USERINFO,
|
|
24
|
+
CVAR_USER_CREATED as CVAR_USER_CREATED,
|
|
25
|
+
CancellableEventReturn as CancellableEventReturn,
|
|
26
|
+
ChatChannel as ChatChannel,
|
|
27
|
+
ChatEventDispatcher as ChatEventDispatcher,
|
|
28
|
+
ClientCommandChannel as ClientCommandChannel,
|
|
29
|
+
ClientCommandDispatcher as ClientCommandDispatcher,
|
|
30
|
+
Command as Command,
|
|
31
|
+
CommandDispatcher as CommandDispatcher,
|
|
32
|
+
CommandInvoker as CommandInvoker,
|
|
33
|
+
ConsoleChannel as ConsoleChannel,
|
|
34
|
+
ConsolePrintDispatcher as ConsolePrintDispatcher,
|
|
35
|
+
DAMAGE_NO_ARMOR as DAMAGE_NO_ARMOR,
|
|
36
|
+
DAMAGE_NO_KNOCKBACK as DAMAGE_NO_KNOCKBACK,
|
|
37
|
+
DAMAGE_NO_PROTECTION as DAMAGE_NO_PROTECTION,
|
|
38
|
+
DAMAGE_NO_TEAM_PROTECTION as DAMAGE_NO_TEAM_PROTECTION,
|
|
39
|
+
DAMAGE_RADIUS as DAMAGE_RADIUS,
|
|
40
|
+
DEBUG as DEBUG,
|
|
41
|
+
DEFAULT_PLUGINS as DEFAULT_PLUGINS,
|
|
42
|
+
DamageDispatcher as DamageDispatcher,
|
|
43
|
+
DamageEntry as DamageEntry,
|
|
44
|
+
DeathData as DeathData,
|
|
45
|
+
DeathDispatcher as DeathDispatcher,
|
|
46
|
+
EVENT_DISPATCHERS as EVENT_DISPATCHERS,
|
|
47
|
+
EventDispatcher as EventDispatcher,
|
|
48
|
+
EventDispatcherManager as EventDispatcherManager,
|
|
49
|
+
FREE_CHAT_CHANNEL as FREE_CHAT_CHANNEL,
|
|
50
|
+
Flight as Flight,
|
|
51
|
+
FrameEventDispatcher as FrameEventDispatcher,
|
|
52
|
+
GAMETYPES as GAMETYPES,
|
|
53
|
+
GAMETYPES_SHORT as GAMETYPES_SHORT,
|
|
54
|
+
Game as Game,
|
|
55
|
+
GameCountdownDispatcher as GameCountdownDispatcher,
|
|
56
|
+
GameEndData as GameEndData,
|
|
57
|
+
GameEndDispatcher as GameEndDispatcher,
|
|
58
|
+
GameStartData as GameStartData,
|
|
59
|
+
GameStartDispatcher as GameStartDispatcher,
|
|
60
|
+
KamikazeExplodeDispatcher as KamikazeExplodeDispatcher,
|
|
61
|
+
KamikazeUseDispatcher as KamikazeUseDispatcher,
|
|
62
|
+
KillData as KillData,
|
|
63
|
+
KillDispatcher as KillDispatcher,
|
|
64
|
+
MAX_MSG_LENGTH as MAX_MSG_LENGTH,
|
|
65
|
+
MOD_BFG as MOD_BFG,
|
|
66
|
+
MOD_BFG_SPLASH as MOD_BFG_SPLASH,
|
|
67
|
+
MOD_CHAINGUN as MOD_CHAINGUN,
|
|
68
|
+
MOD_CRUSH as MOD_CRUSH,
|
|
69
|
+
MOD_FALLING as MOD_FALLING,
|
|
70
|
+
MOD_GAUNTLET as MOD_GAUNTLET,
|
|
71
|
+
MOD_GRAPPLE as MOD_GRAPPLE,
|
|
72
|
+
MOD_GRENADE as MOD_GRENADE,
|
|
73
|
+
MOD_GRENADE_SPLASH as MOD_GRENADE_SPLASH,
|
|
74
|
+
MOD_HMG as MOD_HMG,
|
|
75
|
+
MOD_JUICED as MOD_JUICED,
|
|
76
|
+
MOD_KAMIKAZE as MOD_KAMIKAZE,
|
|
77
|
+
MOD_LAVA as MOD_LAVA,
|
|
78
|
+
MOD_LIGHTNING as MOD_LIGHTNING,
|
|
79
|
+
MOD_LIGHTNING_DISCHARGE as MOD_LIGHTNING_DISCHARGE,
|
|
80
|
+
MOD_MACHINEGUN as MOD_MACHINEGUN,
|
|
81
|
+
MOD_NAIL as MOD_NAIL,
|
|
82
|
+
MOD_PLASMA as MOD_PLASMA,
|
|
83
|
+
MOD_PLASMA_SPLASH as MOD_PLASMA_SPLASH,
|
|
84
|
+
MOD_PROXIMITY_MINE as MOD_PROXIMITY_MINE,
|
|
85
|
+
MOD_RAILGUN as MOD_RAILGUN,
|
|
86
|
+
MOD_RAILGUN_HEADSHOT as MOD_RAILGUN_HEADSHOT,
|
|
87
|
+
MOD_ROCKET as MOD_ROCKET,
|
|
88
|
+
MOD_ROCKET_SPLASH as MOD_ROCKET_SPLASH,
|
|
89
|
+
MOD_SHOTGUN as MOD_SHOTGUN,
|
|
90
|
+
MOD_SLIME as MOD_SLIME,
|
|
91
|
+
MOD_SUICIDE as MOD_SUICIDE,
|
|
92
|
+
MOD_SWITCH_TEAMS as MOD_SWITCH_TEAMS,
|
|
93
|
+
MOD_TARGET_LASER as MOD_TARGET_LASER,
|
|
94
|
+
MOD_TELEFRAG as MOD_TELEFRAG,
|
|
95
|
+
MOD_THAW as MOD_THAW,
|
|
96
|
+
MOD_TRIGGER_HURT as MOD_TRIGGER_HURT,
|
|
97
|
+
MOD_UNKNOWN as MOD_UNKNOWN,
|
|
98
|
+
MOD_WATER as MOD_WATER,
|
|
99
|
+
MapDispatcher as MapDispatcher,
|
|
100
|
+
MatchReportStats as MatchReportStats,
|
|
101
|
+
MatchStartedStats as MatchStartedStats,
|
|
102
|
+
MedalData as MedalData,
|
|
103
|
+
MedalsEntry as MedalsEntry,
|
|
104
|
+
NewGameDispatcher as NewGameDispatcher,
|
|
105
|
+
NonexistentGameError as NonexistentGameError,
|
|
106
|
+
NonexistentPlayerError as NonexistentPlayerError,
|
|
107
|
+
PRIV_ADMIN as PRIV_ADMIN,
|
|
108
|
+
PRIV_BANNED as PRIV_BANNED,
|
|
109
|
+
PRIV_MOD as PRIV_MOD,
|
|
110
|
+
PRIV_NONE as PRIV_NONE,
|
|
111
|
+
PRIV_ROOT as PRIV_ROOT,
|
|
112
|
+
PRI_HIGH as PRI_HIGH,
|
|
113
|
+
PRI_HIGHEST as PRI_HIGHEST,
|
|
114
|
+
PRI_LOW as PRI_LOW,
|
|
115
|
+
PRI_LOWEST as PRI_LOWEST,
|
|
116
|
+
PRI_NORMAL as PRI_NORMAL,
|
|
117
|
+
PickupsEntry as PickupsEntry,
|
|
118
|
+
Player as Player,
|
|
119
|
+
PlayerConnectDispatcher as PlayerConnectDispatcher,
|
|
120
|
+
PlayerConnectStats as PlayerConnectStats,
|
|
121
|
+
PlayerData as PlayerData,
|
|
122
|
+
PlayerDeathStats as PlayerDeathStats,
|
|
123
|
+
PlayerDisconnectDispatcher as PlayerDisconnectDispatcher,
|
|
124
|
+
PlayerDisconnectStats as PlayerDisconnectStats,
|
|
125
|
+
PlayerGameData as PlayerGameData,
|
|
126
|
+
PlayerInfo as PlayerInfo,
|
|
127
|
+
PlayerKillStats as PlayerKillStats,
|
|
128
|
+
PlayerLoadedDispatcher as PlayerLoadedDispatcher,
|
|
129
|
+
PlayerMedalStats as PlayerMedalStats,
|
|
130
|
+
PlayerSpawnDispatcher as PlayerSpawnDispatcher,
|
|
131
|
+
PlayerState as PlayerState,
|
|
132
|
+
PlayerStats as PlayerStats,
|
|
133
|
+
PlayerStatsEntry as PlayerStatsEntry,
|
|
134
|
+
PlayerStatsStats as PlayerStatsStats,
|
|
135
|
+
PlayerSummaryData as PlayerSummaryData,
|
|
136
|
+
PlayerSwitchTeamStats as PlayerSwitchTeamStats,
|
|
137
|
+
Plugin as Plugin,
|
|
138
|
+
PluginLoadError as PluginLoadError,
|
|
139
|
+
PluginUnloadError as PluginUnloadError,
|
|
140
|
+
PowerUps as PowerUps,
|
|
141
|
+
Powerups as Powerups,
|
|
142
|
+
RED_TEAM_CHAT_CHANNEL as RED_TEAM_CHAT_CHANNEL,
|
|
143
|
+
RET_NONE as RET_NONE,
|
|
144
|
+
RET_STOP as RET_STOP,
|
|
145
|
+
RET_STOP_ALL as RET_STOP_ALL,
|
|
146
|
+
RET_STOP_EVENT as RET_STOP_EVENT,
|
|
147
|
+
RET_USAGE as RET_USAGE,
|
|
148
|
+
RconDummyPlayer as RconDummyPlayer,
|
|
149
|
+
RoundCountdownDispatcher as RoundCountdownDispatcher,
|
|
150
|
+
RoundEndData as RoundEndData,
|
|
151
|
+
RoundEndDispatcher as RoundEndDispatcher,
|
|
152
|
+
RoundOverStats as RoundOverStats,
|
|
153
|
+
RoundStartDispatcher as RoundStartDispatcher,
|
|
154
|
+
SPECTATOR_CHAT_CHANNEL as SPECTATOR_CHAT_CHANNEL,
|
|
155
|
+
ServerCommandDispatcher as ServerCommandDispatcher,
|
|
156
|
+
SetConfigstringDispatcher as SetConfigstringDispatcher,
|
|
157
|
+
SingleWeaponStatsEntry as SingleWeaponStatsEntry,
|
|
158
|
+
StatsData as StatsData,
|
|
159
|
+
StatsDispatcher as StatsDispatcher,
|
|
160
|
+
StatsListener as StatsListener,
|
|
161
|
+
StatsMeansOfDeath as StatsMeansOfDeath,
|
|
162
|
+
StatsWeapon as StatsWeapon,
|
|
163
|
+
TEAMS as TEAMS,
|
|
164
|
+
TEAM_BLUE as TEAM_BLUE,
|
|
165
|
+
TEAM_FREE as TEAM_FREE,
|
|
166
|
+
TEAM_RED as TEAM_RED,
|
|
167
|
+
TEAM_SPECTATOR as TEAM_SPECTATOR,
|
|
168
|
+
TeamChatChannel as TeamChatChannel,
|
|
169
|
+
TeamSwitchAttemptDispatcher as TeamSwitchAttemptDispatcher,
|
|
170
|
+
TeamSwitchDispatcher as TeamSwitchDispatcher,
|
|
171
|
+
TeamSwitchGameData as TeamSwitchGameData,
|
|
172
|
+
TellChannel as TellChannel,
|
|
173
|
+
UncancellableEventReturn as UncancellableEventReturn,
|
|
174
|
+
UnloadDispatcher as UnloadDispatcher,
|
|
175
|
+
UserInfo as UserInfo,
|
|
176
|
+
UserinfoDispatcher as UserinfoDispatcher,
|
|
177
|
+
Vector as Vector,
|
|
178
|
+
Vector3 as Vector3,
|
|
179
|
+
VoteCalledDispatcher as VoteCalledDispatcher,
|
|
180
|
+
VoteDispatcher as VoteDispatcher,
|
|
181
|
+
VoteEndedDispatcher as VoteEndedDispatcher,
|
|
182
|
+
VoteStartedDispatcher as VoteStartedDispatcher,
|
|
183
|
+
WEAPONS as WEAPONS,
|
|
184
|
+
Weapons as Weapons,
|
|
185
|
+
WeaponsStatsEntry as WeaponsStatsEntry,
|
|
186
|
+
__plugins_version__ as __plugins_version__,
|
|
187
|
+
__version__ as __version__,
|
|
188
|
+
__version_info__ as __version_info__,
|
|
189
|
+
add_console_command as add_console_command,
|
|
190
|
+
allow_single_player as allow_single_player,
|
|
191
|
+
callvote as callvote,
|
|
192
|
+
client_command as client_command,
|
|
193
|
+
console_command as console_command,
|
|
194
|
+
console_print as console_print,
|
|
195
|
+
delay as delay,
|
|
196
|
+
destroy_kamikaze_timers as destroy_kamikaze_timers,
|
|
197
|
+
dev_print_items as dev_print_items,
|
|
198
|
+
drop_holdable as drop_holdable,
|
|
199
|
+
force_vote as force_vote,
|
|
200
|
+
force_weapon_respawn_time as force_weapon_respawn_time,
|
|
201
|
+
frame_tasks as frame_tasks,
|
|
202
|
+
get_configstring as get_configstring,
|
|
203
|
+
get_cvar as get_cvar,
|
|
204
|
+
get_logger as get_logger,
|
|
205
|
+
get_targetting_entities as get_targetting_entities,
|
|
206
|
+
get_userinfo as get_userinfo,
|
|
207
|
+
handle_client_command as handle_client_command,
|
|
208
|
+
handle_console_print as handle_console_print,
|
|
209
|
+
handle_damage as handle_damage,
|
|
210
|
+
handle_exception as handle_exception,
|
|
211
|
+
handle_frame as handle_frame,
|
|
212
|
+
handle_kamikaze_explode as handle_kamikaze_explode,
|
|
213
|
+
handle_kamikaze_use as handle_kamikaze_use,
|
|
214
|
+
handle_new_game as handle_new_game,
|
|
215
|
+
handle_player_connect as handle_player_connect,
|
|
216
|
+
handle_player_disconnect as handle_player_disconnect,
|
|
217
|
+
handle_player_loaded as handle_player_loaded,
|
|
218
|
+
handle_player_spawn as handle_player_spawn,
|
|
219
|
+
handle_rcon as handle_rcon,
|
|
220
|
+
handle_server_command as handle_server_command,
|
|
221
|
+
handle_set_configstring as handle_set_configstring,
|
|
222
|
+
initialize as initialize,
|
|
223
|
+
initialize_cvars as initialize_cvars,
|
|
224
|
+
kick as kick,
|
|
225
|
+
late_init as late_init,
|
|
226
|
+
load_plugin as load_plugin,
|
|
227
|
+
load_preset_plugins as load_preset_plugins,
|
|
228
|
+
log_exception as log_exception,
|
|
229
|
+
next_frame as next_frame,
|
|
230
|
+
next_frame_tasks as next_frame_tasks,
|
|
231
|
+
noclip as noclip,
|
|
232
|
+
owner as owner,
|
|
233
|
+
parse_variables as parse_variables,
|
|
234
|
+
player_info as player_info,
|
|
235
|
+
player_spawn as player_spawn,
|
|
236
|
+
player_state as player_state,
|
|
237
|
+
player_stats as player_stats,
|
|
238
|
+
players_info as players_info,
|
|
239
|
+
re_color_tag as re_color_tag,
|
|
240
|
+
redirect_print as redirect_print,
|
|
241
|
+
register_handler as register_handler,
|
|
242
|
+
register_handlers as register_handlers,
|
|
243
|
+
reload_plugin as reload_plugin,
|
|
244
|
+
remove_dropped_items as remove_dropped_items,
|
|
245
|
+
replace_items as replace_items,
|
|
246
|
+
send_server_command as send_server_command,
|
|
247
|
+
set_ammo as set_ammo,
|
|
248
|
+
set_armor as set_armor,
|
|
249
|
+
set_configstring as set_configstring,
|
|
250
|
+
set_cvar as set_cvar,
|
|
251
|
+
set_cvar_limit as set_cvar_limit,
|
|
252
|
+
set_cvar_limit_once as set_cvar_limit_once,
|
|
253
|
+
set_cvar_once as set_cvar_once,
|
|
254
|
+
set_flight as set_flight,
|
|
255
|
+
set_health as set_health,
|
|
256
|
+
set_holdable as set_holdable,
|
|
257
|
+
set_invulnerability as set_invulnerability,
|
|
258
|
+
set_map_subtitles as set_map_subtitles,
|
|
259
|
+
set_plugins_version as set_plugins_version,
|
|
260
|
+
set_position as set_position,
|
|
261
|
+
set_powerups as set_powerups,
|
|
262
|
+
set_privileges as set_privileges,
|
|
263
|
+
set_score as set_score,
|
|
264
|
+
set_velocity as set_velocity,
|
|
265
|
+
set_weapon as set_weapon,
|
|
266
|
+
set_weapons as set_weapons,
|
|
267
|
+
slay_with_mod as slay_with_mod,
|
|
268
|
+
spawn_item as spawn_item,
|
|
269
|
+
stats_listener as stats_listener,
|
|
270
|
+
thread as thread,
|
|
271
|
+
threading_excepthook as threading_excepthook,
|
|
272
|
+
unload_plugin as unload_plugin,
|
|
273
|
+
uptime as uptime,
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
__all__ = [
|
|
277
|
+
"AbstractChannel",
|
|
278
|
+
"AbstractDummyPlayer",
|
|
279
|
+
"BLUE_TEAM_CHAT_CHANNEL",
|
|
280
|
+
"CHAT_CHANNEL",
|
|
281
|
+
"COMMANDS",
|
|
282
|
+
"CONNECTION_STATES",
|
|
283
|
+
"CONSOLE_CHANNEL",
|
|
284
|
+
"CS_ACTIVE",
|
|
285
|
+
"CS_CONNECTED",
|
|
286
|
+
"CS_FREE",
|
|
287
|
+
"CS_PRIMED",
|
|
288
|
+
"CS_ZOMBIE",
|
|
289
|
+
"CVAR_ARCHIVE",
|
|
290
|
+
"CVAR_CHEAT",
|
|
291
|
+
"CVAR_INIT",
|
|
292
|
+
"CVAR_LATCH",
|
|
293
|
+
"CVAR_NORESTART",
|
|
294
|
+
"CVAR_ROM",
|
|
295
|
+
"CVAR_SERVERINFO",
|
|
296
|
+
"CVAR_SYSTEMINFO",
|
|
297
|
+
"CVAR_TEMP",
|
|
298
|
+
"CVAR_USERINFO",
|
|
299
|
+
"CVAR_USER_CREATED",
|
|
300
|
+
"CancellableEventReturn",
|
|
301
|
+
"ChatChannel",
|
|
302
|
+
"ChatEventDispatcher",
|
|
303
|
+
"ClientCommandChannel",
|
|
304
|
+
"ClientCommandDispatcher",
|
|
305
|
+
"Command",
|
|
306
|
+
"CommandDispatcher",
|
|
307
|
+
"CommandInvoker",
|
|
308
|
+
"ConsoleChannel",
|
|
309
|
+
"ConsolePrintDispatcher",
|
|
310
|
+
"DAMAGE_NO_ARMOR",
|
|
311
|
+
"DAMAGE_NO_KNOCKBACK",
|
|
312
|
+
"DAMAGE_NO_PROTECTION",
|
|
313
|
+
"DAMAGE_NO_TEAM_PROTECTION",
|
|
314
|
+
"DAMAGE_RADIUS",
|
|
315
|
+
"DEBUG",
|
|
316
|
+
"DEFAULT_PLUGINS",
|
|
317
|
+
"DamageDispatcher",
|
|
318
|
+
"DamageEntry",
|
|
319
|
+
"DeathData",
|
|
320
|
+
"DeathDispatcher",
|
|
321
|
+
"EVENT_DISPATCHERS",
|
|
322
|
+
"EventDispatcher",
|
|
323
|
+
"EventDispatcherManager",
|
|
324
|
+
"FREE_CHAT_CHANNEL",
|
|
325
|
+
"Flight",
|
|
326
|
+
"FrameEventDispatcher",
|
|
327
|
+
"GAMETYPES",
|
|
328
|
+
"GAMETYPES_SHORT",
|
|
329
|
+
"Game",
|
|
330
|
+
"GameCountdownDispatcher",
|
|
331
|
+
"GameEndData",
|
|
332
|
+
"GameEndDispatcher",
|
|
333
|
+
"GameStartData",
|
|
334
|
+
"GameStartDispatcher",
|
|
335
|
+
"KamikazeExplodeDispatcher",
|
|
336
|
+
"KamikazeUseDispatcher",
|
|
337
|
+
"KillData",
|
|
338
|
+
"KillDispatcher",
|
|
339
|
+
"MAX_MSG_LENGTH",
|
|
340
|
+
"MOD_BFG",
|
|
341
|
+
"MOD_BFG_SPLASH",
|
|
342
|
+
"MOD_CHAINGUN",
|
|
343
|
+
"MOD_CRUSH",
|
|
344
|
+
"MOD_FALLING",
|
|
345
|
+
"MOD_GAUNTLET",
|
|
346
|
+
"MOD_GRAPPLE",
|
|
347
|
+
"MOD_GRENADE",
|
|
348
|
+
"MOD_GRENADE_SPLASH",
|
|
349
|
+
"MOD_HMG",
|
|
350
|
+
"MOD_JUICED",
|
|
351
|
+
"MOD_KAMIKAZE",
|
|
352
|
+
"MOD_LAVA",
|
|
353
|
+
"MOD_LIGHTNING",
|
|
354
|
+
"MOD_LIGHTNING_DISCHARGE",
|
|
355
|
+
"MOD_MACHINEGUN",
|
|
356
|
+
"MOD_NAIL",
|
|
357
|
+
"MOD_PLASMA",
|
|
358
|
+
"MOD_PLASMA_SPLASH",
|
|
359
|
+
"MOD_PROXIMITY_MINE",
|
|
360
|
+
"MOD_RAILGUN",
|
|
361
|
+
"MOD_RAILGUN_HEADSHOT",
|
|
362
|
+
"MOD_ROCKET",
|
|
363
|
+
"MOD_ROCKET_SPLASH",
|
|
364
|
+
"MOD_SHOTGUN",
|
|
365
|
+
"MOD_SLIME",
|
|
366
|
+
"MOD_SUICIDE",
|
|
367
|
+
"MOD_SWITCH_TEAMS",
|
|
368
|
+
"MOD_TARGET_LASER",
|
|
369
|
+
"MOD_TELEFRAG",
|
|
370
|
+
"MOD_THAW",
|
|
371
|
+
"MOD_TRIGGER_HURT",
|
|
372
|
+
"MOD_UNKNOWN",
|
|
373
|
+
"MOD_WATER",
|
|
374
|
+
"MapDispatcher",
|
|
375
|
+
"MatchReportStats",
|
|
376
|
+
"MatchStartedStats",
|
|
377
|
+
"MedalData",
|
|
378
|
+
"MedalsEntry",
|
|
379
|
+
"NewGameDispatcher",
|
|
380
|
+
"NonexistentGameError",
|
|
381
|
+
"NonexistentPlayerError",
|
|
382
|
+
"PRIV_ADMIN",
|
|
383
|
+
"PRIV_BANNED",
|
|
384
|
+
"PRIV_MOD",
|
|
385
|
+
"PRIV_NONE",
|
|
386
|
+
"PRIV_ROOT",
|
|
387
|
+
"PRI_HIGH",
|
|
388
|
+
"PRI_HIGHEST",
|
|
389
|
+
"PRI_LOW",
|
|
390
|
+
"PRI_LOWEST",
|
|
391
|
+
"PRI_NORMAL",
|
|
392
|
+
"PickupsEntry",
|
|
393
|
+
"Player",
|
|
394
|
+
"PlayerConnectDispatcher",
|
|
395
|
+
"PlayerConnectStats",
|
|
396
|
+
"PlayerData",
|
|
397
|
+
"PlayerDeathStats",
|
|
398
|
+
"PlayerDisconnectDispatcher",
|
|
399
|
+
"PlayerDisconnectStats",
|
|
400
|
+
"PlayerGameData",
|
|
401
|
+
"PlayerInfo",
|
|
402
|
+
"PlayerKillStats",
|
|
403
|
+
"PlayerLoadedDispatcher",
|
|
404
|
+
"PlayerMedalStats",
|
|
405
|
+
"PlayerSpawnDispatcher",
|
|
406
|
+
"PlayerState",
|
|
407
|
+
"PlayerStats",
|
|
408
|
+
"PlayerStatsEntry",
|
|
409
|
+
"PlayerStatsStats",
|
|
410
|
+
"PlayerSummaryData",
|
|
411
|
+
"PlayerSwitchTeamStats",
|
|
412
|
+
"Plugin",
|
|
413
|
+
"PluginLoadError",
|
|
414
|
+
"PluginUnloadError",
|
|
415
|
+
"PowerUps",
|
|
416
|
+
"Powerups",
|
|
417
|
+
"RED_TEAM_CHAT_CHANNEL",
|
|
418
|
+
"RET_NONE",
|
|
419
|
+
"RET_STOP",
|
|
420
|
+
"RET_STOP_ALL",
|
|
421
|
+
"RET_STOP_EVENT",
|
|
422
|
+
"RET_USAGE",
|
|
423
|
+
"RconDummyPlayer",
|
|
424
|
+
"RoundCountdownDispatcher",
|
|
425
|
+
"RoundEndData",
|
|
426
|
+
"RoundEndDispatcher",
|
|
427
|
+
"RoundOverStats",
|
|
428
|
+
"RoundStartDispatcher",
|
|
429
|
+
"SPECTATOR_CHAT_CHANNEL",
|
|
430
|
+
"ServerCommandDispatcher",
|
|
431
|
+
"SetConfigstringDispatcher",
|
|
432
|
+
"SingleWeaponStatsEntry",
|
|
433
|
+
"StatsData",
|
|
434
|
+
"StatsDispatcher",
|
|
435
|
+
"StatsListener",
|
|
436
|
+
"StatsMeansOfDeath",
|
|
437
|
+
"StatsWeapon",
|
|
438
|
+
"TEAMS",
|
|
439
|
+
"TEAM_BLUE",
|
|
440
|
+
"TEAM_FREE",
|
|
441
|
+
"TEAM_RED",
|
|
442
|
+
"TEAM_SPECTATOR",
|
|
443
|
+
"TeamChatChannel",
|
|
444
|
+
"TeamSwitchAttemptDispatcher",
|
|
445
|
+
"TeamSwitchDispatcher",
|
|
446
|
+
"TeamSwitchGameData",
|
|
447
|
+
"TellChannel",
|
|
448
|
+
"UncancellableEventReturn",
|
|
449
|
+
"UnloadDispatcher",
|
|
450
|
+
"UserInfo",
|
|
451
|
+
"UserinfoDispatcher",
|
|
452
|
+
"Vector",
|
|
453
|
+
"Vector3",
|
|
454
|
+
"VoteCalledDispatcher",
|
|
455
|
+
"VoteDispatcher",
|
|
456
|
+
"VoteEndedDispatcher",
|
|
457
|
+
"VoteStartedDispatcher",
|
|
458
|
+
"WEAPONS",
|
|
459
|
+
"Weapons",
|
|
460
|
+
"WeaponsStatsEntry",
|
|
461
|
+
"__plugins_version__",
|
|
462
|
+
"__version__",
|
|
463
|
+
"__version_info__",
|
|
464
|
+
"add_console_command",
|
|
465
|
+
"allow_single_player",
|
|
466
|
+
"callvote",
|
|
467
|
+
"client_command",
|
|
468
|
+
"console_command",
|
|
469
|
+
"console_print",
|
|
470
|
+
"delay",
|
|
471
|
+
"destroy_kamikaze_timers",
|
|
472
|
+
"dev_print_items",
|
|
473
|
+
"drop_holdable",
|
|
474
|
+
"force_vote",
|
|
475
|
+
"force_weapon_respawn_time",
|
|
476
|
+
"frame_tasks",
|
|
477
|
+
"get_configstring",
|
|
478
|
+
"get_cvar",
|
|
479
|
+
"get_logger",
|
|
480
|
+
"get_targetting_entities",
|
|
481
|
+
"get_userinfo",
|
|
482
|
+
"handle_client_command",
|
|
483
|
+
"handle_console_print",
|
|
484
|
+
"handle_damage",
|
|
485
|
+
"handle_exception",
|
|
486
|
+
"handle_frame",
|
|
487
|
+
"handle_kamikaze_explode",
|
|
488
|
+
"handle_kamikaze_use",
|
|
489
|
+
"handle_new_game",
|
|
490
|
+
"handle_player_connect",
|
|
491
|
+
"handle_player_disconnect",
|
|
492
|
+
"handle_player_loaded",
|
|
493
|
+
"handle_player_spawn",
|
|
494
|
+
"handle_rcon",
|
|
495
|
+
"handle_server_command",
|
|
496
|
+
"handle_set_configstring",
|
|
497
|
+
"initialize",
|
|
498
|
+
"initialize_cvars",
|
|
499
|
+
"kick",
|
|
500
|
+
"late_init",
|
|
501
|
+
"load_plugin",
|
|
502
|
+
"load_preset_plugins",
|
|
503
|
+
"log_exception",
|
|
504
|
+
"next_frame",
|
|
505
|
+
"next_frame_tasks",
|
|
506
|
+
"noclip",
|
|
507
|
+
"owner",
|
|
508
|
+
"parse_variables",
|
|
509
|
+
"player_info",
|
|
510
|
+
"player_spawn",
|
|
511
|
+
"player_state",
|
|
512
|
+
"player_stats",
|
|
513
|
+
"players_info",
|
|
514
|
+
"re_color_tag",
|
|
515
|
+
"redirect_print",
|
|
516
|
+
"register_handler",
|
|
517
|
+
"register_handlers",
|
|
518
|
+
"reload_plugin",
|
|
519
|
+
"remove_dropped_items",
|
|
520
|
+
"replace_items",
|
|
521
|
+
"send_server_command",
|
|
522
|
+
"set_ammo",
|
|
523
|
+
"set_armor",
|
|
524
|
+
"set_configstring",
|
|
525
|
+
"set_cvar",
|
|
526
|
+
"set_cvar_limit",
|
|
527
|
+
"set_cvar_limit_once",
|
|
528
|
+
"set_cvar_once",
|
|
529
|
+
"set_flight",
|
|
530
|
+
"set_health",
|
|
531
|
+
"set_holdable",
|
|
532
|
+
"set_invulnerability",
|
|
533
|
+
"set_map_subtitles",
|
|
534
|
+
"set_plugins_version",
|
|
535
|
+
"set_position",
|
|
536
|
+
"set_powerups",
|
|
537
|
+
"set_privileges",
|
|
538
|
+
"set_score",
|
|
539
|
+
"set_velocity",
|
|
540
|
+
"set_weapon",
|
|
541
|
+
"set_weapons",
|
|
542
|
+
"slay_with_mod",
|
|
543
|
+
"spawn_item",
|
|
544
|
+
"stats_listener",
|
|
545
|
+
"thread",
|
|
546
|
+
"threading_excepthook",
|
|
547
|
+
"unload_plugin",
|
|
548
|
+
"uptime",
|
|
549
|
+
]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: minqlx-stubs
|
|
3
|
+
Version: 0.8.0
|
|
4
|
+
Summary: Type stubs for the minqlx module of shinqlx
|
|
5
|
+
License-Expression: BSD-3-Clause
|
|
6
|
+
Project-URL: Homepage, https://github.com/mgaertne/shinqlx
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
9
|
+
Classifier: Typing :: Stubs Only
|
|
10
|
+
Requires-Python: >=3.8
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: shinqlx-stubs==0.8.0
|
|
14
|
+
Provides-Extra: redis
|
|
15
|
+
Requires-Dist: shinqlx-stubs[redis]==0.8.0; extra == "redis"
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# minqlx-stubs
|
|
19
|
+
|
|
20
|
+
Type stubs for the module `minqlx` **as shinqlx provides it**, so for plugins that run on a [shinqlx](https://github.com/mgaertne/shinqlx)
|
|
21
|
+
server. They are not the stubs of the original [minqlx](https://github.com/MinoMino/minqlx).
|
|
22
|
+
|
|
23
|
+
A plugin that has to run on the original minqlx as well must stay within the names that both have. Compared with
|
|
24
|
+
minqlx 0.5.3 this package
|
|
25
|
+
|
|
26
|
+
* lacks `RedTeamChatChannel`, `BlueTeamChatChannel`, `FreeChatChannel` and `SpectatorChatChannel`. Use the constants
|
|
27
|
+
such as `RED_TEAM_CHAT_CHANNEL` or `TeamChatChannel`, and the misspelt `PlayerDisonnectDispatcher` is spelled
|
|
28
|
+
`PlayerDisconnectDispatcher`. `main_logger` and the modules that minqlx passes on, for example `minqlx.os`, are gone,
|
|
29
|
+
* also exports the type names of the stubs, for example `GameStartData`, `KillData` or `CancellableEventReturn`. They
|
|
30
|
+
exist only in the stubs and are not available at runtime, so import them under `typing.TYPE_CHECKING`,
|
|
31
|
+
* has names that minqlx 0.5.3 does not have, among them the `damage` event with `DamageDispatcher`, the `DAMAGE_*`
|
|
32
|
+
constants, `TeamChatChannel`, `get_targetting_entities`, `handle_damage` and `threading_excepthook`,
|
|
33
|
+
* differs in signatures: `slay_with_mod` takes `means_of_death` instead of `mod`, `thread` has no `force`, and
|
|
34
|
+
`setex`, `lrem` and `zincrby` of the database take their values by keyword.
|
|
35
|
+
|
|
36
|
+
The page [Migration from minqlx](https://github.com/mgaertne/shinqlx/blob/main/docs/migration.rst) lists all differences. This package needs
|
|
37
|
+
`shinqlx-stubs` of the same version.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
minqlx-stubs/__init__.pyi
|
|
5
|
+
minqlx-stubs/database.pyi
|
|
6
|
+
minqlx_stubs.egg-info/PKG-INFO
|
|
7
|
+
minqlx_stubs.egg-info/SOURCES.txt
|
|
8
|
+
minqlx_stubs.egg-info/dependency_links.txt
|
|
9
|
+
minqlx_stubs.egg-info/requires.txt
|
|
10
|
+
minqlx_stubs.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
minqlx-stubs
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "minqlx-stubs"
|
|
7
|
+
version = "0.8.0"
|
|
8
|
+
description = "Type stubs for the minqlx module of shinqlx"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
license = "BSD-3-Clause"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
16
|
+
"Typing :: Stubs Only",
|
|
17
|
+
]
|
|
18
|
+
dependencies = ["shinqlx-stubs==0.8.0"]
|
|
19
|
+
|
|
20
|
+
[project.optional-dependencies]
|
|
21
|
+
redis = ["shinqlx-stubs[redis]==0.8.0"]
|
|
22
|
+
|
|
23
|
+
[project.urls]
|
|
24
|
+
Homepage = "https://github.com/mgaertne/shinqlx"
|
|
25
|
+
|
|
26
|
+
[tool.setuptools]
|
|
27
|
+
packages = ["minqlx-stubs"]
|
|
28
|
+
|
|
29
|
+
[tool.setuptools.package-data]
|
|
30
|
+
"minqlx-stubs" = ["*.pyi", "py.typed"]
|