Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @:rpc(server)
- class ServerAPI extends RPCHandler implements RPC {
- @:rpc public function isServerAlive():Bool {
- return true;
- }
- @:rpc public function getSystemInfo():OZWJson {
- var json = new OZWJson();
- return json;
- }
- @:rpc public function onEvent(event:String):Void;
- }
- //////////////////////////////////////////////////////
- @:rpc(client)
- class ClientAPI implements RPC {
- public function new() {
- }
- @:rpc public function isServerAlive():Bool;
- @:rpc public function getSystemInfo():OZWJson;
- @:rpc public function onEvent(event:String):Void {
- trace("ON EVENT - " + event);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement