update server package doc

This commit is contained in:
Tnze
2022-11-25 13:29:14 +08:00
parent 8ef1e296e9
commit 822d76a4b1

View File

@ -6,15 +6,15 @@
//
// A server is roughly divided into two parts: Gate and GamePlay
//
// +---------------------------------------------------------------------+
// +------------------------------------------------------------------------------+
// | Go-MC Server Framework |
// +--------------------------------------+------------------------------+
// |--------------------------------------+---------------------------------------|
// | Gate | GamePlay |
// +--------------------+-----------------+ |
// | LoginHandler | ListPingHandler | |
// +--------------------+------------+----+---------------+--------------+
// | MojangLoginHandler | PingInfo | PlayerList | Others.... |
// +--------------------+------------+--------------------+--------------+
// |--------------------+-----------------+---------------+-----------------------|
// | LoginHandler | ListPingHandler | Others.. |
// |--------------------|------------+----+---------------|-----------------------+
// | MojangLoginHandler | PingInfo | PlayerList | [go-mc/server], etc. |
// +--------------------+------------+--------------------+-----------------------+
//
// Gate, which is used to respond to the client login request, provide login verification,
// respond to the List Ping Request and providing the online players' information.
@ -23,7 +23,9 @@
// (that is, after the LoginSuccess package is sent),
// and is responsible for functions including player status, chunk management, keep alive, chat, etc.
//
// The implement of Gameplay is provided at https://github.com/go-mc/server.
// The implement of Gameplay is provided at [go-mc/server]. You can also write your version.
//
// [go-mc/server]: https://github.com/go-mc/server
package server
import (