mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-19 16:57:20 +07:00
Changed delta from long millis to float seconds
This commit is contained in:
parent
e07e6bd2ba
commit
165459dd12
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ public class ReliablePacketController {
|
||||
|
||||
}
|
||||
|
||||
public void update(long delta) {
|
||||
public void update(float delta) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ public class ReliableMessageChannel extends MessageChannel {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(long delta, DatagramChannel ch) {
|
||||
public void update(float delta, DatagramChannel ch) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user