Versions in this module Expand all Collapse all v0 v0.1.0 Mar 17, 2023 Changes in this version + var ErrProfileAlreadyExists = errors.New("profile already exists") + var ErrUserAlreadyExists = errors.New("user already exists") + type DB interface + Close func() + CreateProfile func(profile *ProfileDB) error + GetAllShipTypes func() ([]*ShipType, error) + GetProfileById func(userId uuid.UUID) (*ProfileDB, error) + func NewConnection() (DB, error) + type Door struct + RoomBlockOneId int + RoomBlockTwoId int + type ProfileDB struct + Name string + UserId uuid.UUID + type RoomBlock struct + Id int + PosX int + PosY int + type RoomPlace struct + Id int + RoomBlockList []*RoomBlock + type ShipType struct + DoorList []*Door + Id uuid.UUID + Name string + RoomPlaceList []*RoomPlace + WeaponPlaceList []*WeaponPlace + type WeaponPlace struct + PosX int + PosY int