³ò
šõÜNc           @   ss   d  Z  d d k l Z d d k l Z d d k l Z d
 d „ Z d „  Z d
 d „ Z	 d
 d „ Z
 d
 d	 „ Z d
 S(   sj   
$Rev: 576 $
$LastChangedBy: satoon101 $
$LastChangedDate: 2011-10-25 03:23:40 -0400 (Tue, 25 Oct 2011) $
iÿÿÿÿ(   t   getWeaponList(   t   WeaponOrderManager(   t   weaponOrderStoragec         C   s   |  o t  |  Sn t ƒ  i S(   s¿   Returns the named weapon order instance if a name is provided as an
    argument. If no argument is provided, it will return the current GunGame
    weapon order instance that is in use.
    (   R   R   t   active(   t   name(    (    sZ   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/weapons/shortcuts.pyt   get_weapon_order   s    c         C   s'   t  ƒ  i |  ƒ t  ƒ  i i ƒ  t ƒ  S(   s›  Sets the weapon order to be used by GunGame.

    Notes:
        * name: (required)
            The name of the weapon order file as found in
                "../<MOD>/cfg/gungame51/weapon_orders/"
            minus the ".txt" extension.

    Usage:
        from gungame.core.weapons.shortcuts import set_weapon_order

        # Use the default weapon order
        set_weapon_order('default_weapon_order')
    (   R   t   activateR   t   _set_active_order_typeR   (   R   (    (    sZ   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/weapons/shortcuts.pyt   set_weapon_order"   s    c         C   s   t  | ƒ i |  ƒ S(   sO   
    Returns the name of the level's weapon set in GunGame's weapon order.
    (   R   t
   get_weapon(   t   levelt   weaponOrderName(    (    sZ   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/weapons/shortcuts.pyt   get_level_weapon6   s    c         C   s   t  | ƒ i |  ƒ S(   sQ   
    Returns the multikill value of the level set in GunGame's weapon order.
    (   R   t   get_multikill(   R
   R   (    (    sZ   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/weapons/shortcuts.pyt   get_level_multikill=   s    c         C   s   t  |  ƒ i ƒ  S(   N(   R   t   get_total_levels(   R   (    (    sZ   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/weapons/shortcuts.pyR   D   s    N(   t   __doc__t	   weaponlibR    t   gungame51.core.weaponsR   R   t   NoneR   R   R   R   R   (    (    (    sZ   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/weapons/shortcuts.pys   <module>   s   	