2302b5f0e9
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1657 542714f4-19e9-0310-aa3c-eee0fc999fb1
36 lines
861 B
Cheetah
36 lines
861 B
Cheetah
//
|
|
// [% idstr %]
|
|
|
|
package [% package %];
|
|
|
|
[% FOREACH import = imports -%]
|
|
import [% import %];
|
|
[% END -%]
|
|
|
|
/**
|
|
* Used to issue notifications to a {@link [% name %]Receiver} instance on a
|
|
* client.
|
|
*
|
|
* <p> Generated from <code>
|
|
* $Id: sender.tmpl,v 1.3 2002/08/20 19:34:06 mdb Exp $
|
|
* </code>
|
|
*/
|
|
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 -%]
|
|
// Generated on [% genstamp %].
|
|
}
|