9d2ca42eac
ActionScript bits remain belligerent, but the Java stuff is mostly shipshape. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6222 542714f4-19e9-0310-aa3c-eee0fc999fb1
28 lines
676 B
Cheetah
28 lines
676 B
Cheetah
package {{package}};
|
|
|
|
{{#imports}}
|
|
import {{this}};
|
|
{{/imports}}
|
|
|
|
/**
|
|
* Used to issue notifications to a {@link {{name}}Receiver} instance on a
|
|
* client.
|
|
*/
|
|
public class {{name}}Sender extends InvocationSender
|
|
{
|
|
{{#methods}}
|
|
/**
|
|
* Issues a notification that will result in a call to {@link
|
|
* {{name}}Receiver#{{method.name}}} on a client.
|
|
*/
|
|
public static void {{senderMethodName}} (
|
|
ClientObject target{{#hasArgs}}, {{/hasArgs}}{{getArgList}})
|
|
{
|
|
sendNotification(
|
|
target, {{name}}Decoder.RECEIVER_CODE, {{name}}Decoder.{{code}},
|
|
new Object[] { {{getWrappedArgList}} }{{transport}});
|
|
}
|
|
|
|
{{/methods}}
|
|
}
|