Documentation ¶
Index ¶
- func MigrateDb(DB *Database, cfg *config.MySQL) error
- type Database
- func (DB *Database) GetCompoundUsersByID(userID uuid.UUID) ([]uuid.UUID, error)
- func (DB *Database) GetDefaultEntranceWorld() (uuid.UUID, error)
- func (DB *Database) GetGuestUserTypeId(typename string) (uuid.UUID, error)
- func (DB *Database) GetMainDomain() (string, error)
- func (DB *Database) GetParentWorld(sid uuid.UUID) (uuid.UUID, error)
- func (DB *Database) GetRandomWorld() (uuid.UUID, error)
- func (DB *Database) GetSubdomainNames() ([]string, error)
- func (DB *Database) GetUserInfo(id uuid.UUID) (string, uuid.UUID, error)
- func (DB *Database) GetUserLastKnownPosition(UserId, WorldId uuid.UUID) (uuid.UUID, cmath.Vec3, error)
- func (DB *Database) GetUserSpawnPosition(uid uuid.UUID, URL *url.URL) (uuid.UUID, uuid.UUID, cmath.Vec3, error)
- func (DB *Database) GetUserSpawnPositionInWorld(uid, worldId uuid.UUID) (uuid.UUID, cmath.Vec3)
- func (DB *Database) GetUsersIDsByType(typeid uuid.UUID) ([]uuid.UUID, error)
- func (DB *Database) GetWorldByURL(URL *url.URL) (uuid.UUID, error)
- func (DB *Database) GetWorldCreatorsGroupID() (uuid.UUID, error)
- func (DB *Database) GetWorldDefauleSpawnPositon(WorldId uuid.UUID) (uuid.UUID, cmath.Vec3, error)
- func (DB *Database) GetWorldNames() ([]string, error)
- func (DB *Database) GetWorldTemplates() ([]WorldTemplateItem, error)
- func (DB *Database) GetastUserWorld(uid uuid.UUID) (uuid.UUID, error)
- func (DB *Database) InsertOnline(userId, spaceId uuid.UUID) error
- func (DB *Database) InsertRows(w *World) error
- func (DB *Database) QuerySingleAuxById(tables []string, id []byte) (map[string]interface{}, error)
- func (DB *Database) QuerySingleByBinId(table string, id []byte) (map[string]interface{}, error)
- func (DB *Database) QuerySingleByField(table string, field string, ref interface{}) (map[string]interface{}, error)
- func (DB *Database) QuerySingleByUUID(table string, id uuid.UUID) (map[string]interface{}, error)
- func (DB *Database) QueryWorldConfig(id uuid.UUID) (map[string]interface{}, error)
- func (DB *Database) RemoveAllDynamicMembership() error
- func (DB *Database) RemoveAllOnlineUsers() error
- func (DB *Database) RemoveDynamicWorldMembership(userId, worldId uuid.UUID) error
- func (DB *Database) RemoveFromUsers(userId uuid.UUID) error
- func (DB *Database) RemoveManyFromUsers(ids []uuid.UUID) error
- func (DB *Database) RemoveOnline(userId, worldId uuid.UUID) error
- func (DB *Database) UpdateHighFives(sender, target uuid.UUID) error
- func (DB *Database) WorldJSONTemplate(templateID uuid.UUID) (string, error)
- func (DB *Database) WriteLastKnownPosition(userId, worldId, anchorId uuid.UUID, vector *cmath.Vec3, ...) error
- type World
- type WorldTemplateItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
func (*Database) GetCompoundUsersByID ¶ added in v0.3.0
func (*Database) GetDefaultEntranceWorld ¶
func (*Database) GetGuestUserTypeId ¶
func (*Database) GetMainDomain ¶ added in v0.3.0
func (*Database) GetParentWorld ¶
func (*Database) GetSubdomainNames ¶ added in v0.3.0
func (*Database) GetUserInfo ¶
func (*Database) GetUserLastKnownPosition ¶
func (*Database) GetUserSpawnPosition ¶
func (*Database) GetUserSpawnPositionInWorld ¶
func (*Database) GetUsersIDsByType ¶ added in v0.1.1
func (*Database) GetWorldCreatorsGroupID ¶ added in v0.3.0
func (*Database) GetWorldDefauleSpawnPositon ¶
func (*Database) GetWorldNames ¶ added in v0.3.0
func (*Database) GetWorldTemplates ¶ added in v0.3.0
func (DB *Database) GetWorldTemplates() ([]WorldTemplateItem, error)
func (*Database) GetastUserWorld ¶
func (*Database) InsertRows ¶ added in v0.3.2
func (*Database) QuerySingleAuxById ¶
func (*Database) QuerySingleByBinId ¶
func (*Database) QuerySingleByField ¶
func (*Database) QuerySingleByUUID ¶
func (*Database) QueryWorldConfig ¶
func (*Database) RemoveAllDynamicMembership ¶ added in v0.1.16
func (*Database) RemoveAllOnlineUsers ¶ added in v0.1.16
func (*Database) RemoveDynamicWorldMembership ¶
func (*Database) RemoveManyFromUsers ¶ added in v0.1.1
func (*Database) UpdateHighFives ¶
func (*Database) WorldJSONTemplate ¶ added in v0.3.2
type World ¶ added in v0.3.2
type World struct { ID uuid.UUID `json:"id"` OwnerID uuid.UUID `json:"owner_id"` NameHash string `json:"name_hash"` FullDomain string `json:"domain"` Name string `json:"name"` Mpath string `json:"mpath"` AssetParameters string `json:"asset_parameters"` Parameters2D string `json:"parameters2D"` Parameters3D string `json:"parameters3D"` Secret int `json:"secret"` FrameTemplates interface{} `json:"frame_templates"` AllowedSubspaces interface{} `json:"allowed_subspaces"` ChildPlacement interface{} `json:"child_placement"` Minimap int `json:"minimap"` Visible int `json:"visible"` Metadata interface{} `json:"metadata"` Position interface{} `json:"position"` Asset interface{} `json:"asset"` UniqueAttributeInSpaceType interface{} `json:"uniqueAttributeInSpaceType"` UITypeID uuid.UUID SpaceTypeID uuid.UUID ParentID uuid.UUID }
type WorldTemplateItem ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.