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

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