hedgewars/PascalExports.pas
changeset 3981 928e2040d34f
parent 3973 0d1a420531ef
child 3989 adffb668f06e
--- a/hedgewars/PascalExports.pas	Sat Oct 16 19:01:11 2010 +0200
+++ b/hedgewars/PascalExports.pas	Sun Oct 17 17:47:07 2010 +0200
@@ -267,6 +267,16 @@
     exit (str2pchar(trammo[Ammoz[TAmmoType(whichone+1)].NameId]));
 end;
 
+function HW_getWeaponCaptionByIndex(whichone: LongInt): PChar; cdecl; export;
+begin
+    exit (str2pchar(trammoc[Ammoz[TAmmoType(whichone+1)].NameId]));
+end;
+
+function HW_getWeaponDescriptionByIndex(whichone: LongInt): PChar; cdecl; export;
+begin
+    exit (str2pchar(trammod[Ammoz[TAmmoType(whichone+1)].NameId]));
+end;
+
 function HW_getNumberOfWeapons:LongInt; cdecl; export;
 begin
     exit(ord(high(TAmmoType)));