public ServerListener() { _netSerializer = new NetSerializer(); _netSerializer.RegisterCustomType(SomeVector2.Serialize, SomeVector2.Deserialize); _netSerializer.Subscribe <SamplePacket>(OnSamplePacketReceived); }
public ServerListener() { _netSerializer = new NetSerializer(); _netSerializer.RegisterCustomType(SomeVector2.Serialize, SomeVector2.Deserialize); _netSerializer.Subscribe <SamplePacket>(OnSamplePacketReceived); }