Documentation ¶
Index ¶
- Constants
- func Send(e Event)
- type BaseEvent
- type CompanionLeaderAttackEvent
- type CompanionRequestedTPEvent
- type Event
- type FinishReason
- type GameCreatedEvent
- type GameFinishedEvent
- type GamePausedEvent
- type Handler
- type InteractedToEvent
- type InteractionType
- type ItemStashedEvent
- type Listener
- type RunFinishedEvent
- type RunStartedEvent
- type UsedPotionEvent
Constants ¶
View Source
const ( FinishedOK FinishReason = "ok" FinishedDied FinishReason = "death" FinishedChicken FinishReason = "chicken" FinishedMercChicken FinishReason = "merc chicken" FinishedError FinishReason = "error" InteractionTypeEntrance InteractionType = "entrance" InteractionTypeNPC InteractionType = "npc" InteractionTypeObject InteractionType = "object" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseEvent ¶ added in v0.4.0
type BaseEvent struct {
// contains filtered or unexported fields
}
func WithScreenshot ¶
func (BaseEvent) OccurredAt ¶ added in v0.4.0
func (BaseEvent) Supervisor ¶ added in v0.4.0
type CompanionLeaderAttackEvent ¶ added in v0.4.0
func CompanionLeaderAttack ¶ added in v0.4.0
func CompanionLeaderAttack(be BaseEvent, targetUnitID data.UnitID) CompanionLeaderAttackEvent
type CompanionRequestedTPEvent ¶ added in v0.4.0
type CompanionRequestedTPEvent struct {
BaseEvent
}
func CompanionRequestedTP ¶ added in v0.4.0
func CompanionRequestedTP(be BaseEvent) CompanionRequestedTPEvent
type FinishReason ¶ added in v0.4.0
type FinishReason string
type GameCreatedEvent ¶ added in v0.4.0
func GameCreated ¶ added in v0.4.0
func GameCreated(be BaseEvent, name string, password string) GameCreatedEvent
type GameFinishedEvent ¶ added in v0.4.0
type GameFinishedEvent struct { BaseEvent Reason FinishReason }
func GameFinished ¶ added in v0.4.0
func GameFinished(be BaseEvent, reason FinishReason) GameFinishedEvent
type GamePausedEvent ¶ added in v0.4.0
func GamePaused ¶ added in v0.4.0
func GamePaused(be BaseEvent, paused bool) GamePausedEvent
type InteractedToEvent ¶ added in v0.4.0
type InteractedToEvent struct { BaseEvent ID int InteractionType InteractionType }
func InteractedTo ¶ added in v0.4.0
func InteractedTo(be BaseEvent, id int, it InteractionType) InteractedToEvent
type InteractionType ¶ added in v0.4.0
type InteractionType string
type ItemStashedEvent ¶ added in v0.4.0
func ItemStashed ¶ added in v0.4.0
func ItemStashed(be BaseEvent, item data.Item) ItemStashedEvent
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶
type RunFinishedEvent ¶ added in v0.4.0
type RunFinishedEvent struct { BaseEvent RunName string Reason FinishReason }
func RunFinished ¶ added in v0.4.0
func RunFinished(be BaseEvent, runName string, reason FinishReason) RunFinishedEvent
type RunStartedEvent ¶ added in v0.4.0
func RunStarted ¶ added in v0.4.0
func RunStarted(be BaseEvent, runName string) RunStartedEvent
type UsedPotionEvent ¶ added in v0.4.0
type UsedPotionEvent struct { BaseEvent PotionType data.PotionType OnMerc bool }
func UsedPotion ¶ added in v0.4.0
func UsedPotion(be BaseEvent, pt data.PotionType, onMerc bool) UsedPotionEvent
Click to show internal directories.
Click to hide internal directories.