We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f735c0f commit 01415d9Copy full SHA for 01415d9
MLAPI/NetworkingManagerComponents/Binary/BitReader.cs
@@ -127,7 +127,8 @@ public object ReadObjectPacked(Type type)
127
return ReadRotation(3);
128
if (type == typeof(char))
129
return ReadCharPacked();
130
- if (type == typeof(IBitWritable)) {
+ if (type == typeof(IBitWritable))
131
+ {
132
object instance = Activator.CreateInstance(type);
133
((IBitWritable)instance).Read(this);
134
return instance;
MLAPI/NetworkingManagerComponents/Binary/IBitWritable.cs
@@ -3,8 +3,10 @@
3
using System.Linq;
4
using System.Text;
5
6
-namespace MLAPI.Serialization {
7
- interface IBitWritable {
+namespace MLAPI.Serialization
+{
8
+ interface IBitWritable
9
10
void Write(BitWriter writer);
11
void Read(BitReader reader);
12
}
0 commit comments