Exemple #1
0
    /*
     * Search through our list of weapons and returns the requested Weapon.
     * Must supply the GoogleFU rowID as a string value.
     */
    public WeaponData GetWeaponData(string weaponId)
    {
        WeaponData ret = null;

        foreach (WeaponData weapon in weaponList)
        {
            if (string.Equals(weapon.weaponName, weaponsDb.GetRow(weaponId)._NAME))
            {
                ret = weapon;
            }
        }
        return(ret);
    }