1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00

Fix types

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-12-23 21:19:32 +01:00
parent 3a6b18f185
commit 8cf339ecb2
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 8 additions and 8 deletions

View file

@ -5,13 +5,13 @@ func init() {
}
type Company struct {
PermanentData Ptr `sii:"permanent_data"` // external pointer
DelieredTrailer Ptr `sii:"delivered_trailer"`
DeliveredPos int64 `sii:"delivered_pos"`
JobOffer []Ptr `sii:"job_offer"`
CargoOfferSeeds []int64 `sii:"cargo_offer_seeds"`
Discovered bool `sii:"discovered"`
ReservedTrailerSlot Ptr `sii:"reserved_trailer_slot"` // TODO: Maybe wrong type, haven't seen other than "nil"
PermanentData Ptr `sii:"permanent_data"` // external pointer
DelieredTrailer Ptr `sii:"delivered_trailer"`
DeliveredPos []Placement `sii:"delivered_pos"`
JobOffer []Ptr `sii:"job_offer"`
CargoOfferSeeds []int64 `sii:"cargo_offer_seeds"`
Discovered bool `sii:"discovered"`
ReservedTrailerSlot Ptr `sii:"reserved_trailer_slot"` // TODO: Maybe wrong type, haven't seen other than "nil"
blockName string
}

View file

@ -6,7 +6,7 @@ func init() {
type Trailer struct {
TrailerDefinition Ptr `sii:"trailer_definition"`
CargoMass int64 `sii:"cargo_mass"`
CargoMass float32 `sii:"cargo_mass"`
CargoDamage float32 `sii:"cargo_damage"` // Needs verification
VirtualRearWheelsOffset int64 `sii:"virtual_rear_wheels_offset"` // Needs verification
SlaveTrailer Ptr `sii:"slave_trailer"`