src/events.cpp

changeset 138
a426c1039655
parent 135
8b9132fea327
equal deleted inserted replaced
137:73d057b030d0 138:a426c1039655
35 #include "events.h" 35 #include "events.h"
36 #include "lexer.h" 36 #include "lexer.h"
37 37
38 static List<EventDefinition*> Events; 38 static List<EventDefinition*> Events;
39 39
40 // ============================================================================ 40 // _________________________________________________________________________________________________
41 // 41 //
42 void addEvent (EventDefinition* e) 42 void addEvent (EventDefinition* e)
43 { 43 {
44 Events << e; 44 Events << e;
45 } 45 }
46 46
47 // ============================================================================ 47 // _________________________________________________________________________________________________
48 // 48 //
49 // Finds an event definition by index 49 // Finds an event definition by index
50 // 50 //
51 EventDefinition* findEventByIndex (int idx) 51 EventDefinition* findEventByIndex (int idx)
52 { 52 {
53 return Events[idx]; 53 return Events[idx];
54 } 54 }
55 55
56 // ============================================================================ 56 // _________________________________________________________________________________________________
57 // 57 //
58 // Finds an event definition by name 58 // Finds an event definition by name
59 // 59 //
60 EventDefinition* findEventByName (String a) 60 EventDefinition* findEventByName (String a)
61 { 61 {

mercurial