core

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core interface {
	CreateProfile(profileCore *Profile) error
	GetProfile(userId uuid.UUID) (*Profile, error)
	GetAllShipTypes() ([]*ShipType, error)
}

func NewCore

func NewCore() (Core, error)

type CoreFacade

type CoreFacade struct {
	// contains filtered or unexported fields
}

Facade

func (*CoreFacade) CreateProfile

func (core *CoreFacade) CreateProfile(profile *Profile) error

func (*CoreFacade) GetAllShipTypes

func (core *CoreFacade) GetAllShipTypes() ([]*ShipType, error)

func (*CoreFacade) GetProfile

func (core *CoreFacade) GetProfile(userId uuid.UUID) (*Profile, error)

type Door

type Door struct {
	RoomBlockOneId int
	RoomBlockTwoId int
}

type Profile

type Profile struct {
	UserId uuid.UUID
	Name   string
}

Profile

type RoomBlock

type RoomBlock struct {
	Id   int
	PosX int
	PosY int
}

type RoomPlace

type RoomPlace struct {
	Id            int
	RoomBlockList []*RoomBlock
}

type ShipType

type ShipType struct {
	Id              uuid.UUID
	Name            string
	RoomPlaceList   []*RoomPlace
	DoorList        []*Door
	WeaponPlaceList []*WeaponPlace
}

Ship

type WeaponPlace

type WeaponPlace struct {
	PosX int
	PosY int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL