made Net a static class
This commit is contained in:
@@ -71,7 +71,7 @@ class RPC {
|
||||
}
|
||||
|
||||
return macro {
|
||||
kernel.net.Net.instance.registerProto($v{proto},(pack)->{
|
||||
kernel.net.Net.registerProto($v{proto},(pack)->{
|
||||
$a{exprs}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -14,7 +14,7 @@ abstract class RPCBase {
|
||||
}
|
||||
|
||||
private function _performRequest(func: String, args: Array<Dynamic>):Promise<Dynamic> {
|
||||
return Net.instance.sendAndAwait(id, this._proto, {
|
||||
return Net.sendAndAwait(id, this._proto, {
|
||||
func: func,
|
||||
// args: args
|
||||
}).map((res) -> {
|
||||
|
||||
Reference in New Issue
Block a user