Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "sun" // EntitySun ... EntitySun = string("sun") )
View Source
const ( // StateAboveHorizon ... StateAboveHorizon = "aboveHorizon" // StateBelowHorizon ... StateBelowHorizon = "belowHorizon" )
View Source
const ( // AttrHorizonState ... AttrHorizonState = "horizonState" // AttrPhase ... AttrPhase = "phase" // AttrAzimuth ... AttrAzimuth = "azimuth" // AttrElevation ... AttrElevation = "elevation" // AttrSunrise ... AttrSunrise = "sunrise" // AttrSunset ... AttrSunset = "sunset" // AttrSunriseEnd ... AttrSunriseEnd = "sunriseEnd" // AttrSunsetStart ... AttrSunsetStart = "sunsetStart" // AttrDawn ... AttrDawn = "dawn" // AttrDusk ... AttrDusk = "dusk" // AttrNauticalDawn ... AttrNauticalDawn = "nauticalDawn" // AttrNauticalDusk ... AttrNauticalDusk = "nauticalDusk" // AttrNightEnd ... AttrNightEnd = "nightEnd" // AttrNight ... AttrNight = "night" // AttrGoldenHourEnd ... AttrGoldenHourEnd = "goldenHourEnd" // AttrGoldenHour ... AttrGoldenHour = "goldenHour" // AttrSolarNoon ... AttrSolarNoon = "solarNoon" // AttrNadir ... AttrNadir = "nadir" // AttrLat ... AttrLat = "lat" // AttrLon ... AttrLon = "lon" )
View Source
const ( // Sunrise ... Sunrise = "sunrise" // Sunset ... Sunset = "sunset" // SunriseEnd ... SunriseEnd = "sunriseEnd" // SunsetStart ... SunsetStart = "sunsetStart" // Dawn ... Dawn = "dawn" // Dusk ... Dusk = "dusk" // NauticalDawn ... NauticalDawn = "nauticalDawn" // NauticalDusk ... NauticalDusk = "nauticalDusk" // NightEnd ... NightEnd = "nightEnd" // Night ... Night = "night" // GoldenHourEnd ... GoldenHourEnd = "goldenHourEnd" // GoldenHour ... GoldenHour = "goldenHour" // SolarNoon ... SolarNoon = "solarNoon" // Nadir ... Nadir = "nadir" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actor ¶
type Actor struct { entity_manager.BaseActor // contains filtered or unexported fields }
Actor ...
func NewActor ¶
func NewActor(entity *m.Entity, entityManager entity_manager.EntityManager, eventBus bus.Bus) *Actor
NewActor ...
func (*Actor) UpdateSunPosition ¶
UpdateSunPosition ...
Click to show internal directories.
Click to hide internal directories.