Adding more fields to the output
This commit is contained in:
@@ -38,3 +38,7 @@ func (b *BeamNG) GetData(fieldName string) (interface{}, error) {
|
||||
func (b *BeamNG) UpdateData() error {
|
||||
return b.SDK.ReadData()
|
||||
}
|
||||
|
||||
func (b *BeamNG) GetSessionInfo() (interface{}, error) {
|
||||
return nil, fmt.Errorf("Not implemented")
|
||||
}
|
||||
|
||||
@@ -39,3 +39,7 @@ func (i *IRacing) UpdateData() error {
|
||||
_, err := i.SDK.Update(100 * time.Millisecond)
|
||||
return err
|
||||
}
|
||||
|
||||
func (i *IRacing) GetSessionInfo() (interface{}, error) {
|
||||
return i.SDK.SessionInfo, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user