brotorift 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/unity_client_generator.cs.erb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a46ab3acaf1a4f5f631dc256a00d2808431bd30f03764cd68c9d87e92de1a0e
|
4
|
+
data.tar.gz: f6e40a5e854feba074a650eadb592ed766ecf54a76876f6131e25188d7a9444d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eefe8405c3994ff98bd13d1bb7059d7bbb90cc03b734782169eb211f018d8c844dd91bd074124914790d3fbe896cb2020e6583b0a4d351818f9f4be46bdba70f
|
7
|
+
data.tar.gz: c1e3e4734a78fc456f271d446988d61131ba810cc411a63340afd9687dc04a1bd2167f4e32e8e5c8d9cca79a91aaa23d95a0206c93218ff9b5e955e13ba7892e
|
@@ -64,9 +64,12 @@ namespace <%= node.namespace %>
|
|
64
64
|
{
|
65
65
|
public <%= node_direction.handler_name %> handler { get; set; }
|
66
66
|
|
67
|
+
public PacketProcessPolicy policy { get; set; }
|
68
|
+
|
67
69
|
public <%= node_direction.connector_name %>( <%= node_direction.handler_name %> handler )
|
68
70
|
{
|
69
71
|
this.handler = handler;
|
72
|
+
this.policy = PacketProcesPolicy.Discard;
|
70
73
|
}
|
71
74
|
|
72
75
|
private enum InMessage
|
@@ -90,11 +93,11 @@ namespace <%= node.namespace %>
|
|
90
93
|
<% end %>this.SendPacket( packet );
|
91
94
|
}<% end %>
|
92
95
|
|
93
|
-
protected override
|
96
|
+
protected override bool ProcessPacket( InPacket packet )
|
94
97
|
{
|
95
98
|
if( this.handler == null )
|
96
99
|
{
|
97
|
-
return;
|
100
|
+
return this.policy == PacketProcessPolicy.Discard;
|
98
101
|
}
|
99
102
|
|
100
103
|
switch( (InMessage)packet.Header )
|
@@ -108,6 +111,7 @@ namespace <%= node.namespace %>
|
|
108
111
|
default:
|
109
112
|
break;
|
110
113
|
}
|
114
|
+
return true;
|
111
115
|
}
|
112
116
|
}
|
113
117
|
<% end %>
|