Files
narya/src/main/java/com/threerings/presents/tools/sender.tmpl
T
Michael Bayne 9d2ca42eac Convert Narya (most of the way) over to a Maven Ant task based build. The
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
2010-10-22 21:12:29 +00:00

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}}
}