Added method NextRouteCode to feragstring - returns the next autoincrement route code.

This commit is contained in:
Oliver Jakoubek 2020-05-29 14:20:18 +02:00
parent 91e88f42c4
commit 0eebc491d4

View file

@ -77,6 +77,10 @@ func (fs *FeragString) AddRouteListEntry(rl *RouteListEntry) error {
return nil
}
func (fs *FeragString) NextRouteCode() int {
return fs.RouteListEntryCount + 1
}
func (fs *FeragString) AddRouteInfo(ri *RouteInfo) error {
fs.RouteInfoEntries = append(fs.RouteInfoEntries, ri)
return nil