csgo

package
v3.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Provides access to TF2 Game Coordinator functionality.

Index

Constants

View Source
const AppId = 730

Variables

This section is empty.

Functions

This section is empty.

Types

type CSGO

type CSGO struct {
	// contains filtered or unexported fields
}

To use any methods of this, you'll need to SetPlaying(true) and wait for the GCReadyEvent.

func New

func New(client *steam.Client) *CSGO

Creates a new CSGO instance and registers it as a packet handler

func (*CSGO) GetFv added in v3.2.0

func (t *CSGO) GetFv(f *uint32) string

func (*CSGO) HandleGCPacket

func (t *CSGO) HandleGCPacket(packet *gamecoordinator.GCPacket)

func (*CSGO) InspectItem

func (t *CSGO) InspectItem(s, a, d, m uint64)

func (*CSGO) SendHello added in v3.2.0

func (t *CSGO) SendHello()

func (*CSGO) SetPlaying

func (t *CSGO) SetPlaying(playing bool)

type ClientReady added in v3.2.0

type ClientReady struct{}

type GCReadyEvent

type GCReadyEvent struct{}

type ItemInfo added in v3.2.0

type ItemInfo struct {
	AccountId          *uint32   `json:"accountid,omitempty"`
	ItemId             *uint64   `json:"itemid,omitempty"`
	DefIndex           *uint32   `json:"defindex,omitempty"`
	PaintIndex         *uint32   `json:"paintindex,omitempty"`
	Rarity             *uint32   `json:"rarity,omitempty"`
	Quality            *uint32   `json:"quality,omitempty"`
	PaintWear          *uint32   `json:"paintwear,omitempty"`
	PaintSeed          *uint32   `json:"paintseed,omitempty"`
	KillEaterScoreType *uint32   `json:"killeaterscoretype,omitempty"`
	KillEaterValue     *uint32   `json:"killeatervalue,omitempty"`
	CustomName         *string   `json:"customname,omitempty"`
	Stickers           []Sticker `json:"stickers,omitempty"`
	Inventory          *uint32   `json:"inventory,omitempty"`
	Origin             *uint32   `json:"origin,omitempty"`
	QuestId            *uint32   `json:"questid,omitempty"`
	DropReason         *uint32   `json:"dropreason,omitempty"`
	MusicIndex         *uint32   `json:"musicindex,omitempty"`
}

type Sticker added in v3.2.0

type Sticker struct {
	Slot      *uint32  `json:"slot,omitempty"`
	StickerId *uint32  `json:"sticker_id,omitempty"`
	Wear      *float32 `json:"wear,omitempty"`
	Scale     *float32 `json:"scale,omitempty"`
	Rotation  *float32 `json:"rotation,omitempty"`
	TintId    *uint32  `json:"tint_id,omitempty"`
}

Directories

Path Synopsis
protocol

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL