ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/event2inc
Revision: 1.5
Committed: Mon Apr 5 03:22:25 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
CVS Tags: rel-3_1, rel-3_0, HEAD
Changes since 1.4: +3 -1 lines
Log Message:
optimisations

File Contents

# User Rev Content
1 root 1.1 #! perl
2    
3 root 1.2 print <<EOF;
4     //
5     // AUTOGENERATED: this is a generated file
6 root 1.3 // edit pod/events.pod instead
7 root 1.2 //
8    
9 root 1.4 /*
10     * This file is part of Deliantra, the Roguelike Realtime MMORPG.
11     *
12     * Copyright (©) 2005,2006,2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
13     *
14     * Deliantra is free software: you can redistribute it and/or modify it under
15     * the terms of the Affero GNU General Public License as published by the
16     * Free Software Foundation, either version 3 of the License, or (at your
17     * option) any later version.
18     *
19     * This program is distributed in the hope that it will be useful,
20     * but WITHOUT ANY WARRANTY; without even the implied warranty of
21     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22     * GNU General Public License for more details.
23     *
24     * You should have received a copy of the Affero GNU General Public License
25     * and the GNU General Public License along with this program. If not, see
26     * <http://www.gnu.org/licenses/>.
27     *
28     * The authors can be reached via e-mail to <support\@deliantra.net>
29     */
30    
31 root 1.2 EOF
32    
33 root 1.5 my $idx = 0;
34    
35 root 1.1 while (<>) {
36     if (/^=head2 (\S+) EVENTS/) {
37     $klass = $1;
38     } elsif (/=head3 (\S+)\s*(.*)/) {
39 root 1.5 print "def ($klass, \U$1\E) // ", $idx++, " $2\n";
40 root 1.1 }
41     }