Skip to content

Commit 79593cb

Browse files
committed
Added more to the weapons.restrictions wiki.
1 parent b6bac75 commit 79593cb

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

addons/source-python/docs/source-python/source/developing/modules/weapons.restrictions.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ weapons.restrictions module
55
:members:
66
:undoc-members:
77
:show-inheritance:
8+
9+
.. data:: weapon_restriction_handler
10+
11+
The base instance of the :class:`WeaponRestrictionHandler` class that
12+
is used internally by the :class:`players.entity.Player` class.
13+
14+
.. data:: weapon_restriction_manager
15+
16+
The singleton object of the :class:`_WeaponRestrictionManager` class.

addons/source-python/packages/source-python/weapons/restrictions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
# =============================================================================
3636
# >> ALL DECLARATION
3737
# =============================================================================
38-
__all__ = ('WeaponRestrictionHandler',
38+
__all__ = ('_WeaponRestrictionManager',
39+
'WeaponRestrictionHandler',
3940
'weapon_restriction_handler',
4041
'weapon_restriction_manager',
4142
)

0 commit comments

Comments
 (0)