This commit is contained in:
adman
2026-03-02 00:14:57 +01:00
parent f7d7a72b7c
commit d8cc9cab48
32 changed files with 79606 additions and 20424 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ func (c *Conn) SetVersion(version string) (err error) {
}
func (c *Conn) Send(packet proto_base.EncodeDecodeAble) (err error) {
//fmt.Println("send:", packet)
slog.Debug("send", "actor", c.Actor, "packet", fmt.Sprintf("%#v", packet))
switch packet := packet.(type) {
case *UnCodablePacket:
err = c.SendRaw(packet.Data)
@@ -124,7 +124,7 @@ func (c *Conn) OnTick(_ event.Tick) (err error) {
if err != nil {
return
}
slog.Debug("packet", "actor", c.Actor, "packet", fmt.Sprintf("%#v", packet))
slog.Debug("receive", "actor", c.Actor, "packet", fmt.Sprintf("%#v", packet))
err = c.Loop.Fire(packet)
return
}