From ca90ebdfa8789654766c5d7969baa7afacd9ebd2 Mon Sep 17 00:00:00 2001
From: BanceDev
Date: Mon, 16 Feb 2026 16:31:54 -0500
Subject: initial commit
---
packet/command/updateping/updateping.go | 37 +++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 packet/command/updateping/updateping.go
(limited to 'packet/command/updateping/updateping.go')
diff --git a/packet/command/updateping/updateping.go b/packet/command/updateping/updateping.go
new file mode 100644
index 0000000..412d9c5
--- /dev/null
+++ b/packet/command/updateping/updateping.go
@@ -0,0 +1,37 @@
+package updateping
+
+import (
+ "github.com/osm/quake/common/buffer"
+ "github.com/osm/quake/common/context"
+ "github.com/osm/quake/protocol"
+)
+
+type Command struct {
+ PlayerIndex byte
+ Ping int16
+}
+
+func (cmd *Command) Bytes() []byte {
+ buf := buffer.New()
+
+ buf.PutByte(protocol.SVCUpdatePing)
+ buf.PutByte(cmd.PlayerIndex)
+ buf.PutInt16(cmd.Ping)
+
+ return buf.Bytes()
+}
+
+func Parse(ctx *context.Context, buf *buffer.Buffer) (*Command, error) {
+ var err error
+ var cmd Command
+
+ if cmd.PlayerIndex, err = buf.ReadByte(); err != nil {
+ return nil, err
+ }
+
+ if cmd.Ping, err = buf.GetInt16(); err != nil {
+ return nil, err
+ }
+
+ return &cmd, nil
+}
--
cgit v1.2.3-59-g8ed1b
=5a81f3734982c23f14d1e229939f95394a5ee757'>treecommitdiffstats
|
| Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
missing its dependencies in the lib/ directory, leading to a 'No rule to make target' error: updated Dockerfile to remove the submodule command at: ln:29: and: Jenkinsfile will use the git submodule sync command. This will ensure the agent's repository is correctly configured before fetching the submodule code: at: ln:9-17
|
|
thus, will init .gitmodules: ln:10 removed from original Jenkinsfile
|
|
automating the module initialization via jenkins: DEBUG VERSION: Jenkinsfile
|
|
the populated lib/ directory from the submodules) into the running container, ensuring all the required source files are available for the build process.
|