mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Network: Remove large parts of deprecated legacy code (#6404)
Also remove the setting 'send_pre_v25_init' Keep old enum entries for obsolete commands
This commit is contained in:
parent
7f2a19da11
commit
ee9a442ecc
17 changed files with 143 additions and 882 deletions
|
@ -49,30 +49,30 @@ class EmergeManager;
|
|||
| |
|
||||
\-----------------/
|
||||
| depending of the incoming packet
|
||||
+---------------------------------------
|
||||
v v
|
||||
+-----------------------------+ +-----------------------------+
|
||||
|IN: | |IN: |
|
||||
| TOSERVER_INIT_LEGACY |----- | TOSERVER_INIT | invalid playername,
|
||||
+-----------------------------+ | +-----------------------------+ password (for _LEGACY),
|
||||
| | | or denied by mod
|
||||
| Auth ok -------------------+---------------------------------
|
||||
v v |
|
||||
+-----------------------------+ +-----------------------------+ |
|
||||
|OUT: | |OUT: | |
|
||||
| TOCLIENT_INIT_LEGACY | | TOCLIENT_HELLO | |
|
||||
+-----------------------------+ +-----------------------------+ |
|
||||
| | |
|
||||
| | |
|
||||
v v |
|
||||
/-----------------\ /-----------------\ |
|
||||
| | | | |
|
||||
| AwaitingInit2 |<--------- | HelloSent | |
|
||||
| | | | | |
|
||||
\-----------------/ | \-----------------/ |
|
||||
| | | |
|
||||
+-----------------------------+ | *-----------------------------* Auth fails |
|
||||
|IN: | | |Authentication, depending on |-----------------+
|
||||
----------------------------------------
|
||||
v
|
||||
+-----------------------------+
|
||||
|IN: |
|
||||
| TOSERVER_INIT |
|
||||
+-----------------------------+
|
||||
| invalid playername
|
||||
| or denied by mod
|
||||
v
|
||||
+-----------------------------+
|
||||
|OUT: |
|
||||
| TOCLIENT_HELLO |
|
||||
+-----------------------------+
|
||||
|
|
||||
|
|
||||
v
|
||||
/-----------------\ /-----------------\
|
||||
| | | |
|
||||
| AwaitingInit2 |<--------- | HelloSent |
|
||||
| | | | |
|
||||
\-----------------/ | \-----------------/
|
||||
| | |
|
||||
+-----------------------------+ | *-----------------------------* Auth fails
|
||||
|IN: | | |Authentication, depending on |------------------
|
||||
| TOSERVER_INIT2 | | | packet sent by client | |
|
||||
+-----------------------------+ | *-----------------------------* |
|
||||
| | | |
|
||||
|
@ -101,18 +101,18 @@ class EmergeManager;
|
|||
| | +-----------------------------+ |
|
||||
| DefinitionsSent | |IN: | |
|
||||
| | | TOSERVER_REQUEST_MEDIA | |
|
||||
\-----------------/ | TOSERVER_RECEIVED_MEDIA | |
|
||||
\-----------------/ | | |
|
||||
| +-----------------------------+ |
|
||||
| ^ | |
|
||||
| ----------------------------- |
|
||||
v |
|
||||
v v
|
||||
+-----------------------------+ --------------------------------+
|
||||
|IN: | | |
|
||||
|IN: | | ^
|
||||
| TOSERVER_CLIENT_READY | v |
|
||||
+-----------------------------+ +-------------------------------+ |
|
||||
| |OUT: | |
|
||||
v | TOCLIENT_ACCESS_DENIED_LEGAGY | |
|
||||
+-----------------------------+ +-------------------------------+ |
|
||||
+-----------------------------+ +------------------------+ |
|
||||
| |OUT: | |
|
||||
v | TOCLIENT_ACCESS_DENIED | |
|
||||
+-----------------------------+ +------------------------+ |
|
||||
|OUT: | | |
|
||||
| TOCLIENT_MOVE_PLAYER | v |
|
||||
| TOCLIENT_PRIVILEGES | /-----------------\ |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue