Files
narya/lib/sender.tmpl
T
Michael Bayne 2662abde69 Screw the damned "generated on" stamps since they end up generating
different files when the source interface hasn't changed and CVS sticks a
nice little "last checked in" timestamp in there anyway.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2311 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-19 02:03:09 +00:00

31 lines
726 B
Cheetah

//
// [% idstr %]
package [% package %];
[% FOREACH import = imports -%]
import [% import %];
[% END -%]
/**
* Used to issue notifications to a {@link [% name %]Receiver} instance on a
* client.
*/
public class [% name %]Sender extends InvocationSender
{
[% FOREACH m = methods -%]
/**
* Issues a notification that will result in a call to {@link
* [% name %]Receiver#[% m.mname %]} on a client.
*/
public static void [% m.sname %] (
ClientObject target[% IF m.arglist %], [% END %][% m.arglist %])
{
sendNotification(
target, [% name %]Decoder.RECEIVER_CODE, [% name %]Decoder.[% m.mcode %],
new Object[] { [% m.wrapped_args %] });
}
[% END -%]
}