I am generating per-generic-type types by using @:genericBuild. This works pretty well, but one thing that does not seem to work is to create static functions.
@:genericBuild(EventMacro.Build())
class Event<T : EventData>
{
}
To this I want to add a static function called Fire that does something specific for each that kind of event (pass a name and some parameters).
The syntax should be something like this: Event<ClickData>.Fire()
, but the compiler does not like this. Can you guys think of something that might work?
Thanks