brotorift 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffeb983c09de3b7835c52798bfe30d658f6f035bd337a000051cbba4a5e0bc31
4
- data.tar.gz: 6b963b0f2f00c5d167780b5f2c1d3a4ec63e8aa51b05e98cbd386a15678ce03e
3
+ metadata.gz: 8846b36465f9e00289651ba8c3b72952f11574c47ed2a7c0ac5b083df1973b2a
4
+ data.tar.gz: 586fe91d754c5ed8a6f439d1efd4942a9683898436a0995c1cd79a5014866521
5
5
  SHA512:
6
- metadata.gz: ad9317a9da0207ebcbf9caa079447968115f87e59e71158c815a7f126e6e20f5369465b5ea2c3ff160c690b412f1ecd9184c99a26d91040acaff1f005f78807c
7
- data.tar.gz: 595c9295e383cde70247d1f4c06f207a8b81b4ec08bbbf130a7d9456198edca8831c0304c25eb5672de88d5fc25eb4bf1355e3a9f427a5c9a65ea7725216c09f
6
+ metadata.gz: 0cf7a4ec20a9001d3720fecf018048c5cbe6448281b37ba9e54b67232311e95dd267a8be2963c3fe6200fb48d7c70becf6800db0ec323f14b16feedffdb1fcd6
7
+ data.tar.gz: 7f448000a94656b877ba2a47351df5a3d1d08d3e534616000d985a70352759de9b675a7641ff59ae5c0abddb944cc22a750195c2cf5543010a1f12b11e35ecdf
@@ -51,16 +51,22 @@ namespace <%= node.namespace %>
51
51
  <% end %>
52
52
  #endregion
53
53
  <% for node_direction in runtime.get_node_directions node, :client %>
54
- public abstract class <%= node_direction.class_name %> : Client
54
+ public interface <%= node_direction.handler_name %>
55
55
  {<% for m in node_direction.in_direction.messages.values %>
56
56
  /// <summary>
57
57
  /// <%= m.doc %>
58
58
  /// </summary><% for p in m.members %>
59
59
  /// <param name="<%= p.name %>"><%= p.doc %></param><% end %>
60
- protected abstract <%= m.unity %>;<% end %>
60
+ <%= m.unity %>;
61
+ <% end %>}
62
+
63
+ public class <%= node_direction.connector_name %> : Client
64
+ {
65
+ public <%= node_direction.handler_name %> handler { get; private set; }
61
66
 
62
- public <%= node_direction.class_name %>()
67
+ public <%= node_direction.connector_name %>( <%= node_direction.handler_name %> handler )
63
68
  {
69
+ this.handler = handler;
64
70
  }
65
71
 
66
72
  private enum InMessage
@@ -91,7 +97,7 @@ namespace <%= node.namespace %>
91
97
  case InMessage.<%= m.name %>:
92
98
  {<% for p in m.members %>
93
99
  var <%= p.unity_read %><% end %>
94
- this.<%= m.name %>( <%= m.unity_param %> );
100
+ this.handler.<%= m.name %>( <%= m.unity_param %> );
95
101
  }
96
102
  break;<% end %>
97
103
  default:
@@ -163,8 +163,12 @@ end
163
163
 
164
164
 
165
165
  class NodeDirection
166
- def class_name
167
- "#{@remote.name}ConnectorBase"
166
+ def connector_name
167
+ "#{@remote.name}Connector"
168
+ end
169
+
170
+ def handler_name
171
+ "I#{@remote.name}Handler"
168
172
  end
169
173
  end
170
174
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brotorift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ren