libtrainsim

package module
v0.0.0-...-5db49d8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: LGPL-3.0 Imports: 1 Imported by: 0

README

libtrainsim-go

all of the libtrainsim json formats as a go library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrainProperties

type TrainProperties struct {
	TrainProperties040
}

func (*TrainProperties) IsValid

func (b *TrainProperties) IsValid() bool

type TrainProperties040

type TrainProperties040 struct {
	Name            string  `json:"name"`
	Mass            float64 `json:"mass"`
	MaxVelocity     float64 `json:"maxVelocity"`
	MaxAcceleration float64 `json:"maxAcceleration"`
	FormatVersion   string  `json:"formatVersion"`
	TrackDrag       float64 `json:"trackDrag"`
	AirDrag         float64 `json:"airDrag"`
	VelocityUnit    string  `json:"velocityUnit"`
}

func (*TrainProperties040) Cast

func (*TrainProperties040) IsValid

func (b *TrainProperties040) IsValid() bool

type VersionStruct

type VersionStruct struct {
	Major int64
	Minor int64
	Patch int64
}

func (*VersionStruct) ToString

func (b *VersionStruct) ToString() string

Jump to

Keyboard shortcuts

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