ITADN

feat: introduce a better architecture to handle multiversion

#802Opensmartcmd 创建于 2026-01-23
Refactor
S
smartcmdcommented
We need a better architecture to handle multiversion stuff, and since now most of the network operations are go through `Player`/`AllayPlayer`, we can just use a inherit chain as the following: - `AllayPlayer`: the base class, which is used for the latest version client. - `AllayPlayer_v860` -> `AllayPlayer`: used for `1.21.120` client. - ... - `AllayPlayer_v766_NetEase` ->`AllayPlayer_v766` There should also be changes to the current `PacketProcessor` system, to introduce different packet processor for different protocol version.
0 条评论