Changed delta from long millis to float seconds

This commit is contained in:
Collin Smith 2020-06-24 01:05:47 -07:00
parent e07e6bd2ba
commit 165459dd12
6 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ public abstract class MessageChannel implements ReliablePacketController.PacketL
}
public abstract void reset();
public abstract void update(long delta, DatagramChannel ch);
public abstract void update(float delta, DatagramChannel ch);
public abstract void sendMessage(int channelId, DatagramChannel ch, ByteBuf bb);
public abstract void onMessageReceived(ChannelHandlerContext ctx, DatagramPacket packet);

View File

@ -53,7 +53,7 @@ public class ReliableEndpoint implements MessageChannel.PacketTransceiver {
for (MessageChannel mc : channels) if (mc != null) mc.reset();
}
public void update(long delta) {
public void update(float delta) {
for (MessageChannel mc : channels) if (mc != null) mc.update(delta, channel);
}

View File

@ -46,7 +46,7 @@ public class ReliablePacketController {
}
public void update(long delta) {
public void update(float delta) {
this.time = time;
}

View File

@ -22,7 +22,7 @@ public class ReliableMessageChannel extends MessageChannel {
}
@Override
public void update(long delta, DatagramChannel ch) {
public void update(float delta, DatagramChannel ch) {
}

View File

@ -36,7 +36,7 @@ public class UnreliableMessageChannel extends MessageChannel {
}
@Override
public void update(long delta, DatagramChannel ch) {
public void update(float delta, DatagramChannel ch) {
packetController.update(delta);
}

View File

@ -31,7 +31,7 @@ public class UnreliableOrderedMessageChannel extends MessageChannel {
}
@Override
public void update(long delta, DatagramChannel ch) {
public void update(float delta, DatagramChannel ch) {
packetController.update(delta);
}