Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEvent ¶ added in v0.4.0
type BaseEvent struct {
// contains filtered or unexported fields
}
func (BaseEvent) OccurredAt ¶ added in v0.4.0
type FinishReason ¶ added in v0.4.0
type FinishReason string
const ( FinishedOK FinishReason = "ok" FinishedDied FinishReason = "death" FinishedChicken FinishReason = "chicken" FinishedMercChicken FinishReason = "merc chicken" FinishedError FinishReason = "error" )
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 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.