Source code for players.engines.orangebox

# ../players/engines/orangebox/__init__.py

"""Provides Orangebox specific Player based functionality."""

# =============================================================================
# >> IMPORTS
# =============================================================================
# Source.Python Imports
#   Entities
from entities.helpers import wrap_entity_mem_func
#   Players
from players._base import Player as _Player


# =============================================================================
# >> CLASSES
# =============================================================================
[docs]class Player(_Player): """Class used to interact directly with players.""" # Instances of this class will be cached by default caching = True @wrap_entity_mem_func def give_named_item(self, item, sub_type=0): """Give the player a named item.""" return [item, sub_type]