Skip to content

Commit

Permalink
feat: bind js5 decoders
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Kris committed Apr 23, 2024
1 parent 12cb99f commit f8a36a5
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
package net.rsprot.protocol.common.js5.incoming.prot

import net.rsprot.protocol.ProtRepository
import net.rsprot.protocol.common.js5.incoming.codec.PrefetchRequestDecoder
import net.rsprot.protocol.common.js5.incoming.codec.PriorityChangeHighDecoder
import net.rsprot.protocol.common.js5.incoming.codec.PriorityChangeLowDecoder
import net.rsprot.protocol.common.js5.incoming.codec.UrgentRequestDecoder
import net.rsprot.protocol.common.js5.incoming.codec.XorChangeDecoder
import net.rsprot.protocol.message.codec.incoming.MessageDecoderRepository
import net.rsprot.protocol.message.codec.incoming.MessageDecoderRepositoryBuilder

Expand All @@ -10,6 +15,11 @@ public object Js5MessageDecoderRepository {
val protRepository = ProtRepository.of<Js5ClientProt>()
val builder =
MessageDecoderRepositoryBuilder(protRepository).apply {
bind(PrefetchRequestDecoder())
bind(PriorityChangeHighDecoder())
bind(PriorityChangeLowDecoder())
bind(UrgentRequestDecoder())
bind(XorChangeDecoder())
}
return builder.build()
}
Expand Down

0 comments on commit f8a36a5

Please sign in to comment.