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
path: root/src/lua_api.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-08-19keep history to home dir and use .config instead of custom dotfile dirGravatar Lance Borden 3-10/+8
2025-08-19update compil instructionsGravatar Lance Borden 1-1/+1
2025-07-23Revert to old hashmap: fixed gitmodule indexGravatar Andrew D. France 4-3/+107
2025-07-23build: Remove broken submodule configurationGravatar Andrew D. France 3-1/+0
2025-07-23Remove CI/CD pipeline files - moving to separate PRGravatar Andrew D. France 4-185/+0
2025-07-23make was improperly being called inside the container on a project that is ↵Gravatar Andrew D. France 2-5/+9
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
2025-07-23Attempt to patch CI pipeline: Dockerfile will now be selfcontained, and ↵Gravatar Andrew D. France 2-32/+43
thus, will init .gitmodules: ln:10 removed from original Jenkinsfile
2025-07-23CRITICAL ISSUE: Deleting lib/ files has introduced the issue of actually ↵Gravatar Andrew D. France 1-38/+25
automating the module initialization via jenkins: DEBUG VERSION: Jenkinsfile
2025-07-23CRITICAL FOR TESTING: This copies the entire Jenkins workspace (including ↵Gravatar Andrew D. France 2-9/+7
the populated lib/ directory from the submodules) into the running container, ensuring all the required source files are available for the build process.