From 822d76a4b1f830b2b407765b4004093f89b5f80f Mon Sep 17 00:00:00 2001 From: Tnze Date: Fri, 25 Nov 2022 13:29:14 +0800 Subject: [PATCH] update server package doc --- server/server.go | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/server/server.go b/server/server.go index 8a2d23c..7fad40c 100644 --- a/server/server.go +++ b/server/server.go @@ -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.... | -// +--------------------+------------+--------------------+--------------+ +// +------------------------------------------------------------------------------+ +// | Go-MC Server Framework | +// |--------------------------------------+---------------------------------------| +// | Gate | GamePlay | +// |--------------------+-----------------+---------------+-----------------------| +// | 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 (