Documentation ¶
Overview ¶
Code generated by Tapestry; edit at your own risk.
Index ¶
- Variables
- func B(b bool) *literal.BoolValue
- func Decode(out *StoryFile, msg map[string]any) error
- func DecodeMessage(out typeinfo.Instance, msg map[string]any) error
- func DecodePattern(dec *decode.Decoder, slot *typeinfo.Slot, msg compact.Message) (ret typeinfo.Instance, err error)
- func Encode(file *StoryFile) (ret any, err error)
- func F(n float64) *literal.NumValue
- func I(n int) *literal.NumValue
- func NewDecoder() *decode.Decoder
- func T(s string) *literal.TextValue
- func Tx(s, t string) *literal.TextValue
- func Weave(cat *weave.Catalog, all []StoryStatement) (err error)
- type AspectField
- type AspectField_Slice
- type BoolField
- type BoolField_Slice
- type Comment
- type Comment_Slice
- type CountOf
- type CountOf_Slice
- type CycleText
- type CycleText_Slice
- type DeclareStatement
- type DeclareStatement_Slice
- type DefineAction
- type DefineAction_Slice
- type DefineAlias
- type DefineAlias_Slice
- type DefineAspect
- type DefineAspect_Slice
- type DefineFields
- type DefineFields_Slice
- type DefineKinds
- type DefineKinds_Slice
- type DefineLeadingGrammar
- type DefineLeadingGrammar_Slice
- type DefineNamedGrammar
- type DefineNamedGrammar_Slice
- type DefineNounTraits
- type DefineNounTraits_Slice
- type DefineNouns
- type DefineNouns_Slice
- type DefineOtherRelatives
- type DefineOtherRelatives_Slice
- type DefinePattern
- type DefinePattern_Slice
- type DefinePlural
- type DefinePlural_Slice
- type DefineRelation
- type DefineRelation_Slice
- type DefineRelatives
- type DefineRelatives_Slice
- type DefineScene
- type DefineScene_Slice
- type DefineTest
- type DefineTest_Slice
- type DefineValue
- type DefineValue_Slice
- type FieldDefinition
- type FieldDefinition_Slot
- type FieldDefinition_Slots
- type JessMatches
- type NothingField
- type NothingField_Slice
- type NumListField
- type NumListField_Slice
- type NumberField
- type NumberField_Slice
- type PostImport
- type PreImport
- type RecordField
- type RecordField_Slice
- type RecordListField
- type RecordListField_Slice
- type RelationCardinality
- type RuleForKind
- type RuleForKind_Slice
- type RuleForNoun
- type RuleForNoun_Slice
- type RuleForPattern
- type RuleForPattern_Slice
- type RuleProvides
- type RuleProvides_Slice
- type SayResponse
- type SayResponse_Slice
- type SayTemplate
- type SayTemplate_Slice
- type ShuffleText
- type ShuffleText_Slice
- type StoppingText
- type StoppingText_Slice
- type StoryBreak
- type StoryBreak_Slice
- type StoryFile
- type StoryFile_Slice
- type StoryStatement
- type StoryStatement_Slot
- type StoryStatement_Slots
- type TextField
- type TextField_Slice
- type TextListField
- type TextListField_Slice
Constants ¶
This section is empty.
Variables ¶
var AllSignatures = append( tapestry.AllSignatures, Z_Types.Signatures, )
var Z_Types = typeinfo.TypeSet{
Name: "story",
Slot: z_slot_list,
Flow: z_flow_list,
Str: z_str_list,
Signatures: z_signatures,
}
package listing of type data
var Zt_AspectField typeinfo.Flow
aspect_field, a type of flow.
var Zt_BoolField typeinfo.Flow
bool_field, a type of flow.
var Zt_Comment typeinfo.Flow
comment, a type of flow.
var Zt_CountOf typeinfo.Flow
count_of, a type of flow.
var Zt_CycleText typeinfo.Flow
cycle_text, a type of flow.
var Zt_DeclareStatement typeinfo.Flow
declare_statement, a type of flow.
var Zt_DefineAction typeinfo.Flow
define_action, a type of flow.
var Zt_DefineAlias typeinfo.Flow
define_alias, a type of flow.
var Zt_DefineAspect typeinfo.Flow
define_aspect, a type of flow.
var Zt_DefineFields typeinfo.Flow
define_fields, a type of flow.
var Zt_DefineKinds typeinfo.Flow
define_kinds, a type of flow.
var Zt_DefineLeadingGrammar typeinfo.Flow
define_leading_grammar, a type of flow.
var Zt_DefineNamedGrammar typeinfo.Flow
define_named_grammar, a type of flow.
var Zt_DefineNounTraits typeinfo.Flow
define_noun_traits, a type of flow.
var Zt_DefineNouns typeinfo.Flow
define_nouns, a type of flow.
var Zt_DefineOtherRelatives typeinfo.Flow
define_other_relatives, a type of flow.
var Zt_DefinePattern typeinfo.Flow
define_pattern, a type of flow.
var Zt_DefinePlural typeinfo.Flow
define_plural, a type of flow.
var Zt_DefineRelation typeinfo.Flow
define_relation, a type of flow.
var Zt_DefineRelatives typeinfo.Flow
define_relatives, a type of flow.
var Zt_DefineScene typeinfo.Flow
define_scene, a type of flow.
var Zt_DefineTest typeinfo.Flow
define_test, a type of flow.
var Zt_DefineValue typeinfo.Flow
define_value, a type of flow.
var Zt_FieldDefinition = typeinfo.Slot{ Name: "field_definition", Markup: map[string]any{ "comment": "Fields are used to define the members of kinds, records, patterns, and so on.", }, }
field_definition, a type of slot.
var Zt_NothingField typeinfo.Flow
nothing_field, a type of flow.
var Zt_NumListField typeinfo.Flow
num_list_field, a type of flow.
var Zt_NumberField typeinfo.Flow
number_field, a type of flow.
var Zt_RecordField typeinfo.Flow
record_field, a type of flow.
var Zt_RecordListField typeinfo.Flow
record_list_field, a type of flow.
var Zt_RelationCardinality = typeinfo.Str{ Name: "relation_cardinality", Options: []string{ "one_to_one", "one_to_many", "many_to_one", "many_to_many", }, }
relation_cardinality, a type of str enum.
var Zt_RuleForKind typeinfo.Flow
rule_for_kind, a type of flow.
var Zt_RuleForNoun typeinfo.Flow
rule_for_noun, a type of flow.
var Zt_RuleForPattern typeinfo.Flow
rule_for_pattern, a type of flow.
var Zt_RuleProvides typeinfo.Flow
rule_provides, a type of flow.
var Zt_SayResponse typeinfo.Flow
say_response, a type of flow.
var Zt_SayTemplate typeinfo.Flow
say_template, a type of flow.
var Zt_ShuffleText typeinfo.Flow
shuffle_text, a type of flow.
var Zt_StoppingText typeinfo.Flow
stopping_text, a type of flow.
var Zt_StoryBreak typeinfo.Flow
story_break, a type of flow.
var Zt_StoryFile typeinfo.Flow
story_file, a type of flow.
var Zt_StoryStatement = typeinfo.Slot{ Name: "story_statement", Markup: map[string]any{ "blockly-color": "VARIABLES_HUE", "blockly-stack": true, "comment": "Phrase", }, }
story_statement, a type of slot.
var Zt_TextField typeinfo.Flow
text_field, a type of flow.
var Zt_TextListField typeinfo.Flow
text_list_field, a type of flow.
Functions ¶
func DecodeMessage ¶
Create a story dl from native maps and slices.
func DecodePattern ¶
func NewDecoder ¶
Types ¶
type AspectField ¶
tbd: is a separate interface required for object kinds separate from everything else? in theory, generic.Kind supports fields of type aspect... but i'm not sure weave handles that.
func (*AspectField) GetFieldInfo ¶
func (op *AspectField) GetFieldInfo(run rt.Runtime) (ret mdl.FieldInfo)
func (*AspectField) GetMarkup ¶
func (op *AspectField) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*AspectField) TypeInfo ¶
func (*AspectField) TypeInfo() typeinfo.T
implements typeinfo.Instance
type AspectField_Slice ¶
type AspectField_Slice []AspectField
holds a slice of type aspect_field
func (*AspectField_Slice) Repeats ¶
func (op *AspectField_Slice) Repeats() bool
implements typeinfo.Repeats
func (*AspectField_Slice) TypeInfo ¶
func (*AspectField_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type BoolField ¶
type BoolField struct { Name rtti.TextEval Type rtti.TextEval Initially rtti.BoolEval Markup map[string]any }
type BoolField_Slice ¶
type BoolField_Slice []BoolField
holds a slice of type bool_field
func (*BoolField_Slice) Repeats ¶
func (op *BoolField_Slice) Repeats() bool
implements typeinfo.Repeats
func (*BoolField_Slice) TypeInfo ¶
func (*BoolField_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Comment ¶
Add a note. Information about the story for you and other authors.
type Comment_Slice ¶
type Comment_Slice []Comment
holds a slice of type comment
func (*Comment_Slice) TypeInfo ¶
func (*Comment_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CountOf ¶
A guard which returns true based on a counter. Counters start at zero and are incremented every time the guard gets checked.
type CountOf_Slice ¶
type CountOf_Slice []CountOf
holds a slice of type count_of
func (*CountOf_Slice) TypeInfo ¶
func (*CountOf_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CycleText ¶
When called multiple times, returns each of its inputs in turn.
type CycleText_Slice ¶
type CycleText_Slice []CycleText
holds a slice of type cycle_text
func (*CycleText_Slice) Repeats ¶
func (op *CycleText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*CycleText_Slice) TypeInfo ¶
func (*CycleText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DeclareStatement ¶
type DeclareStatement struct { Text rtti.TextEval Assign rtti.Assignment Matches JessMatches Markup map[string]any }
Simple english like definitions of nouns, kinds, and their relatives.
func (*DeclareStatement) GetMarkup ¶
func (op *DeclareStatement) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DeclareStatement) TypeInfo ¶
func (*DeclareStatement) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DeclareStatement_Slice ¶
type DeclareStatement_Slice []DeclareStatement
holds a slice of type declare_statement
func (*DeclareStatement_Slice) Repeats ¶
func (op *DeclareStatement_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DeclareStatement_Slice) TypeInfo ¶
func (*DeclareStatement_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineAction ¶
type DefineAction struct { Action rtti.TextEval Requires []FieldDefinition Provides []FieldDefinition Markup map[string]any }
Declare an activity: Activities help actors perform tasks: for instance, picking up or dropping items. Activities involve either the player or an npc and possibly one or two other objects.
func (*DefineAction) GetMarkup ¶
func (op *DefineAction) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineAction) TypeInfo ¶
func (*DefineAction) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineAction_Slice ¶
type DefineAction_Slice []DefineAction
holds a slice of type define_action
func (*DefineAction_Slice) Repeats ¶
func (op *DefineAction_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineAction_Slice) TypeInfo ¶
func (*DefineAction_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineAlias ¶
allows the player to refer to a noun by one or more other terms.
func (*DefineAlias) GetMarkup ¶
func (op *DefineAlias) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineAlias) TypeInfo ¶
func (*DefineAlias) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineAlias_Slice ¶
type DefineAlias_Slice []DefineAlias
holds a slice of type define_alias
func (*DefineAlias_Slice) Repeats ¶
func (op *DefineAlias_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineAlias_Slice) TypeInfo ¶
func (*DefineAlias_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineAspect ¶
Declare an aspect and its traits. Aspects here are assumed to be singularly named.
func (*DefineAspect) GetMarkup ¶
func (op *DefineAspect) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineAspect) TypeInfo ¶
func (*DefineAspect) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineAspect_Slice ¶
type DefineAspect_Slice []DefineAspect
holds a slice of type define_aspect
func (*DefineAspect_Slice) Repeats ¶
func (op *DefineAspect_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineAspect_Slice) TypeInfo ¶
func (*DefineAspect_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineFields ¶
type DefineFields struct { Kind rtti.TextEval Fields []FieldDefinition Markup map[string]any }
Add properties to a kind
func (*DefineFields) GetMarkup ¶
func (op *DefineFields) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineFields) TypeInfo ¶
func (*DefineFields) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineFields_Slice ¶
type DefineFields_Slice []DefineFields
holds a slice of type define_fields
func (*DefineFields_Slice) Repeats ¶
func (op *DefineFields_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineFields_Slice) TypeInfo ¶
func (*DefineFields_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineKinds ¶
func (*DefineKinds) GetMarkup ¶
func (op *DefineKinds) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineKinds) TypeInfo ¶
func (*DefineKinds) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineKinds_Slice ¶
type DefineKinds_Slice []DefineKinds
holds a slice of type define_kinds
func (*DefineKinds_Slice) Repeats ¶
func (op *DefineKinds_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineKinds_Slice) TypeInfo ¶
func (*DefineKinds_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineLeadingGrammar ¶
type DefineLeadingGrammar struct { Lede []string Scans []grammar.ScannerMaker Markup map[string]any }
starts a parser scanner.
func (*DefineLeadingGrammar) GetMarkup ¶
func (op *DefineLeadingGrammar) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineLeadingGrammar) TypeInfo ¶
func (*DefineLeadingGrammar) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineLeadingGrammar_Slice ¶
type DefineLeadingGrammar_Slice []DefineLeadingGrammar
holds a slice of type define_leading_grammar
func (*DefineLeadingGrammar_Slice) Repeats ¶
func (op *DefineLeadingGrammar_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineLeadingGrammar_Slice) TypeInfo ¶
func (*DefineLeadingGrammar_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineNamedGrammar ¶
type DefineNamedGrammar struct { Name string Scans []grammar.ScannerMaker Markup map[string]any }
starts a parser scanner.
func (*DefineNamedGrammar) GetMarkup ¶
func (op *DefineNamedGrammar) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineNamedGrammar) TypeInfo ¶
func (*DefineNamedGrammar) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineNamedGrammar_Slice ¶
type DefineNamedGrammar_Slice []DefineNamedGrammar
holds a slice of type define_named_grammar
func (*DefineNamedGrammar_Slice) Repeats ¶
func (op *DefineNamedGrammar_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineNamedGrammar_Slice) TypeInfo ¶
func (*DefineNamedGrammar_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineNounTraits ¶
type DefineNounTraits struct { Nouns rtti.TextListEval Traits rtti.TextListEval Markup map[string]any }
func (*DefineNounTraits) GetMarkup ¶
func (op *DefineNounTraits) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineNounTraits) TypeInfo ¶
func (*DefineNounTraits) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineNounTraits_Slice ¶
type DefineNounTraits_Slice []DefineNounTraits
holds a slice of type define_noun_traits
func (*DefineNounTraits_Slice) Repeats ¶
func (op *DefineNounTraits_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineNounTraits_Slice) TypeInfo ¶
func (*DefineNounTraits_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineNouns ¶
func (*DefineNouns) GetMarkup ¶
func (op *DefineNouns) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineNouns) TypeInfo ¶
func (*DefineNouns) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineNouns_Slice ¶
type DefineNouns_Slice []DefineNouns
holds a slice of type define_nouns
func (*DefineNouns_Slice) Repeats ¶
func (op *DefineNouns_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineNouns_Slice) TypeInfo ¶
func (*DefineNouns_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineOtherRelatives ¶
type DefineOtherRelatives struct { Relation rtti.TextEval Nouns rtti.TextListEval OtherNouns rtti.TextListEval Markup map[string]any }
Relate nouns to each other
func (*DefineOtherRelatives) GetMarkup ¶
func (op *DefineOtherRelatives) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineOtherRelatives) TypeInfo ¶
func (*DefineOtherRelatives) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineOtherRelatives_Slice ¶
type DefineOtherRelatives_Slice []DefineOtherRelatives
holds a slice of type define_other_relatives
func (*DefineOtherRelatives_Slice) Repeats ¶
func (op *DefineOtherRelatives_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineOtherRelatives_Slice) TypeInfo ¶
func (*DefineOtherRelatives_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefinePattern ¶
type DefinePattern struct { PatternName rtti.TextEval Requires []FieldDefinition Provides []FieldDefinition Exe []rtti.Execute Markup map[string]any }
Declare a new pattern. A pattern is a bundle of functions which can either change the game world or provide information about it. Each function in a given pattern has "guards" which determine whether the function applies in a particular situation.
func (*DefinePattern) GetMarkup ¶
func (op *DefinePattern) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefinePattern) TypeInfo ¶
func (*DefinePattern) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefinePattern_Slice ¶
type DefinePattern_Slice []DefinePattern
holds a slice of type define_pattern
func (*DefinePattern_Slice) Repeats ¶
func (op *DefinePattern_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefinePattern_Slice) TypeInfo ¶
func (*DefinePattern_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefinePlural ¶
Plurals are used at runtime and during weave to guide the interpretation of nouns and kinds. For example: "The plural of person is people." "The plural of person is persons."
func (*DefinePlural) GetMarkup ¶
func (op *DefinePlural) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefinePlural) TypeInfo ¶
func (*DefinePlural) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefinePlural_Slice ¶
type DefinePlural_Slice []DefinePlural
holds a slice of type define_plural
func (*DefinePlural_Slice) Repeats ¶
func (op *DefinePlural_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefinePlural_Slice) TypeInfo ¶
func (*DefinePlural_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineRelation ¶
type DefineRelation struct { Relation rtti.TextEval Kind rtti.TextEval OtherKind rtti.TextEval Cardinality RelationCardinality Markup map[string]any }
func (*DefineRelation) GetMarkup ¶
func (op *DefineRelation) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineRelation) TypeInfo ¶
func (*DefineRelation) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineRelation_Slice ¶
type DefineRelation_Slice []DefineRelation
holds a slice of type define_relation
func (*DefineRelation_Slice) Repeats ¶
func (op *DefineRelation_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineRelation_Slice) TypeInfo ¶
func (*DefineRelation_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineRelatives ¶
type DefineRelatives struct { Nouns rtti.TextListEval Relation rtti.TextEval OtherNouns rtti.TextListEval Markup map[string]any }
Relate nouns to each other
func (*DefineRelatives) GetMarkup ¶
func (op *DefineRelatives) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineRelatives) TypeInfo ¶
func (*DefineRelatives) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineRelatives_Slice ¶
type DefineRelatives_Slice []DefineRelatives
holds a slice of type define_relatives
func (*DefineRelatives_Slice) Repeats ¶
func (op *DefineRelatives_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineRelatives_Slice) TypeInfo ¶
func (*DefineRelatives_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineScene ¶
type DefineScene struct { Scene rtti.TextEval RequireScenes rtti.TextListEval Statements []StoryStatement Markup map[string]any }
Define a sub world.
func (*DefineScene) GetMarkup ¶
func (op *DefineScene) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineScene) GetSceneReqs ¶
errs if there's no scene name
func (*DefineScene) TypeInfo ¶
func (*DefineScene) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineScene_Slice ¶
type DefineScene_Slice []DefineScene
holds a slice of type define_scene
func (*DefineScene_Slice) Repeats ¶
func (op *DefineScene_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineScene_Slice) TypeInfo ¶
func (*DefineScene_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineTest ¶
type DefineTest struct { TestName string RequireScenes rtti.TextListEval Statements []StoryStatement Exe []rtti.Execute Markup map[string]any }
Create a scene
type DefineTest_Slice ¶
type DefineTest_Slice []DefineTest
holds a slice of type define_test
func (*DefineTest_Slice) Repeats ¶
func (op *DefineTest_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineTest_Slice) TypeInfo ¶
func (*DefineTest_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineValue ¶
type DefineValue struct { FieldName rtti.TextEval Nouns rtti.TextListEval Value rtti.Assignment Markup map[string]any }
Assign a starting value to the field of one or nouns.
func (*DefineValue) GetMarkup ¶
func (op *DefineValue) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DefineValue) TypeInfo ¶
func (*DefineValue) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DefineValue_Slice ¶
type DefineValue_Slice []DefineValue
holds a slice of type define_value
func (*DefineValue_Slice) Repeats ¶
func (op *DefineValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DefineValue_Slice) TypeInfo ¶
func (*DefineValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type FieldDefinition ¶
type FieldDefinition_Slot ¶
type FieldDefinition_Slot struct{ Value FieldDefinition }
holds a single slot.
func (*FieldDefinition_Slot) TypeInfo ¶
func (*FieldDefinition_Slot) TypeInfo() typeinfo.T
implements typeinfo.Instance for a single slot.
type FieldDefinition_Slots ¶
type FieldDefinition_Slots []FieldDefinition
holds a slice of slots.
func (*FieldDefinition_Slots) Repeats ¶
func (op *FieldDefinition_Slots) Repeats() bool
implements typeinfo.Repeats
func (*FieldDefinition_Slots) TypeInfo ¶
func (*FieldDefinition_Slots) TypeInfo() typeinfo.T
implements typeinfo.Instance for a series of slots.
type NothingField ¶
A valueless field. Intended mainly for patterns which don't need to return a value.
func (*NothingField) GetFieldInfo ¶
func (op *NothingField) GetFieldInfo(run rt.Runtime) (_ mdl.FieldInfo)
func (*NothingField) GetMarkup ¶
func (op *NothingField) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*NothingField) TypeInfo ¶
func (*NothingField) TypeInfo() typeinfo.T
implements typeinfo.Instance
type NothingField_Slice ¶
type NothingField_Slice []NothingField
holds a slice of type nothing_field
func (*NothingField_Slice) Repeats ¶
func (op *NothingField_Slice) Repeats() bool
implements typeinfo.Repeats
func (*NothingField_Slice) TypeInfo ¶
func (*NothingField_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type NumListField ¶
type NumListField struct { Name rtti.TextEval Type rtti.TextEval Initially rtti.NumListEval Markup map[string]any }
func (*NumListField) GetFieldInfo ¶
func (op *NumListField) GetFieldInfo(run rt.Runtime) mdl.FieldInfo
func (*NumListField) GetMarkup ¶
func (op *NumListField) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*NumListField) TypeInfo ¶
func (*NumListField) TypeInfo() typeinfo.T
implements typeinfo.Instance
type NumListField_Slice ¶
type NumListField_Slice []NumListField
holds a slice of type num_list_field
func (*NumListField_Slice) Repeats ¶
func (op *NumListField_Slice) Repeats() bool
implements typeinfo.Repeats
func (*NumListField_Slice) TypeInfo ¶
func (*NumListField_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type NumberField ¶
type NumberField struct { Name rtti.TextEval Type rtti.TextEval Initially rtti.NumberEval Markup map[string]any }
func (*NumberField) GetFieldInfo ¶
func (op *NumberField) GetFieldInfo(run rt.Runtime) mdl.FieldInfo
func (*NumberField) GetMarkup ¶
func (op *NumberField) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*NumberField) TypeInfo ¶
func (*NumberField) TypeInfo() typeinfo.T
implements typeinfo.Instance
type NumberField_Slice ¶
type NumberField_Slice []NumberField
holds a slice of type number_field
func (*NumberField_Slice) Repeats ¶
func (op *NumberField_Slice) Repeats() bool
implements typeinfo.Repeats
func (*NumberField_Slice) TypeInfo ¶
func (*NumberField_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type PostImport ¶
type PreImport ¶
PreImport happens at the opening of a json block and it can transform the value into something completely new.
type RecordField ¶
type RecordField struct { Name rtti.TextEval Type rtti.TextEval Initially rtti.RecordEval Markup map[string]any }
func (*RecordField) GetFieldInfo ¶
func (op *RecordField) GetFieldInfo(run rt.Runtime) mdl.FieldInfo
func (*RecordField) GetMarkup ¶
func (op *RecordField) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*RecordField) TypeInfo ¶
func (*RecordField) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RecordField_Slice ¶
type RecordField_Slice []RecordField
holds a slice of type record_field
func (*RecordField_Slice) Repeats ¶
func (op *RecordField_Slice) Repeats() bool
implements typeinfo.Repeats
func (*RecordField_Slice) TypeInfo ¶
func (*RecordField_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RecordListField ¶
type RecordListField struct { Name rtti.TextEval Type rtti.TextEval Initially rtti.RecordListEval Markup map[string]any }
func (*RecordListField) GetFieldInfo ¶
func (op *RecordListField) GetFieldInfo(run rt.Runtime) mdl.FieldInfo
func (*RecordListField) GetMarkup ¶
func (op *RecordListField) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*RecordListField) TypeInfo ¶
func (*RecordListField) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RecordListField_Slice ¶
type RecordListField_Slice []RecordListField
holds a slice of type record_list_field
func (*RecordListField_Slice) Repeats ¶
func (op *RecordListField_Slice) Repeats() bool
implements typeinfo.Repeats
func (*RecordListField_Slice) TypeInfo ¶
func (*RecordListField_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RelationCardinality ¶
type RelationCardinality int
RelationCardinality, a type of str enum.
const ( C_RelationCardinality_OneToOne RelationCardinality = iota C_RelationCardinality_OneToMany C_RelationCardinality_ManyToOne C_RelationCardinality_ManyToMany )
enumerated values of RelationCardinality
func MakeRelationCardinality ¶
func MakeRelationCardinality(str string) (ret RelationCardinality, okay bool)
func (RelationCardinality) String ¶
func (op RelationCardinality) String() (ret string)
type RuleForKind ¶
type RuleForKind struct { PatternName rtti.TextEval KindName rtti.TextEval Exactly rtti.BoolEval RuleName rtti.TextEval Exe []rtti.Execute Markup map[string]any }
Change the behavior of an existing pattern. The default behavior for events is to fall through to the next handler unless canceled or stopped.
func (*RuleForKind) GetMarkup ¶
func (op *RuleForKind) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*RuleForKind) TypeInfo ¶
func (*RuleForKind) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RuleForKind_Slice ¶
type RuleForKind_Slice []RuleForKind
holds a slice of type rule_for_kind
func (*RuleForKind_Slice) Repeats ¶
func (op *RuleForKind_Slice) Repeats() bool
implements typeinfo.Repeats
func (*RuleForKind_Slice) TypeInfo ¶
func (*RuleForKind_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RuleForNoun ¶
type RuleForNoun struct { PatternName rtti.TextEval NounName rtti.TextEval RuleName rtti.TextEval Exe []rtti.Execute Markup map[string]any }
Change the behavior of an existing pattern. The default behavior for events is to fall through to the next handler unless canceled or stopped.
func (*RuleForNoun) GetMarkup ¶
func (op *RuleForNoun) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*RuleForNoun) TypeInfo ¶
func (*RuleForNoun) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RuleForNoun_Slice ¶
type RuleForNoun_Slice []RuleForNoun
holds a slice of type rule_for_noun
func (*RuleForNoun_Slice) Repeats ¶
func (op *RuleForNoun_Slice) Repeats() bool
implements typeinfo.Repeats
func (*RuleForNoun_Slice) TypeInfo ¶
func (*RuleForNoun_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RuleForPattern ¶
type RuleForPattern struct { PatternName rtti.TextEval RuleName rtti.TextEval Exe []rtti.Execute Markup map[string]any }
Change the behavior of an existing pattern. For events, this adds a listener that responds to the targeted object only when triggered by the player. By default, rules with filters continue on to the next rule automatically. Because event listeners have filters they continue to the next listener unless specifically stopped.
func (*RuleForPattern) GetMarkup ¶
func (op *RuleForPattern) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*RuleForPattern) TypeInfo ¶
func (*RuleForPattern) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RuleForPattern_Slice ¶
type RuleForPattern_Slice []RuleForPattern
holds a slice of type rule_for_pattern
func (*RuleForPattern_Slice) Repeats ¶
func (op *RuleForPattern_Slice) Repeats() bool
implements typeinfo.Repeats
func (*RuleForPattern_Slice) TypeInfo ¶
func (*RuleForPattern_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RuleProvides ¶
type RuleProvides struct { PatternName rtti.TextEval Provides []FieldDefinition Markup map[string]any }
func (*RuleProvides) GetMarkup ¶
func (op *RuleProvides) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*RuleProvides) TypeInfo ¶
func (*RuleProvides) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RuleProvides_Slice ¶
type RuleProvides_Slice []RuleProvides
holds a slice of type rule_provides
func (*RuleProvides_Slice) Repeats ¶
func (op *RuleProvides_Slice) Repeats() bool
implements typeinfo.Repeats
func (*RuleProvides_Slice) TypeInfo ¶
func (*RuleProvides_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type SayResponse ¶
Generate text in a replaceable manner. ( note: this is transformed for the runtime into a named 'RenderResponse'. )
func (*SayResponse) GetMarkup ¶
func (op *SayResponse) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*SayResponse) PostImport ¶
transform SayResponse into a RenderResponse ( post import so it happens after any transforms in its evals have been processed )
func (*SayResponse) TypeInfo ¶
func (*SayResponse) TypeInfo() typeinfo.T
implements typeinfo.Instance
type SayResponse_Slice ¶
type SayResponse_Slice []SayResponse
holds a slice of type say_response
func (*SayResponse_Slice) Repeats ¶
func (op *SayResponse_Slice) Repeats() bool
implements typeinfo.Repeats
func (*SayResponse_Slice) TypeInfo ¶
func (*SayResponse_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type SayTemplate ¶
Used for displaying text to the player. The text can contain 'inline-templates'; mini-commands that help to simplify printing text. See also: https://github.com/ionous/iffy/wiki/Templates. ( note: this is transformed for the runtime into an unnamed 'RenderResponse'. )
func (*SayTemplate) GetMarkup ¶
func (op *SayTemplate) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*SayTemplate) TypeInfo ¶
func (*SayTemplate) TypeInfo() typeinfo.T
implements typeinfo.Instance
type SayTemplate_Slice ¶
type SayTemplate_Slice []SayTemplate
holds a slice of type say_template
func (*SayTemplate_Slice) Repeats ¶
func (op *SayTemplate_Slice) Repeats() bool
implements typeinfo.Repeats
func (*SayTemplate_Slice) TypeInfo ¶
func (*SayTemplate_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ShuffleText ¶
When called multiple times returns its inputs at random.
func (*ShuffleText) GetMarkup ¶
func (op *ShuffleText) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ShuffleText) TypeInfo ¶
func (*ShuffleText) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ShuffleText_Slice ¶
type ShuffleText_Slice []ShuffleText
holds a slice of type shuffle_text
func (*ShuffleText_Slice) Repeats ¶
func (op *ShuffleText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ShuffleText_Slice) TypeInfo ¶
func (*ShuffleText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type StoppingText ¶
When called multiple times returns each of its inputs in turn, sticking to the last one.
func (*StoppingText) GetMarkup ¶
func (op *StoppingText) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*StoppingText) TypeInfo ¶
func (*StoppingText) TypeInfo() typeinfo.T
implements typeinfo.Instance
type StoppingText_Slice ¶
type StoppingText_Slice []StoppingText
holds a slice of type stopping_text
func (*StoppingText_Slice) Repeats ¶
func (op *StoppingText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*StoppingText_Slice) TypeInfo ¶
func (*StoppingText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type StoryBreak ¶
a command with a signature of the comment marker metadata. a cheat to allows nodes that have only a comment marker and no actual command. see also: debug.do_nothing
type StoryBreak_Slice ¶
type StoryBreak_Slice []StoryBreak
holds a slice of type story_break
func (*StoryBreak_Slice) Repeats ¶
func (op *StoryBreak_Slice) Repeats() bool
implements typeinfo.Repeats
func (*StoryBreak_Slice) TypeInfo ¶
func (*StoryBreak_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type StoryFile ¶
type StoryFile struct { Statements []StoryStatement Markup map[string]any }
top level node for story files.
type StoryFile_Slice ¶
type StoryFile_Slice []StoryFile
holds a slice of type story_file
func (*StoryFile_Slice) Repeats ¶
func (op *StoryFile_Slice) Repeats() bool
implements typeinfo.Repeats
func (*StoryFile_Slice) TypeInfo ¶
func (*StoryFile_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type StoryStatement ¶
StoryStatement - a marker interface for commands which produce facts about the game world.
type StoryStatement_Slot ¶
type StoryStatement_Slot struct{ Value StoryStatement }
holds a single slot.
func (*StoryStatement_Slot) TypeInfo ¶
func (*StoryStatement_Slot) TypeInfo() typeinfo.T
implements typeinfo.Instance for a single slot.
type StoryStatement_Slots ¶
type StoryStatement_Slots []StoryStatement
holds a slice of slots.
func (*StoryStatement_Slots) Repeats ¶
func (op *StoryStatement_Slots) Repeats() bool
implements typeinfo.Repeats
func (*StoryStatement_Slots) TypeInfo ¶
func (*StoryStatement_Slots) TypeInfo() typeinfo.T
implements typeinfo.Instance for a series of slots.
type TextField ¶
type TextField struct { Name rtti.TextEval Type rtti.TextEval Initially rtti.TextEval Markup map[string]any }
type TextField_Slice ¶
type TextField_Slice []TextField
holds a slice of type text_field
func (*TextField_Slice) Repeats ¶
func (op *TextField_Slice) Repeats() bool
implements typeinfo.Repeats
func (*TextField_Slice) TypeInfo ¶
func (*TextField_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type TextListField ¶
type TextListField struct { Name rtti.TextEval Type rtti.TextEval Initially rtti.TextListEval Markup map[string]any }
func (*TextListField) GetFieldInfo ¶
func (op *TextListField) GetFieldInfo(run rt.Runtime) mdl.FieldInfo
func (*TextListField) GetMarkup ¶
func (op *TextListField) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*TextListField) TypeInfo ¶
func (*TextListField) TypeInfo() typeinfo.T
implements typeinfo.Instance
type TextListField_Slice ¶
type TextListField_Slice []TextListField
holds a slice of type text_list_field
func (*TextListField_Slice) Repeats ¶
func (op *TextListField_Slice) Repeats() bool
implements typeinfo.Repeats
func (*TextListField_Slice) TypeInfo ¶
func (*TextListField_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
Source Files ¶
- story.go
- storyBreak.go
- storyCalls.go
- storyComment.go
- storyEncoding.go
- storyExt.go
- storyGrammar.go
- storyImport.go
- storyImporter.go
- storyJess.go
- storyKinds.go
- storyPatterns.go
- storyProperties.go
- storyRel.go
- storyScene.go
- storySequences.go
- storyTemplate.go
- storyTest.go
- storyValues.go
- storyWords.go
- story_types.go