81 |
std::vector<L> vListenerList; |
std::vector<L> vListenerList; |
82 |
}; |
}; |
83 |
|
|
84 |
|
#define REGISTER_FIRE_EVENT_METHOD(method) virtual void method() \ |
85 |
|
{ for(int i = 0; i < GetListenerCount(); i++) GetListener(i)->method(); } |
86 |
|
|
87 |
|
#define REGISTER_FIRE_EVENT_METHOD_ARG1(method, T1) virtual void method(T1 _evt_arg1_) \ |
88 |
|
{ for(int i = 0; i < GetListenerCount(); i++) GetListener(i)->method(_evt_arg1_); } |
89 |
|
|
90 |
|
#define REGISTER_FIRE_EVENT_METHOD_ARG2(method, T1, T2) virtual void method(T1 _evt_arg1_, T2 _evt_arg2_) \ |
91 |
|
{ for(int i = 0; i < GetListenerCount(); i++) GetListener(i)->method(_evt_arg1_, _evt_arg2_); } |
92 |
|
|
93 |
/** |
/** |
94 |
* This class is used as a listener, which is notified |
* This class is used as a listener, which is notified |
95 |
* when the number of sampler channels is changed. |
* when the number of sampler channels is changed. |