Update gophertunnel

This commit is contained in:
AkmalFairuz
2025-03-28 17:51:30 +07:00
parent 8a9d32f75e
commit aa1088d3da
4 changed files with 12 additions and 8 deletions

View File

@@ -14,8 +14,8 @@ const (
// CameraAimAssistPresets is sent by the server to the client to provide a list of categories and presets
// that can be used when sending a CameraAimAssist packet or a CameraInstruction including aim assist.
type CameraAimAssistPresets struct {
// CategoryGroups is a list of groups of categories which can be referenced by one of the Presets.
CategoryGroups []protocol.CameraAimAssistCategoryGroup
// Categories is a list of groups of categories which can be referenced by one of the Presets.
Categories []protocol.CameraAimAssistCategory
// Presets is a list of presets which define a base for how aim assist should behave
Presets []protocol.CameraAimAssistPreset
// Operation is the operation to perform with the presets. It is one of the constants above.
@@ -28,7 +28,7 @@ func (*CameraAimAssistPresets) ID() uint32 {
}
func (pk *CameraAimAssistPresets) Marshal(io protocol.IO) {
protocol.Slice(io, &pk.CategoryGroups)
protocol.Slice(io, &pk.Categories)
protocol.Slice(io, &pk.Presets)
if proto.IsProtoGTE(io, proto.ID776) {
io.Uint8(&pk.Operation)