tf2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Provides access to TF2 Game Coordinator functionality.

Index

Constants

View Source
const AppId = 440

Variables

This section is empty.

Functions

This section is empty.

Types

type GCReadyEvent

type GCReadyEvent struct{}

type TF2

type TF2 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) *TF2

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

func (*TF2) CraftItems

func (t *TF2) CraftItems(items []uint64, recipe int16)

recipe -2 = wildcard

func (*TF2) DeleteItem

func (t *TF2) DeleteItem(itemId uint64)

func (*TF2) HandleGCPacket

func (t *TF2) HandleGCPacket(packet *GCPacket)

func (*TF2) NameItem

func (t *TF2) NameItem(toolId, target uint64, name string)

func (*TF2) SetItemPosition

func (t *TF2) SetItemPosition(itemId, position uint64)

func (*TF2) SetPlaying

func (t *TF2) SetPlaying(playing bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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