Documentation
¶
Index ¶
Constants ¶
View Source
const ( Name = "moon" EntityMoon = common.EntityType("moon") )
View Source
const ( StateAboveHorizon = "aboveHorizon" StateBelowHorizon = "belowHorizon" )
View Source
const ( StateNewMoon = "new_moon" // New Moon StateWaxingCrescent = "waxing_crescent" // Waxing Crescent StateFirstQuarter = "first_quarter" // First Quarter StateWaxingGibbous = "waxing_gibbous" // Waxing Gibbous StateFullMoon = "full_moon" // Full Moon StateWaningGibbous = "waning_gibbous" // Waning Gibbous StateThirdQuarter = "third_quarter" // Third Quarter StateWaningCrescent = "waning_crescent" // Waning Crescent )
View Source
const ( AttrHorizonState = "horizonState" // aboveHorizon|belowHorizon AttrPhase = "phase" AttrAzimuth = "azimuth" AttrElevation = "elevation" AttrLat = "lat" AttrLon = "lon" )
Variables ¶
This section is empty.
Functions ¶
func NewAttr ¶
func NewAttr() m.Attributes
func NewSettings ¶
func NewSettings() m.Attributes
func NewStates ¶
func NewStates() (states map[string]entity_manager.ActorState)
Types ¶
type Actor ¶
type Actor struct { entity_manager.BaseActor // contains filtered or unexported fields }
func NewActor ¶
func NewActor(entity *m.Entity, entityManager entity_manager.EntityManager, eventBus event_bus.EventBus) *Actor
func (*Actor) Spawn ¶
func (e *Actor) Spawn() entity_manager.PluginActor
func (*Actor) UpdateMoonPosition ¶
Click to show internal directories.
Click to hide internal directories.