├── README.md ├── errors.go ├── example └── main.go ├── gameserver └── gameserver.go ├── gate └── gate.go ├── libs └── wordfilter │ ├── README.md │ ├── dictionary.txt │ ├── wordfilter.go │ └── wordfilter.txt ├── log └── log.go ├── message └── message.go ├── network ├── agent.go ├── tcpClient.go ├── tcpConn.go ├── tcpServer.go ├── wsClient.go ├── wsConn.go └── wsServer.go ├── newTea ├── newTea.go └── tpl │ ├── config.go │ ├── game.go │ ├── gate.go │ ├── handle.go │ ├── log.go │ ├── msg.go │ ├── protocol.go │ ├── register.go │ └── router.go ├── options.go ├── protocol ├── common.go ├── json.go ├── processor.go └── protobuf.go ├── recordfile ├── example_test.go ├── recordfile.go └── test.txt └── util.go /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/README.md -------------------------------------------------------------------------------- /errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/errors.go -------------------------------------------------------------------------------- /example/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/example/main.go -------------------------------------------------------------------------------- /gameserver/gameserver.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/gameserver/gameserver.go -------------------------------------------------------------------------------- /gate/gate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/gate/gate.go -------------------------------------------------------------------------------- /libs/wordfilter/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/libs/wordfilter/README.md -------------------------------------------------------------------------------- /libs/wordfilter/dictionary.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/libs/wordfilter/dictionary.txt -------------------------------------------------------------------------------- /libs/wordfilter/wordfilter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/libs/wordfilter/wordfilter.go -------------------------------------------------------------------------------- /libs/wordfilter/wordfilter.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/libs/wordfilter/wordfilter.txt -------------------------------------------------------------------------------- /log/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/log/log.go -------------------------------------------------------------------------------- /message/message.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/message/message.go -------------------------------------------------------------------------------- /network/agent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/network/agent.go -------------------------------------------------------------------------------- /network/tcpClient.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/network/tcpClient.go -------------------------------------------------------------------------------- /network/tcpConn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/network/tcpConn.go -------------------------------------------------------------------------------- /network/tcpServer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/network/tcpServer.go -------------------------------------------------------------------------------- /network/wsClient.go: -------------------------------------------------------------------------------- 1 | package network 2 | -------------------------------------------------------------------------------- /network/wsConn.go: -------------------------------------------------------------------------------- 1 | package network 2 | -------------------------------------------------------------------------------- /network/wsServer.go: -------------------------------------------------------------------------------- 1 | package network 2 | -------------------------------------------------------------------------------- /newTea/newTea.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/newTea.go -------------------------------------------------------------------------------- /newTea/tpl/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/tpl/config.go -------------------------------------------------------------------------------- /newTea/tpl/game.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/tpl/game.go -------------------------------------------------------------------------------- /newTea/tpl/gate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/tpl/gate.go -------------------------------------------------------------------------------- /newTea/tpl/handle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/tpl/handle.go -------------------------------------------------------------------------------- /newTea/tpl/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/tpl/log.go -------------------------------------------------------------------------------- /newTea/tpl/msg.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/tpl/msg.go -------------------------------------------------------------------------------- /newTea/tpl/protocol.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/tpl/protocol.go -------------------------------------------------------------------------------- /newTea/tpl/register.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/tpl/register.go -------------------------------------------------------------------------------- /newTea/tpl/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/newTea/tpl/router.go -------------------------------------------------------------------------------- /options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/options.go -------------------------------------------------------------------------------- /protocol/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/protocol/common.go -------------------------------------------------------------------------------- /protocol/json.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/protocol/json.go -------------------------------------------------------------------------------- /protocol/processor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/protocol/processor.go -------------------------------------------------------------------------------- /protocol/protobuf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/protocol/protobuf.go -------------------------------------------------------------------------------- /recordfile/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/recordfile/example_test.go -------------------------------------------------------------------------------- /recordfile/recordfile.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/recordfile/recordfile.go -------------------------------------------------------------------------------- /recordfile/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/recordfile/test.txt -------------------------------------------------------------------------------- /util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/k4s/tea/HEAD/util.go --------------------------------------------------------------------------------