feat: action ack

This commit is contained in:
cha0s 2024-09-05 01:42:14 -05:00
parent a58e1b6b89
commit 841db3de13
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,3 @@
import Packet from '@/net/packet.js';
export default class ActionAck extends Packet {}

View File

@ -249,6 +249,17 @@ export default class Engine {
break;
}
}
if (payload.ack) {
this.server.send(
connection,
{
type: 'ActionAck',
payload: {
ack: payload.ack,
},
},
);
}
}
this.incomingActions.set(connection, []);
}