Documentation
¶
Overview ¶
Package source loads and expands authored world YAML into a flat room graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct {
Yaw, Pitch, Roll float64
Scale worldsource.Vec3
SolidRenderer string
Sprite *worldsource.Sprite
Tags []string
Animation *worldsource.AnimationBinding
}
type Connection ¶
type Connection struct {
ID string
A, B Endpoint
Direction worldsource.PortalDirection
NonEuclidean bool
}
type Content ¶
type Content struct {
ID, SourceID, Instance, Kind string
Position worldsource.Vec3
Actor *Actor
}
type Expanded ¶
type Expanded struct {
Fluids *worldsource.Fluids
Vegetation *worldsource.Vegetation
Rooms []Room
Connections []Connection
Environment *sdkworld.Environment
Sky *worldsource.Sky
// Lighting retains authored global coordinates and order independently of
// prefab expansion. Its payload and light slice belong to this result.
Lighting *sdkworld.Lighting
// UV is nil for released source versions; v5 owns complete effective settings.
UV *worldsource.UVSettings
SolidPrefabs []SolidPrefab
Solids []worldsource.Solid
Contents []Content
Animations *worldsource.Animations
Particles *worldsource.Particles
ParticleEmitters []worldsource.ParticleEmitter
ParticleEmitterRooms map[string]string
}
type Room ¶
type Room struct {
VegetationLayers []worldsource.VegetationLayer
ID, SourceRoom, Instance string
Sky bool
Boundary []worldsource.Edge
Floor, Ceiling worldsource.Plane
FloorMaterial, CeilingMaterial string
Contents []Content
FloorUV, CeilingUV, WallUV *worldsource.UVSettings
WallBands *worldsource.BandSettings
FloorSecondary, CeilingSecondary, WallSecondary *worldsource.SecondarySettings
}
type SolidPrefab ¶
type SolidPrefab struct {
ID string
Solids []worldsource.Solid
}
Click to show internal directories.
Click to hide internal directories.