 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func AddSpaceFromTemplate(spaceTemplate *SpaceTemplate, updateDB bool) (uuid.UUID, error)
- func AddWorldFromTemplate(worldTemplate *WorldTemplate, updateDB bool) (uuid.UUID, error)
- func CalcSpaceSpawnPosition(parentID, userID uuid.UUID) (*cmath.SpacePosition, error)
- func GetGuestUserTypeID() (uuid.UUID, error)
- func GetNormalUserTypeID() (uuid.UUID, error)
- func GetPortalSpaceTypeID() (uuid.UUID, error)
- func RemoveSpaceFromParent(parent, space universe.Space, updateDB bool) (bool, error)
- type SpaceTemplate
- type WorldTemplate
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 GetNormalUserTypeID ¶
func GetPortalSpaceTypeID ¶
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
}
     Click to show internal directories. 
   Click to hide internal directories.