战争遥测
一个简单的库,用于获取localhost服务器提供的WarThunder数据
用法
例子
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: %
评论0
最新资源