ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/genkeywords
(Generate patch)

Comparing deliantra/server/include/genkeywords (file contents):
Revision 1.11 by root, Sun Nov 16 03:52:12 2008 UTC vs.
Revision 1.22 by root, Fri Nov 18 20:20:05 2016 UTC

1#!/opt/bin/perl 1#!/opt/bin/perl
2#
3# This file is part of Deliantra, the Roguelike Realtime MMORPG.
4#
5# Copyright (©) 2005,2006,2007,2008,2009,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
6#
7# Deliantra is free software: you can redistribute it and/or modify it under
8# the terms of the Affero GNU General Public License as published by the
9# Free Software Foundation, either version 3 of the License, or (at your
10# option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the Affero GNU General Public License
18# and the GNU General Public License along with this program. If not, see
19# <http://www.gnu.org/licenses/>.
20#
21# The authors can be reached via e-mail to <support@deliantra.net>
22#
2 23
3my %ARG = @ARGV; 24my %ARG = @ARGV;
4 25
5use List::Util; 26use List::Util;
6 27
7# todo: gather dynamically 28# todo: gather dynamically
8my @kw = qw( 29my @kw = qw(
9 no_pass
10 walk_on
11 walk_off
12 fly_on
13 fly_off
14 flying
15
16 gender 30 gender
17 hintmode 31 hintmode
18 attack_skill 32 attack_skill
19 ranged_skill 33 ranged_skill
20 34
114 is_blind 128 is_blind
115 is_buildable 129 is_buildable
116 is_cauldron 130 is_cauldron
117 is_dust 131 is_dust
118 is_floor 132 is_floor
133 is_transparent_floor
119 is_hilly 134 is_hilly
120 is_lightable 135 is_lightable
121 is_thrown 136 is_thrown
122 is_turnable 137 is_turnable
123 is_used_up 138 is_used_up
156 name_pl 171 name_pl
157 neutral 172 neutral
158 no_attack 173 no_attack
159 no_damage 174 no_damage
160 no_drop 175 no_drop
161 no_fix_player
162 no_magic 176 no_magic
163 no_pick 177 no_pick
164 no_skill_ident 178 no_skill_ident
165 no_steal 179 no_steal
166 no_strength 180 no_strength
180 pick_up 194 pick_up
181 player_sold 195 player_sold
182 pow 196 pow
183 precious 197 precious
184 protected 198 protected
199 is_quad
185 race 200 race
186 random_move 201 random_move
187 random_movement 202 random_movement
203 random_speed
188 randomitems 204 randomitems
189 range 205 range
190 range_modifier 206 range_modifier
191 reflect_missile 207 reflect_missile
192 reflect_spell 208 reflect_spell
229 sound_destroy 245 sound_destroy
230 smoothlevel 246 smoothlevel
231 sp 247 sp
232 speed 248 speed
233 speed_left 249 speed_left
250 sl
234 splitting 251 splitting
235 stand_still 252 stand_still
236 startequip 253 startequip
237 state 254 state
238 stealth 255 stealth
284 outdoor 301 outdoor
285 tile_path_1 302 tile_path_1
286 tile_path_2 303 tile_path_2
287 tile_path_3 304 tile_path_3
288 tile_path_4 305 tile_path_4
306 tile_path_5
307 tile_path_6
289 308
290 file_format_version 309 file_format_version
291
292 temp
293 pressure
294 humid
295 windspeed
296 winddir
297 sky
298 310
299 map 311 map
300 savebed_map 312 savebed_map
301 bed_x 313 bed_x
302 bed_y 314 bed_y
326 longname 338 longname
327 jail_map 339 jail_map
328 jail_x 340 jail_x
329 jail_y 341 jail_y
330 portal_map 342 portal_map
331 portal_x
332 portal_y
333 fallback 343 fallback
334 nomore 344 nomore
335 345
336 chance 346 chance
337 mods 347 mods
367 change_name 377 change_name
368 change_title 378 change_title
369 change_slaying 379 change_slaying
370 yes 380 yes
371 no 381 no
382
383 max_level
384
385 authour
386 size
387 index
372); 388);
373 389
374open GPERF, "|-", "exec $ARG{GPERF} -m50 >kw_hash.h" 390open GPERF, "|-", "exec $ARG{GPERF} -m50 >include/kw_hash.h"
375 or die "$ARGV{GPERF}: $!"; 391 or die "$ARGV{GPERF}: $!";
376 392
377print GPERF <<EOF; 393print GPERF <<EOF;
378%language=C++ 394%language=C++
379%enum 395%enum
407 join ", ", map length, @kw; 423 join ", ", map length, @kw;
408 424
409close GPERF 425close GPERF
410 or die "$ARG{GPERF}: failed to run"; 426 or die "$ARG{GPERF}: failed to run";
411 427
412open KW, ">", "keyword.h"; 428open KW, ">", "include/keyword.h";
413 429
414print KW <<EOF; 430print KW <<EOF;
415// 431//
416// AUTOGENERATED: this is a generated file 432// AUTOGENERATED: this is a generated file
417// edit include/genkeywords instead 433// edit include/genkeywords instead

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines