ref: cbe3f178b8c314a6b66c04f26906b06153e59c3a
parent: aff12461949e9ffc29faed9f238c9a74412be2fa
author: Simon Howard <fraggle@gmail.com>
date: Mon Oct 3 07:02:08 EDT 2005
Add a weaponinfo_t mapping Subversion-branch: /trunk/chocolate-doom Subversion-revision: 156
--- a/src/deh_weapon.c
+++ b/src/deh_weapon.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: deh_weapon.c 153 2005-10-02 23:49:01Z fraggle $
+// $Id: deh_weapon.c 156 2005-10-03 11:02:08Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.2 2005/10/03 11:02:08 fraggle
+// Add a weaponinfo_t mapping
+//
// Revision 1.1 2005/10/02 23:49:01 fraggle
// The beginnings of dehacked support
//
@@ -33,7 +36,20 @@
#include "doomdef.h"
#include "doomtype.h"
+
+#include "d_items.h"
+
#include "deh_defs.h"
+#include "deh_mapping.h"
+
+DEH_BEGIN_MAPPING(weapon_mapping, weaponinfo_t)
+ DEH_MAPPING("Ammo type", ammo)
+ DEH_MAPPING("Deselect frame", upstate)
+ DEH_MAPPING("Select frame", downstate)
+ DEH_MAPPING("Bobbing frame", readystate)
+ DEH_MAPPING("Shooting frame", atkstate)
+ DEH_MAPPING("Firing frame", flashstate)
+DEH_END_MAPPING
static void *DEH_WeaponStart(deh_context_t *context, char *line)
{