cssdm_weapons.h
author Ruben Gonzalez <drifter01620@gmail.com>
Wed Oct 01 11:50:24 2014 -0400 (2014-10-01)
changeset 193 277c856152b0
parent 0 67dcd379a2d5
permissions -rw-r--r--
Update linix CS:GO gamedata
[email protected]
     1
/**
[email protected]
     2
 * vim: set ts=4 :
[email protected]
     3
 * ===============================================================
[email protected]
     4
 * CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC. 
[email protected]
     5
 * By David "BAILOPAN" Anderson
[email protected]
     6
 * All rights reserved.
[email protected]
     7
 * ===============================================================
[email protected]
     8
 *
[email protected]
     9
 * This program is free software; you can redistribute it and/or modify
[email protected]
    10
 * it under the terms of the GNU General Public License as published by
[email protected]
    11
 * the Free Software Foundation; either version 2 of the License, or (at
[email protected]
    12
 * your option) any later version.
[email protected]
    13
 * 
[email protected]
    14
 * This program is distributed in the hope that it will be useful, but
[email protected]
    15
 * WITHOUT ANY WARRANTY; without even the implied warranty of
[email protected]
    16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
[email protected]
    17
 * General Public License for more details.
[email protected]
    18
 * 
[email protected]
    19
 * You should have received a copy of the GNU General Public License
[email protected]
    20
 * along with this program; see the file COPYING; if not, write to the
[email protected]
    21
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
[email protected]
    22
 * MA 02110-1301 USA
[email protected]
    23
 * 
[email protected]
    24
 * Version: $Id$
[email protected]
    25
 */
[email protected]
    26
[email protected]
    27
#ifndef _INCLUDE_CSSDM_WEAPONS_H_
[email protected]
    28
#define _INCLUDE_CSSDM_WEAPONS_H_
[email protected]
    29
[email protected]
    30
enum WeaponType
[email protected]
    31
{
[email protected]
    32
	WeaponType_Invalid = -1,
[email protected]
    33
	WeaponType_Primary = 0,
[email protected]
    34
	WeaponType_Secondary = 1,
[email protected]
    35
	WeaponType_Grenade = 3,
[email protected]
    36
	WeaponType_C4 = 4,
[email protected]
    37
};
[email protected]
    38
[email protected]
    39
struct dm_weapon_t
[email protected]
    40
{
[email protected]
    41
	char *classname;
[email protected]
    42
	char *display;
[email protected]
    43
	WeaponType type;
[email protected]
    44
	int id;
[email protected]
    45
};
[email protected]
    46
[email protected]
    47
/* External API */
[email protected]
    48
dm_weapon_t *DM_FindWeapon(const char *name);
[email protected]
    49
dm_weapon_t *DM_GetWeapon(unsigned int index);
[email protected]
    50
[email protected]
    51
/* Internal API */
[email protected]
    52
bool DM_ParseWeapons(char *error, size_t maxlength);
[email protected]
    53
void DM_FreeWeapons();
[email protected]
    54
[email protected]
    55
#endif //_INCLUDE_CSSDM_WEAPONS_H_