wip: noaction for deciding to stop
This commit is contained in:
@@ -21,6 +21,7 @@ type options struct {
|
||||
userActions Actions
|
||||
enableHUD, standaloneJob, showCharacter, enableKB bool
|
||||
debugMode bool
|
||||
canStopItself bool
|
||||
initiateConversations bool
|
||||
characterfile string
|
||||
statefile string
|
||||
@@ -53,7 +54,7 @@ func defaultOptions() *options {
|
||||
},
|
||||
character: Character{
|
||||
Name: "John Doe",
|
||||
Age: 0,
|
||||
Age: "",
|
||||
Occupation: "Unemployed",
|
||||
Hobbies: []string{},
|
||||
MusicTaste: []string{},
|
||||
@@ -82,6 +83,11 @@ var EnableKnowledgeBase = func(o *options) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
var CanStopItself = func(o *options) error {
|
||||
o.canStopItself = true
|
||||
return nil
|
||||
}
|
||||
|
||||
func EnableKnowledgeBaseWithResults(results int) Option {
|
||||
return func(o *options) error {
|
||||
o.enableKB = true
|
||||
|
||||
Reference in New Issue
Block a user