Documentation
¶
Index ¶
- func AttemptConversation(initiatorMobId int, initatorInstanceId int, initiatorName string, ...) int
- func Destroy(conversationId int)
- func GetNextActions(convId int) (mob1 int, mob2 int, actions []string)
- func HasConverseFile(mobId int, zone string) bool
- func IsComplete(conversationId int) bool
- func ZoneNameSanitize(zone string) string
- type Conversation
- type ConversationData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttemptConversation ¶
func AttemptConversation(initiatorMobId int, initatorInstanceId int, initiatorName string, participantInstanceId int, participantName string, zone string, forceIndex ...int) int
Returns a non empty ConversationId if successful
func HasConverseFile ¶
func IsComplete ¶
func ZoneNameSanitize ¶
Types ¶
type Conversation ¶
type Conversation struct {
Id int
MobInstanceId1 int
MobInstanceId2 int
StartRound uint64
LastRound uint64
// What the actions are and where we are in them
Position int
ActionList [][]string
}
func (*Conversation) NextActions ¶
func (c *Conversation) NextActions(roundNow uint64) []string
type ConversationData ¶
type ConversationData struct {
// A map of lowercase names of "Initiator" (#1) to array of
// "Participant" (#2) names allowed to use this conversation.
Supported map[string][]string `yaml:"Supported"`
// A list of command lists, each prefixed with which Mob should execute
// the action (#1 or #2)
Conversation [][]string `yaml:"Conversation"`
}
Click to show internal directories.
Click to hide internal directories.