Documentation ¶
Index ¶
- Constants
- type CorePluginInstance
- type DecorationMetadata
- type Metadata
- type World
- func (w *World) AddObjectToAllObjects(object universe.Object) error
- func (w *World) AddUser(user universe.User, updateDB bool) error
- func (w *World) FilterAllObjects(predicateFn universe.ObjectsFilterPredicateFn) map[umid.UMID]universe.Object
- func (w *World) GetAllObjects() map[umid.UMID]universe.Object
- func (w *World) GetCalendar() universe.Calendar
- func (w *World) GetObjectFromAllObjects(objectID umid.UMID) (universe.Object, bool)
- func (w *World) GetSettings() *universe.WorldSettings
- func (w *World) GetTotalStake() uint8
- func (w *World) GetUser(userID umid.UMID, recursive bool) (universe.User, bool)
- func (w *World) GetUserSpawnPosition(userID umid.UMID) cmath.Vec3
- func (w *World) GetUsers(recursive bool) map[umid.UMID]universe.User
- func (w *World) GetWebsiteLink() string
- func (w *World) GetWorldAvatar() string
- func (w *World) Initialize(ctx types.NodeContext) error
- func (w *World) Load() error
- func (w *World) LockUIObject(user universe.User, state uint32) bool
- func (w *World) RemoveObjectFromAllObjects(object universe.Object) (bool, error)
- func (w *World) RemoveUser(user universe.User, updateDB bool) (bool, error)
- func (w *World) Run() error
- func (w *World) Save() error
- func (w *World) Send(msg *websocket.PreparedMessage, recursive bool) error
- func (w *World) SendUsersSpawnMessage(receiver universe.User)
- func (w *World) SetParent(parent universe.Object, updateDB bool) error
- func (w *World) Stop() error
- func (w *World) TempGetSkybox() *websocket.PreparedMessage
- func (w *World) TempSetSkybox(msg *websocket.PreparedMessage)
- func (w *World) ToObject() universe.Object
- func (w *World) Update(recursive bool) error
- func (w *World) UpdateWorldMetadata() error
- func (w *World) UpdateWorldSettings() error
- func (w *World) WriteInfluxPoint(point *influx_write.Point) error
Constants ¶
View Source
const MaxPosUpdateInterval = 60 * 5
MaxPosUpdateInterval : send user position at least ones per 5 min, even if user is not moving
View Source
const PosUpdateInterval = 500 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorePluginInstance ¶
type CorePluginInstance struct {
PluginInterface mplugin.PluginInterface
}
func (CorePluginInstance) Destroy ¶
func (instance CorePluginInstance) Destroy() error
func (CorePluginInstance) Init ¶
func (instance CorePluginInstance) Init() error
func (CorePluginInstance) Run ¶
func (instance CorePluginInstance) Run() error
type DecorationMetadata ¶
type Metadata ¶
type Metadata struct { LOD []uint32 `json:"lod" db:"lod"` Decorations []DecorationMetadata `json:"decorations,omitempty" db:"decorations,omitempty"` AvatarController umid.UMID `json:"avatar_controller" db:"avatar_controller"` SkyboxController umid.UMID `json:"skybox_controller" db:"skybox_controller"` }
type World ¶
func (*World) AddObjectToAllObjects ¶ added in v0.4.0
func (*World) FilterAllObjects ¶ added in v0.4.0
func (*World) GetAllObjects ¶ added in v0.4.0
func (*World) GetCalendar ¶
func (*World) GetObjectFromAllObjects ¶ added in v0.4.0
func (*World) GetSettings ¶
func (w *World) GetSettings() *universe.WorldSettings
func (*World) GetTotalStake ¶ added in v0.4.0
func (*World) GetUserSpawnPosition ¶
func (*World) GetWebsiteLink ¶ added in v0.4.0
func (*World) GetWorldAvatar ¶ added in v0.4.0
func (*World) Initialize ¶
func (w *World) Initialize(ctx types.NodeContext) error
func (*World) LockUIObject ¶ added in v0.4.0
func (*World) RemoveObjectFromAllObjects ¶ added in v0.4.0
func (*World) RemoveUser ¶
func (*World) SendUsersSpawnMessage ¶ added in v0.4.0
Send posbus.AddUsers containing all current users in the world (excluding themself).
Similar to Object.SendSpawnMessage, but not prepared like objects (stored on world). This changes more often and would require some fine-grained hooks into the add/remove user logic. (Also it just changed, since this new user was added)
func (*World) TempGetSkybox ¶ added in v0.2.0
func (w *World) TempGetSkybox() *websocket.PreparedMessage
func (*World) TempSetSkybox ¶ added in v0.2.0
func (w *World) TempSetSkybox(msg *websocket.PreparedMessage)
func (*World) UpdateWorldMetadata ¶
func (*World) UpdateWorldSettings ¶
func (*World) WriteInfluxPoint ¶
func (w *World) WriteInfluxPoint(point *influx_write.Point) error
Click to show internal directories.
Click to hide internal directories.