spacetype

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuxiliaryTables = "auxiliary_tables"
	ChildPlacement  = "child_placement"
)

Variables

This section is empty.

Functions

func FillPlacement

func FillPlacement(placementMap map[string]interface{}, placements *map[uuid.UUID]position.Algo)

Types

type PositionalParameters

type PositionalParameters struct {
	Algo          string  `json:"algo"`
	Angle         float64 `json:"angle"`
	SpiralScale   float64 `json:"spiralScale"`
	EllipseFactor float64 `json:"ellipseFactor"`
	EllipseAngle  float64 `json:"ellipseAngle"`
	R             float64 `json:"R"`
	Vshift        float64 `json:"Vshift"`
	HelixVshift   float64 `json:"helixVshift"`
}

type T3DPlacements

type T3DPlacements []interface{}

type TSpaceType

type TSpaceType struct {
	Id         uuid.UUID
	SqlData    map[string]interface{}
	Dhash      [16]byte
	AuxTables  []string
	Placements map[uuid.UUID]position.Algo
	Minimap    uint8
	Visible    int8
	InfoUIId   uuid.UUID
	AssetId    uuid.UUID
}

type TSpaceTypes

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

func NewSpaceTypes

func NewSpaceTypes(spaceStorage space.Storage) *TSpaceTypes

func (*TSpaceTypes) Get

func (t *TSpaceTypes) Get(id uuid.UUID) (*TSpaceType, error)

func (*TSpaceTypes) Set

func (t *TSpaceTypes) Set(id uuid.UUID, st *TSpaceType)

func (*TSpaceTypes) UpdateMetaSpaceType

func (t *TSpaceTypes) UpdateMetaSpaceType(x *TSpaceType) error

UpdateMetaSpaceType TODO: doc and use structs instead of map[string]interface{}

Jump to

Keyboard shortcuts

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