dorfylegends/backend/model/extensions.go

18 lines
276 B
Go
Raw Normal View History

2022-04-16 23:12:23 +03:00
package model
func (e *Entity) Position(id int) *EntityPosition {
for _, p := range e.EntityPosition {
if p.Id_ == id {
return p
}
}
return nil
}
type HistoricalEventDetails interface {
RelatedToHf(int) bool
}
type HistoricalEventCollectionDetails interface {
}