helper

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSpaceFromTemplate

func AddSpaceFromTemplate(spaceTemplate *SpaceTemplate, updateDB bool) (uuid.UUID, error)

func AddWorldFromTemplate

func AddWorldFromTemplate(worldTemplate *WorldTemplate, updateDB bool) (uuid.UUID, error)

func CalcSpaceSpawnPosition

func CalcSpaceSpawnPosition(parentID, userID uuid.UUID) (*cmath.SpacePosition, error)

func GetGuestUserTypeID

func GetGuestUserTypeID() (uuid.UUID, error)

func GetNormalUserTypeID

func GetNormalUserTypeID() (uuid.UUID, error)

func GetPortalSpaceTypeID

func GetPortalSpaceTypeID() (uuid.UUID, error)

func RemoveSpaceFromParent

func RemoveSpaceFromParent(parent, space universe.Space, updateDB bool) (bool, error)

Types

type SpaceTemplate

type SpaceTemplate struct {
	SpaceID         *uuid.UUID           `json:"space_id"`
	SpaceName       *string              `json:"space_name"`
	SpaceTypeID     uuid.UUID            `json:"space_type_id"`
	ParentID        uuid.UUID            `json:"parent_id"`
	OwnerID         *uuid.UUID           `json:"owner_id"`
	Asset2dID       *uuid.UUID           `json:"asset_2d_id"`
	Asset3dID       *uuid.UUID           `json:"asset_3d_id"`
	Options         *entry.SpaceOptions  `json:"options"`
	Position        *cmath.SpacePosition `json:"position"`
	Label           *string              `json:"label"`
	SpaceAttributes []*entry.Attribute   `json:"space_attributes"`
	Spaces          []*SpaceTemplate     `json:"spaces"`
}

type WorldTemplate

type WorldTemplate struct {
	SpaceTemplate
}

Jump to

Keyboard shortcuts

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