WarTelemetry

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: GPL-3.0

README

CodeFactor

WarTelemetry is a simple library to get WarThunder data provided by the localhost server

Usage

Example

package main

import (
	"fmt"

	wartelemetry "github.com/lucas-engen/WarTelemetry/telemetry"
)

func main() {
	// Not needed if war thunder is running on localhost
	wartelemetry.Initialize("192.168.0.34")

	for {
		t, _ := wartelemetry.GetTelemetryData()
		objs := t.MapObjects

		for _, obj := range objs {
			fmt.Printf("type: %v, x: %v, y: %v\n", obj.Type, obj.X, obj.Y)
		}
	}
}

Get Packages

go get -v

Build program

go build

Directories

Path Synopsis
network

Jump to

Keyboard shortcuts

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